summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-20 14:20:10 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-20 14:20:10 +0000
commitfec8d201c51d82c370cb6052209397d88d004490 (patch)
tree57c12776fce97ee9824cd2df2d7ab475014418ef /src/gui/window.cpp
parent41b0b5c0ed80d812d13c8c92d286a8663084ec58 (diff)
downloadmana-fec8d201c51d82c370cb6052209397d88d004490.tar.gz
mana-fec8d201c51d82c370cb6052209397d88d004490.tar.bz2
mana-fec8d201c51d82c370cb6052209397d88d004490.tar.xz
mana-fec8d201c51d82c370cb6052209397d88d004490.zip
Converted the progress bar and stats dialog to Guichan widgets.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index eb886538..75208350 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -23,7 +23,7 @@
#include "gui.h"
#include <guichan/allegro.hpp>
-Window::Window(gcn::Container *parent, std::string text) :
+Window::Window(gcn::Container *parent, const std::string& text) :
caption(text),
mousePX(0),
mousePY(0),
@@ -112,6 +112,11 @@ void Window::draw(gcn::Graphics* graphics)
drawChildren(graphics);
}
+void Window::setTitle(const std::string& text)
+{
+ caption = std::string(text);
+}
+
void Window::setDimension(const gcn::Rectangle &dimension)
{
gcn::Container::setDimension(gcn::Rectangle(