Example #1
0
 void ToggleSpellLock(ColourList colour, int spellIndex)
 {
     if (allSpells[(int)colour][spellIndex] != null)
     {
         allSpells[(int)colour][spellIndex].isLocked = !allSpells[(int)colour][spellIndex].isLocked;
     }
 }
Example #2
0
        public void Apply()
        {
            if (FlashingSpeedSelectedIndex != 0) // If flashing enabled
            {
                BreathingModeEnabled = false;
            }

            ScriptsSelectedIndex = -1;

            var colours = ColourList.Select(ci => ((SolidColorBrush)ci.Background).Color).ToList();

            _model.ApplyConfig(colours,
                               Convert.ToUInt16(StepDurationText),
                               BreathingModeEnabled,
                               FlashingSpeedList[FlashingSpeedSelectedIndex].Type);
        }
Example #3
0
    void EquipSpell(ColourList colour, int spellIndex, SpellInputList slot)
    {
        if (equippedSpells[(int)slot] != null)
        {
            UnequipSpell(slot);
        }
        int c = (int)colour;

        if (allSpells[c][spellIndex] != null)
        {
            if (allSpells[c][spellIndex].isLocked != true)
            {
                Debug.Log("EquippingSpell: " + allSpells[c][spellIndex].name);
                equippedSpells[(int)slot] = allSpells[c][spellIndex].gameObject;
            }
        }
    }
Example #4
0
 public Colour(ColourList c)
 {
     SetColour((int)c);
 }