Exemplo n.º 1
0
        public static void Next()
        {
            ++ScriptPosition;
            if (ScriptPosition <= ScriptLength)
            {
                ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString()));
                switch (ActionType)
                {
                case 1:
                    TryHard.This(() => SQLEngine.ImagePath());
                    GraphicEngine.SetBackground();
                    //MessageBox.Show(text: ScriptPosition.ToString());
                    break;

                case 2:
                    break;

                case 3:
                    break;
                }
            }

            else
            {
                MessageBox.Show(text: "End of Script.");
            }
        }
Exemplo n.º 2
0
        public static void GameInit()
        {
            ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString()));
            switch (ActionType)
            {
            case 1:
                TryHard.This(() => SQLEngine.ImagePath());
                GraphicEngine.SetBackground();
                break;

            case 2:
                break;

            case 3:
                break;
            }
        }
Exemplo n.º 3
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     TryHard.This(() => ScenarioSelected(listBox1, label3), "Failed to update Scenario Text at Label3");
 }
Exemplo n.º 4
0
 private void Form3_Load(object sender, EventArgs e)
 {
     //Fill ListBox1;
     TryHard.This(() => FillScenarioListBox(listBox1), "Failed to fill Scenario List.");
 }
Exemplo n.º 5
0
 private void Form1_Load(object sender, EventArgs e)
 {
     TryHard.This(() => FillScenarioList(listBox1), "Failed to fill Scenario List");
 }