Exemple #1
0
        internal static void game_speed()
        {
            char inputKey;

            do
            {
                Seg041.DisplayString(string.Format("Game Speed = {0} (0=fastest 9=slowest)", gbl.game_speed_var), 0, 10,
                                     18, 1);

                string text = string.Empty;

                if (gbl.game_speed_var > 0)
                {
                    text += " Faster";
                }

                if (gbl.game_speed_var < 9)
                {
                    text += " Slower";
                }

                text += " Exit";

                bool controlKey;
                inputKey = ovr027.displayInput(out controlKey, true, 1, gbl.defaultMenuColors, text, "Game Speed:");

                if (controlKey == true)
                {
                    if (inputKey == 0x50)
                    {
                        if (gbl.game_speed_var > 0)
                        {
                            gbl.game_speed_var--;
                        }
                    }
                    else if (inputKey == 0x48)
                    {
                        if (gbl.game_speed_var < 9)
                        {
                            gbl.game_speed_var++;
                        }
                    }
                }
                else
                {
                    if (inputKey == 0x46)
                    {
                        gbl.game_speed_var--;
                    }
                    else if (inputKey == 0x53)
                    {
                        gbl.game_speed_var++;
                    }
                }
            } while (AlterSet.MemberOf(inputKey) == false);

            ovr025.ClearPlayerTextArea();
        }
Exemple #2
0
        static void reorder_party()
        {
            int  reorderState = 0;
            char inputKey     = ' ';

            while (AlterSet.MemberOf(inputKey) == false)
            {
                bool controlKey;
                inputKey = ovr027.displayInput(out controlKey, true, 1, gbl.defaultMenuColors,
                                               reorderStrings[reorderState], "Party Order: ");

                if (controlKey == true)
                {
                    if (reorderState == 0)
                    {
                        ovr020.scroll_team_list(inputKey);
                        ovr025.PartySummary(gbl.SelectedPlayer);
                    }
                    else
                    {
                        if (inputKey == 0x47)
                        {
                            MoveCurrentPlayerUp();
                        }
                        else if (inputKey == 0x4F)
                        {
                            MoveCurrentPlayerDown();
                        }

                        ovr025.PartySummary(gbl.SelectedPlayer);
                    }
                }
                else if (reorderSet.MemberOf(inputKey) == true)
                {
                    reorderState = (reorderState == 0) ? 1 : 0;

                    if (reorderState != 0)
                    {
                        ovr025.DisplayPlayerStatusString(false, 10, "has been selected", gbl.SelectedPlayer);
                    }
                    else
                    {
                        ovr025.ClearPlayerTextArea();
                    }
                }
            }
        }
Exemple #3
0
        internal static bool magic_menu()
        {
            char inputKey          = ' ';
            bool actionInterrupted = false;

            while (actionInterrupted == false && AlterSet.MemberOf(inputKey) == false)
            {
                bool controlKey;
                inputKey = ovr027.displayInput(out controlKey, true, 1, gbl.defaultMenuColors,
                                               "Cast Memorize Scribe Display Rest Exit", string.Empty);

                if (controlKey == true)
                {
                    ovr020.scroll_team_list(inputKey);
                    ovr025.PartySummary(gbl.SelectedPlayer);
                }
                else
                {
                    switch (inputKey)
                    {
                    case 'C':
                        cast_spell();
                        break;

                    case 'M':
                        memorize_spell();
                        break;

                    case 'S':
                        scribe_spell();
                        break;

                    case 'D':
                        DisplayMagicEffects();
                        break;

                    case 'R':
                        actionInterrupted = rest_menu();
                        break;
                    }
                }
            }

            return(actionInterrupted);
        }