void spnewgamerandomcustomscreen_backPress(aui_Control *control, uint32 action, uint32 data, void *cookie ) { if ( action != (uint32)AUI_BUTTON_ACTION_EXECUTE ) return; spnewgamerandomcustomscreen_removeMyWindow(action); if ( s_checkBox[ 1 ]->GetState() ) { if ( g_spNewGameWindow ) { g_spNewGameWindow->m_useCustomMap = true; } else { } loadsavemapscreen_displayMyWindow(0); } else { if ( g_spNewGameWindow ) { g_spNewGameWindow->m_useCustomMap = false; spnewgamescreen_update(); } else { } } }
sint32 spnewgamemapsizescreen_removeMyWindow(uint32 action) { if ( action != (uint32)AUI_BUTTON_ACTION_EXECUTE ) return 0; uint32 id = s_group->WhichIsSelected(); if ( id ) { for ( sint32 i = 0;i < k_NUM_MAPSIZEBOXES;i ++ ) { if ( id == s_checkBox[i]->Id() ) { spnewgamemapsizescreen_setMapSizeIndex( i ); } } } AUI_ERRCODE auiErr; auiErr = g_c3ui->RemoveWindow( s_spNewGameMapSizeScreen->Id() ); keypress_RemoveHandler(s_spNewGameMapSizeScreen); Assert( auiErr == AUI_ERRCODE_OK ); if ( s_useMode == 1 ) { spnewgamemapshapescreen_displayMyWindow( FALSE, 1 ); } spnewgamescreen_update(); return 1; }
sint32 spnewgamediffscreen_removeMyWindow(uint32 action) { if ( action != (uint32)AUI_BUTTON_ACTION_EXECUTE ) return 0; spnewgamediffscreen_setDifficulty1(s_diffListBox->GetSelectedItemIndex()); spnewgamediffscreen_setDifficulty2(s_riskListBox->GetSelectedItemIndex()); AUI_ERRCODE auiErr = g_c3ui->RemoveWindow( s_spNewGameDiffScreen->Id() ); keypress_RemoveHandler(s_spNewGameDiffScreen); Assert( auiErr == AUI_ERRCODE_OK ); spnewgamescreen_update(); return 1; }