Ejemplo n.º 1
0
        public override void Update(float dt)
        {
            base.Update(dt);

            if (cModeBox.value == "Custom")
            {
                cPickerLabel.Show();
                cPicker.Show();
            }
            else
            {
                cPickerLabel.Hide();
                cPicker.Hide();
            }
        }
Ejemplo n.º 2
0
    public override void Update(float dt)
    {
        base.Update(dt);
        //Toggle between rain and snow mode
        if (this.rainWeather.valueBool)
        {
            rainIntensity.text           = "Rain Settings";
            rainSettingsDescription.text = "Enable or disable rain specific settings:";
            paletteCheck.description     = "The region will become darker with higher rain intensity.";
            logo.Show();
            logo2.Hide();
            //Hide rain checks
            muteCheck.Show();
            waterCheck.Show();
            bgOn.Show();
            //Show rain check labels
            bgLabel.Show();
            muteLabel.Show();
            waterLabel.Show();
            //Hide snow checks
            decalCheck.Hide();
            dustCheck.Hide();
            effectCheck.Hide();
            blizzardCheck.Hide();
            //Hide snow labels
            decalLabel.Hide();
            dustLabel.Hide();
            snowWarning.Hide();
            effectLabel.Hide();
            blizzardLabel.Hide();
        }
        else
        {
            rainIntensity.text           = "Snow Settings";
            rainSettingsDescription.text = "Enable or disable snow specific settings:";
            paletteCheck.description     = "A snowy palette will be overlayed onto the current palette.";
            logo.Hide();
            logo2.Show();
            //Disable rain checks
            muteCheck.valueBool  = false;
            waterCheck.valueBool = false;
            bgOn.valueBool       = false;
            //Hide rain checks
            muteCheck.Hide();
            waterCheck.Hide();
            bgOn.Hide();
            //Hide rain check labels
            bgLabel.Hide();
            muteLabel.Hide();
            waterLabel.Hide();
            //Hide snow checks
            decalCheck.Show();
            dustCheck.Show();
            effectCheck.Show();
            blizzardCheck.Show();
            //Hide snow labels
            decalLabel.Show();
            dustLabel.Show();
            snowWarning.Show();
            effectLabel.Show();
            blizzardLabel.Show();
        }
        if (lightningCheck.valueBool == false)
        {
            strikeCheck.valueBool = false;
            strikeCheck.greyedOut = true;
            strikeCheck.colorEdge = Menu.Menu.MenuColor(Menu.Menu.MenuColors.DarkGrey).rgb;
            strikeLabel.color     = Menu.Menu.MenuColor(Menu.Menu.MenuColors.DarkGrey).rgb;
        }
        else
        {
            strikeCheck.greyedOut = false;
            strikeCheck.colorEdge = Menu.Menu.MenuColor(Menu.Menu.MenuColors.MediumGrey).rgb;
            strikeLabel.color     = Menu.Menu.MenuColor(Menu.Menu.MenuColors.MediumGrey).rgb;
        }
        if (lightningCheck.valueBool == false || strikeCheck.valueBool == false)
        {
            strikeDamage.greyedOut = true;
            strikeDamage.colorEdge = Menu.Menu.MenuColor(Menu.Menu.MenuColors.DarkGrey).rgb;
            strikeDamage.colorLine = Menu.Menu.MenuColor(Menu.Menu.MenuColors.DarkGrey).rgb;
            damageLabel.color      = Menu.Menu.MenuColor(Menu.Menu.MenuColors.DarkGrey).rgb;
        }
        else
        {
            strikeDamage.greyedOut = false;
            strikeDamage.colorEdge = Menu.Menu.MenuColor(Menu.Menu.MenuColors.MediumGrey).rgb;
            strikeDamage.colorLine = Menu.Menu.MenuColor(Menu.Menu.MenuColors.MediumGrey).rgb;
            damageLabel.color      = Menu.Menu.MenuColor(Menu.Menu.MenuColors.MediumGrey).rgb;
        }
        if (this.strikeDamage != null)
        {
            switch (this.strikeDamage.valueInt)
            {
            case 0:
                this.damageLabel.text = "Damage Type: None";
                break;

            case 1:
                this.damageLabel.text = "Damage Type: Stun";
                break;

            case 2:
                this.damageLabel.text = "Damage Type: Lethal";
                break;
            }
        }
        //Intensity Slider
        switch (weatherIntensity.value)
        {
        case "0":
            (weatherIntensity.subObjects[1] as Menu.MenuLabel).text = "Dynamic";
            break;

        case "1":
            (weatherIntensity.subObjects[1] as Menu.MenuLabel).text = "Low";
            break;

        case "2":
            (weatherIntensity.subObjects[1] as Menu.MenuLabel).text = "Medium";
            break;

        case "3":
            (weatherIntensity.subObjects[1] as Menu.MenuLabel).text = "High";
            break;
        }
        //Direction Slider
        switch (weatherDirection.value)
        {
        case "0":
            (weatherDirection.subObjects[1] as Menu.MenuLabel).text = "Random";
            break;

        case "1":
            (weatherDirection.subObjects[1] as Menu.MenuLabel).text = "Left";
            break;

        case "2":
            (weatherDirection.subObjects[1] as Menu.MenuLabel).text = "Center";
            break;

        case "3":
            (weatherDirection.subObjects[1] as Menu.MenuLabel).text = "Right";
            break;
        }
    }