summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-28 14:15:21 +0000
committerKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-28 14:15:21 +0000
commit11b6a73acc5a6d6fae36074002ac3ce2400ca860 (patch)
treef74f63645af0a834a6e0fd557c61c206936b720b /src/graphic/graphic.cpp
parent95551ea073dd984509ea5a7e13832952193be8cd (diff)
downloadmana-client-11b6a73acc5a6d6fae36074002ac3ce2400ca860.tar.gz
mana-client-11b6a73acc5a6d6fae36074002ac3ce2400ca860.tar.bz2
mana-client-11b6a73acc5a6d6fae36074002ac3ce2400ca860.tar.xz
mana-client-11b6a73acc5a6d6fae36074002ac3ce2400ca860.zip
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 9ded7f3e..ce4bc4a1 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -28,6 +28,7 @@
#include "../gui/minimap.h"
#include "../gui/equipment.h"
#include "../gui/newskill.h"
+#include "../gui/chargedialog.h"
#include "../main.h"
#include "../being.h"
#ifdef USE_OPENGL
@@ -62,6 +63,7 @@ StatsWindow *statsWindow;
Setup* setupWindow;
Minimap *minimap;
EquipmentWindow *equipmentWindow;
+ChargeDialog *chargeDialog;
void ChatListener::action(const std::string& eventId)
{
@@ -285,6 +287,7 @@ Engine::Engine()
newSkillWindow = new NewSkillDialog();
newSkillWindow->setVisible(false);
+
statsWindow = new StatsWindow();
statsWindow->setVisible(false);
statsWindow->setPosition(
@@ -298,7 +301,13 @@ Engine::Engine()
equipmentWindow = new EquipmentWindow();
equipmentWindow->setVisible(false);
-
+
+ chargeDialog = new ChargeDialog();
+ chargeDialog->setVisible(true);
+ chargeDialog->setPosition(
+ screen->w - 5 - chargeDialog->getWidth(),
+ screen->h - chargeDialog->getHeight() - 15);
+
// Give focus to the chat input
chatInput->requestFocus();