Beispiel #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.");
            }
        }
Beispiel #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;
            }
        }
Beispiel #3
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     TryHard.This(() => ScenarioSelected(listBox1, label3), "Failed to update Scenario Text at Label3");
 }
Beispiel #4
0
 private void Form3_Load(object sender, EventArgs e)
 {
     //Fill ListBox1;
     TryHard.This(() => FillScenarioListBox(listBox1), "Failed to fill Scenario List.");
 }
Beispiel #5
0
 private void Form1_Load(object sender, EventArgs e)
 {
     TryHard.This(() => FillScenarioList(listBox1), "Failed to fill Scenario List");
 }