summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-07-13 09:50:11 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-07-13 09:50:11 +0000
commit360408fc4c04a72750ecfece7539260129b765ab (patch)
treed01bdddafa4dd0aa2cab4f3995dda1d0748cccee /src/gui/gui.cpp
parent6eb84fcfaf55c7e4baf13bfdff8f0a16a5b97d76 (diff)
downloadmana-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/gui.cpp')
-rw-r--r--src/gui/gui.cpp25
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);