From ee416a5f3de03a689247a290077e7fdf451e1a23 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 8 Jan 2005 01:33:53 +0000 Subject: 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. --- src/graphic/graphic.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/graphic/graphic.cpp') 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 -- cgit v1.2.3-70-g09d2