Esempio n. 1
0
    void Start()
    {
        //currentPlanet = new Planet();
        //currentPlanet.InitFromMiniGame(this.gm.generator.currentSystemName, this.gm.currentPlanet);
        //planetName.text = currentPlanet.planetName;
        data = new PlanetData(this.gm.currentPlanetType);
        this.displaySprite.SetSprite("display_" + this.gm.currentPlanetType.ToString());

        switch (this.gm.currentPlanetType)
        {
        case PlanetTypeEnum.Desert: this.mineField.color = planetFields.Desert; break;

        case PlanetTypeEnum.Forest: this.mineField.color = planetFields.Forest; break;

        case PlanetTypeEnum.Clay: this.mineField.color = planetFields.Clay; break;

        case PlanetTypeEnum.Tundra: this.mineField.color = planetFields.Tundra; break;

        case PlanetTypeEnum.Icy: this.mineField.color = planetFields.Icy; break;

        case PlanetTypeEnum.Water: this.mineField.color = planetFields.Water; break;

        case PlanetTypeEnum.Plain: this.mineField.color = planetFields.Plain; break;
        }

        resetButton.Init(this);
        GenerateField(data.data.numOfDiamonds, data.data.numOfGolds, data.data.numOfSilvers, data.data.numOfBronzes);

        tryController.ResetTries(data.data.numOfTries);
        resetButton.Hide();
        totalValue             = 0;
        totalValueDisplay.text = "0";
    }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     ResetButton.Hide();
     NextButton.Hide();
     DeleteAnswersButton.Hide();
 }
Esempio n. 3
0
File: Form1.cs Progetto: Haurum/P2
 // Reseter programmet som det var ved opstart
 private void ResetButton_Click(object sender, EventArgs e)
 {
     Runners.Clear();
     player.Second = 0;
     PlayTimer.Stop();
     Map1.Refresh();
     ResetButton.Hide();
     LoadButton.Show();
     player.ShutDown();
     RunnersCheckBox.Items.Clear();
 }
Esempio n. 4
0
 private void MenuButton_Click(object sender, EventArgs e)
 {
     TimeLabel.Hide();
     NextButton.Hide();
     AddQuestionButton.Show();
     StartButton.Show();
     ResetButton.Hide();
     IDLabel.Show();
     IDTextField.Show();
     DeleteAnswersButton.Hide();
     Timp.Stop();
 }