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/gui.cpp | |
parent | 6eb84fcfaf55c7e4baf13bfdff8f0a16a5b97d76 (diff) | |
download | mana-360408fc4c04a72750ecfece7539260129b765ab.tar.gz mana-360408fc4c04a72750ecfece7539260129b765ab.tar.bz2 mana-360408fc4c04a72750ecfece7539260129b765ab.tar.xz mana-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/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 25 |
1 files changed, 25 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); |