summaryrefslogtreecommitdiff
path: root/src/gui/widgets/desktop.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-12 09:58:33 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-12 09:58:33 -0600
commitfbbd2edd6f33628b6e9257cf876670759f454017 (patch)
treebd9bdb358c5970786efa9f78df938170f35bd685 /src/gui/widgets/desktop.cpp
parente41371d866d403260f713a06c877d24eb43ad7b3 (diff)
downloadmana-fbbd2edd6f33628b6e9257cf876670759f454017.tar.gz
mana-fbbd2edd6f33628b6e9257cf876670759f454017.tar.bz2
mana-fbbd2edd6f33628b6e9257cf876670759f454017.tar.xz
mana-fbbd2edd6f33628b6e9257cf876670759f454017.zip
Merge version strings, add version to setup, etc
All instances of version strings should now use the same text. The version label was moved from main.cpp to Desktop. A new version label was added to SetupDialog to make it easier to get the version if you are already in game.
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r--src/gui/widgets/desktop.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index fc66ed93..4b806095 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -22,6 +22,7 @@
#include "gui/widgets/desktop.h"
#include "gui/palette.h"
+#include "gui/widgets/label.h"
#include "resources/image.h"
#include "resources/resourcemanager.h"
@@ -29,6 +30,7 @@
#include "graphics.h"
#include "log.h"
+#include "main.h"
Desktop::Desktop()
: mWallpaper(0)
@@ -36,12 +38,16 @@ Desktop::Desktop()
addWidgetListener(this);
Wallpaper::loadWallpapers();
+
+ versionLabel = new Label(Main::version);
+ add(versionLabel, 25, 2);
}
Desktop::~Desktop()
{
if (mWallpaper)
mWallpaper->decRef();
+ delete versionLabel;
}
void Desktop::reloadWallpaper()
@@ -73,6 +79,8 @@ void Desktop::draw(gcn::Graphics *graphics)
(getWidth() - mWallpaper->getWidth()) / 2,
(getHeight() - mWallpaper->getHeight()) / 2);
}
+
+ drawChildren(graphics);
}
void Desktop::setBestFittingWallpaper()