From 0136364671054f10e5a1ad484035e877987707b2 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 1 Feb 2012 00:29:17 +0100 Subject: removed some dead code from MsgBox --- src/msgbox.cpp | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'src') diff --git a/src/msgbox.cpp b/src/msgbox.cpp index c480070..a576189 100644 --- a/src/msgbox.cpp +++ b/src/msgbox.cpp @@ -29,9 +29,7 @@ class dMsgBoxManager_c : public dStageActor_c { DECLARE_STATE(LoadRes); DECLARE_STATE(Wait); DECLARE_STATE(BoxAppearWait); -// DECLARE_STATE(ButtonAppearWait); DECLARE_STATE(ShownWait); -// DECLARE_STATE(ButtonDisappearWait); DECLARE_STATE(BoxDisappearWait); static dMsgBoxManager_c *instance; @@ -61,8 +59,6 @@ dMsgBoxManager_c *dMsgBoxManager_c::build() { #define ANIM_BOX_APPEAR 0 #define ANIM_BOX_DISAPPEAR 1 -//#define ANIM_BUTTON_APPEAR 2 -//#define ANIM_BUTTON_DISAPPEAR 3 extern int MessageBoxIsShowing; @@ -76,13 +72,10 @@ int dMsgBoxManager_c::onCreate() { static const char *brlanNames[2] = { "BoxAppear.brlan", "BoxDisappear.brlan", -// "ButtonAppear.brlan", -// "ButtonDisappear.brlan" }; static const char *groupNames[2] = { "G_Box", "G_Box", -// "G_Button", "G_Button" }; layout.build("MessageBox.brlyt"); @@ -198,24 +191,6 @@ void dMsgBoxManager_c::executeState_BoxAppearWait() { void dMsgBoxManager_c::endState_BoxAppearWait() { } -/*****************************************************************************/ -// Show Button -/*CREATE_STATE(dMsgBoxManager_c, ButtonAppearWait); - -void dMsgBoxManager_c::beginState_ButtonAppearWait() { - layout.enableNonLoopAnim(ANIM_BUTTON_APPEAR); - OSReport("Enabling button appear @ %d\n", GlobalTickCount); -} - -void dMsgBoxManager_c::executeState_ButtonAppearWait() { - if (!layout.isAnimOn(ANIM_BUTTON_APPEAR)) { - OSReport("Button appeared @ %d\n", GlobalTickCount); - state.setState(&StateID_ShownWait); - } -} - -void dMsgBoxManager_c::endState_ButtonAppearWait() { }*/ - /*****************************************************************************/ // Wait For Player To Finish CREATE_STATE(dMsgBoxManager_c, ShownWait); @@ -230,24 +205,6 @@ void dMsgBoxManager_c::executeState_ShownWait() { } void dMsgBoxManager_c::endState_ShownWait() { } -/*****************************************************************************/ -// Hide Button -/*CREATE_STATE(dMsgBoxManager_c, ButtonDisappearWait); - -void dMsgBoxManager_c::beginState_ButtonDisappearWait() { - layout.enableNonLoopAnim(ANIM_BUTTON_DISAPPEAR); - OSReport("Enabling button disappear @ %d\n", GlobalTickCount); -} - -void dMsgBoxManager_c::executeState_ButtonDisappearWait() { - if (!layout.isAnimOn(ANIM_BUTTON_DISAPPEAR)) { - OSReport("Button disappeared @ %d\n", GlobalTickCount); - state.setState(&StateID_BoxDisappearWait); - } -} - -void dMsgBoxManager_c::endState_ButtonDisappearWait() { }*/ - /*****************************************************************************/ // Hide Box CREATE_STATE(dMsgBoxManager_c, BoxDisappearWait); -- cgit v1.2.3