summaryrefslogtreecommitdiff
path: root/src/graphic
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-08 01:33:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-08 01:33:53 +0000
commitee416a5f3de03a689247a290077e7fdf451e1a23 (patch)
treef456df99f954919ac7a425606df51f010aa4ef2d /src/graphic
parent4070dda1560bc729c3e272f0a5c03d77391e2661 (diff)
downloadmana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.gz
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.bz2
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.xz
mana-ee416a5f3de03a689247a290077e7fdf451e1a23.zip
Well improved window container and window widgets a bit, and made a start
on support for modal dialogs. Still some issues to work out. Tell me if you experience something unsettling.
Diffstat (limited to 'src/graphic')
-rw-r--r--src/graphic/graphic.cpp16
-rw-r--r--src/graphic/graphic.h3
2 files changed, 11 insertions, 8 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 3b9e1e1e..0e5b9a32 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -158,29 +158,29 @@ GraphicEngine::GraphicEngine() {
// Create dialogs
- statusWindow = new StatusWindow(guiTop);
+ statusWindow = new StatusWindow();
statusWindow->setPosition(SCREEN_W - statusWindow->getWidth() - 10, 10);
- buyDialog = new BuyDialog(guiTop);
+ buyDialog = new BuyDialog();
buyDialog->setVisible(false);
- sellDialog = new SellDialog(guiTop);
+ sellDialog = new SellDialog();
sellDialog->setVisible(false);
- buySellDialog = new BuySellDialog(guiTop, new BuySellListener());
+ buySellDialog = new BuySellDialog(new BuySellListener());
buySellDialog->setVisible(false);
- inventoryWindow = new InventoryWindow(guiTop);
+ inventoryWindow = new InventoryWindow();
inventoryWindow->setVisible(false);
inventoryWindow->setPosition(100, 100);
- npcTextDialog = new NpcTextDialog(guiTop);
+ npcTextDialog = new NpcTextDialog();
npcTextDialog->setVisible(false);
- npcListDialog = new NpcListDialog(guiTop);
+ npcListDialog = new NpcListDialog();
npcListDialog->setVisible(false);
- skillDialog = new SkillDialog(guiTop);
+ skillDialog = new SkillDialog();
skillDialog->setVisible(false);
// Give focus to the chat input
diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h
index ea9b71f0..ed62bf79 100644
--- a/src/graphic/graphic.h
+++ b/src/graphic/graphic.h
@@ -65,6 +65,9 @@ extern NpcListDialog *npcListDialog;
extern NpcTextDialog *npcTextDialog;
extern SkillDialog *skillDialog;
+char get_x_offset(char, char);
+char get_y_offset(char, char);
+
/**
* The action listener for the chat field.
*/