diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-13 09:50:11 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-13 09:50:11 +0000 |
commit | 360408fc4c04a72750ecfece7539260129b765ab (patch) | |
tree | d01bdddafa4dd0aa2cab4f3995dda1d0748cccee /src/gui | |
parent | 6eb84fcfaf55c7e4baf13bfdff8f0a16a5b97d76 (diff) | |
download | mana-client-360408fc4c04a72750ecfece7539260129b765ab.tar.gz mana-client-360408fc4c04a72750ecfece7539260129b765ab.tar.bz2 mana-client-360408fc4c04a72750ecfece7539260129b765ab.tar.xz mana-client-360408fc4c04a72750ecfece7539260129b765ab.zip |
- Adding the wonderful new font by Bjorn to speech and player names
- Way to system cursor (now you can choose the original sdl cursor in config)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui.cpp | 25 | ||||
-rw-r--r-- | src/gui/gui.h | 4 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 7643c01f..81e6c5df 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -43,6 +43,8 @@ WindowContainer *guiTop; // The top container gcn::ImageFont *hitRedFont; gcn::ImageFont *hitBlueFont; gcn::ImageFont *hitYellowFont; +// Font used to display speech and player names +gcn::ImageFont *speechFont; Gui::Gui(Graphics *graphics) { @@ -104,6 +106,29 @@ Gui::Gui(Graphics *graphics) logger->error("Unable to load sansserif8.png!"); } } + + // Set speech font + try { + speechFont = new gcn::ImageFont( + TMW_DATADIR "data/graphics/gui/rpgfont_wider.png", + " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + "0123456789.,!?-+/():;%&`'*#=[]\"<>{}^~|_@&\\" + ); + } + catch (gcn::Exception e) + { + try { + guiFont = new gcn::ImageFont( + "data/graphics/gui/rpgfont_wider.png", + " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + "0123456789.,!?-+/():;%&`'*#=[]\"<>{}^~|_@&\\" + ); + } + catch (gcn::Exception e) + { + logger->error("Unable to load rpgfont_wider.png!"); + } + } gcn::Widget::setGlobalFont(guiFont); diff --git a/src/gui/gui.h b/src/gui/gui.h index 42334ca1..dfd72ec7 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -95,5 +95,9 @@ extern gcn::SDLInput *guiInput; /**< GUI input */ extern gcn::ImageFont *hitRedFont; extern gcn::ImageFont *hitBlueFont; extern gcn::ImageFont *hitYellowFont; +/** + * Font used to display speech and player names + */ +extern gcn::ImageFont *speechFont; #endif |