void ToggleSpellLock(ColourList colour, int spellIndex) { if (allSpells[(int)colour][spellIndex] != null) { allSpells[(int)colour][spellIndex].isLocked = !allSpells[(int)colour][spellIndex].isLocked; } }
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); }
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; } } }
public Colour(ColourList c) { SetColour((int)c); }