Esempio n. 1
0
void EscapeMenuOpen(void)
{
    DebugRoutine("EscapeMenuOpen");

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

        ConfigClose();

        G_iniFile = ConfigOpen(); // INIFileOpen("config.ini");

        EscMenuLoadSettings();

        // Force the mouse out of relative mode
        MouseRelativeModeOff();

        // Save the current form
        FormPush();

        // Tell the view we want to update form graphics per update
        ViewUpdateFormsOverViewEnable();

        G_previousKeyHandler = KeyboardGetEventHandler();
        KeyboardSetEventHandler(EscapeMenuKeyHandler);

        G_escMenuState = 0;
        EscapeMenuLoadState();
    }
    DebugEnd();
}
/* 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();
}