Пример #1
0
void EscapeMenuClose(void)
{
    DebugRoutine("EscapeMenuClose");

    if (G_escMenuIsOpen) {
        // We are now open (or will be soon)
        G_escMenuIsOpen = FALSE;

        // Go back to the previous form setup
        FormPop();

        // Tell the view we want to no longer update
        // form graphics per update
        ViewUpdateFormsOverViewDisable();

        KeyboardSetEventHandler(G_previousKeyHandler);

        // Save all the key strokes
        EscMenuSaveSettings();

        // Setup the new key controls
        KeyMapReinitialize(G_iniFile);

        // Use any new settings
        ConfigReadOptions(G_iniFile);

        //INIFileClose("config.ini", G_iniFile);

        // Force a save
        ConfigClose();
        ConfigOpen();

        // TODO: Now reload all the keys!
    }

    DebugEnd();
}
Пример #2
0
/* current listed members */
static T_void GuildUIBeginGame (T_buttonID buttonID)
{
    T_word16 firstLevel ;
    E_Boolean doSkip ;

    DebugRoutine ("GuildUIBeginGame");

    firstLevel = StatsFindPastPlace(PeopleHereGetOurAdventure()) ;
    if (firstLevel != 0)  {
//        if (BannerIsOpen())
//            BannerCloseForm() ;
        FormPush() ;
        doSkip = PromptForBoolean("Continue adventure from last save point?", TRUE);
        FormPop() ;
//        ButtonRedrawAllButtons() ;
        if (!doSkip)
            firstLevel = 0 ;
    }

    /* The wonder command */
    PeopleHereStartGame(firstLevel) ;

    DebugEnd();
}