summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
commit76dc498cd50fb5bc83b3d0a165df17781af35979 (patch)
tree6513853d484fa36e282afc2865e8e98f69100aeb /src/game.cpp
parentba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff)
downloadmv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz
mv-76dc498cd50fb5bc83b3d0a165df17781af35979.zip
Call postInit after each window creation.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index eb65b352f..e88fb9c7a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -184,6 +184,7 @@ static void createGuiWindows()
chatWindow = new ChatWindow;
chatWindow->postInit();
tradeWindow = new TradeWindow;
+ tradeWindow->postInit();
equipmentWindow = new EquipmentWindow(PlayerInfo::getEquipment(),
localPlayer);
equipmentWindow->postInit();
@@ -191,7 +192,9 @@ static void createGuiWindows()
beingEquipmentWindow->postInit();
beingEquipmentWindow->setVisible(false);
statusWindow = new StatusWindow;
+ statusWindow->postInit();
miniStatusWindow = new MiniStatusWindow;
+ miniStatusWindow->postInit();
inventoryWindow = new InventoryWindow(PlayerInfo::getInventory());
inventoryWindow->postInit();
#ifdef EATHENA_SUPPORT
@@ -206,10 +209,12 @@ static void createGuiWindows()
skillDialog = new SkillDialog;
skillDialog->postInit();
minimap = new Minimap;
+ minimap->postInit();
debugWindow = new DebugWindow;
debugWindow->postInit();
itemShortcutWindow = new ShortcutWindow(
"ItemShortcut", "items.xml", 83, 460);
+ itemShortcutWindow->postInit();
for (unsigned f = 0; f < SHORTCUT_TABS; f ++)
{
@@ -227,6 +232,7 @@ static void createGuiWindows()
"emotes.xml",
130, 480);
outfitWindow = new OutfitWindow();
+ outfitWindow->postInit();
dropShortcutWindow = new ShortcutWindow("DropShortcut",
new VirtShortcutContainer(nullptr, dropShortcut),
"drops.xml");
@@ -241,14 +247,18 @@ static void createGuiWindows()
#ifdef EATHENA_SUPPORT
bankWindow = new BankWindow;
+ bankWindow->postInit();
mailWindow = new MailWindow;
+ mailWindow->postInit();
#endif
whoIsOnline = new WhoIsOnline;
whoIsOnline->postInit();
killStats = new KillStats;
+ killStats->postInit();
socialWindow = new SocialWindow;
socialWindow->postInit();
questsWindow = new QuestsWindow;
+ questsWindow->postInit();
// TRANSLATORS: chat tab header
localChatTab = new ChatTab(chatWindow, _("General"),