diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
commit | 76dc498cd50fb5bc83b3d0a165df17781af35979 (patch) | |
tree | 6513853d484fa36e282afc2865e8e98f69100aeb /src/game.cpp | |
parent | ba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff) | |
download | plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2 plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz plus-76dc498cd50fb5bc83b3d0a165df17781af35979.zip |
Call postInit after each window creation.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
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"), |