Beispiel #1
0
        public static void textEvent(string[] args)
        {
            //args[] = { Line1, Line2, ... }
            GUIController g = new GUIController();

            GUIElement[] ele = new GUIElement[args.Length + 2];
            for (int i = 0; i < args.Length; i++)
            {
                ele[i] = new GUIButtonEntry(args[i], endTextButtonCB, Game.GameState);
            }
            ele[ele.Length - 2] = new GUIButtonEntry("", endTextButtonCB, Game.GameState);
            ele[ele.Length - 1] = new GUIButtonEntry("Return", endTextButtonCB, Game.GameState);
            g.elements          = ele;
            g.minCursor         = ele.Length - 1;
            g.maxCursor         = ele.Length - 1;
            g.cursorPos         = ele.Length - 1;
            Game.Menu           = g;
            Game.GameState      = STATE.MENU;
            Game.ClearDisplay();
        }
Beispiel #2
0
 static void SkillSelect(GUIButtonEntry sender)
 {
     //TODO: Handle skill select
 }
Beispiel #3
0
 static void ItemCB(GUIButtonEntry sender)
 {
     Battle.state = BattleState.ItemList;
 }
Beispiel #4
0
 static void FightCB(GUIButtonEntry sender)
 {
     Battle.state = BattleState.SkillList;
 }
Beispiel #5
0
 static void endTextButtonCB(GUIButtonEntry sender)           //Button Callback for Text Event
 {
     Game.GameState = (STATE)sender.data;
     Game.Menu      = null;
     Game.ClearDisplay();
 }