summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-20 08:57:42 -0700
committerIra Rice <irarice@gmail.com>2009-02-20 08:57:42 -0700
commit6635294efc3d94dd468c7a4a723e7169402c018c (patch)
tree2efe8203daf2e5ca842769dbdcc176c9efc17059 /src/gui/gui.cpp
parentb2eb8daa8c39bcfd5fbd3a76dbbc432b43c561a9 (diff)
downloadmana-6635294efc3d94dd468c7a4a723e7169402c018c.tar.gz
mana-6635294efc3d94dd468c7a4a723e7169402c018c.tar.bz2
mana-6635294efc3d94dd468c7a4a723e7169402c018c.tar.xz
mana-6635294efc3d94dd468c7a4a723e7169402c018c.zip
Removed the last of the image particle guichan fonts.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index ed85fa8f..85a33218 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -113,7 +113,7 @@ Gui::Gui(Graphics *graphics):
{
const int fontSize = (int)config.getValue("fontSize", 11);
mGuiFont = new TrueTypeFont(path, fontSize);
- mInfoParicleFont = new TrueTypeFont(path, fontSize, 1);
+ mInfoParticleFont = new TrueTypeFont(path, fontSize, 1);
}
catch (gcn::Exception e)
{
@@ -136,22 +136,6 @@ Gui::Gui(Graphics *graphics):
gcn::Widget::setGlobalFont(mGuiFont);
- // Load hits' colorful fonts
- try
- {
- hitRedFont = new gcn::ImageFont("graphics/gui/hits_red.png",
- "0123456789crit! ");
- hitBlueFont = new gcn::ImageFont("graphics/gui/hits_blue.png",
- "0123456789crit! ");
- hitYellowFont = new gcn::ImageFont("graphics/gui/hits_yellow.png",
- "0123456789misxp ");
- }
- catch (gcn::Exception e)
- {
- logger->error(std::string("Unable to load colored hits' fonts: ")
- + e.getMessage());
- }
-
// Initialize mouse cursor and listen for changes to the option
setUseCustomCursor(config.getValue("customcursor", 1) == 1);
mConfigListener = new GuiConfigListener(this);
@@ -169,16 +153,12 @@ Gui::~Gui()
config.removeListener("customcursor", mConfigListener);
delete mConfigListener;
- // Fonts used in showing hits
- delete hitRedFont;
- delete hitBlueFont;
- delete hitYellowFont;
-
if (mMouseCursors)
mMouseCursors->decRef();
delete mGuiFont;
delete boldFont;
+ delete mInfoParticleFont;
delete viewport;
delete getTop();