Beispiel #1
0
 private void SetSelected(BaseBonusSlot slot, bool selected)
 {
     if (selected)
     {
         UnDisplayedBonusDescription(slot);
         SetAllSelectedToFalse(false);
         slot.IsSelected(false);
     }
     else
     {
         SetAllSelectedToFalse(true);
         slot.IsSelected(true);
         DisplayedBonusDescription(slot);
     }
 }
Beispiel #2
0
    private void SetAllSelectedToFalse(bool ottherSelected)
    {
        foreach (BaseHardSkillSlot hardSlot in hardSkill_display.hardSkillSlots)
        {
            hardSlot.IsSelected(false);
            hardSlot.SetOtherSelected(ottherSelected);
        }

        foreach (BaseSoftSkillSlot softSlot in softSkill_display.softSkillSlots)
        {
            softSlot.IsSelected(false);
            softSlot.SetOtherSelected(ottherSelected);
        }

        foreach (BaseStatusSlot statusSlot in status_display.statusSlots)
        {
            statusSlot.IsSelected(false);
            statusSlot.SetOtherSelected(ottherSelected);
        }

        _currentStatusId    = StatusType.None;
        _currentSoftSkillId = string.Empty;

        bonusSlot.IsSelected(false);
        bonusSlot.SetOtherSelected(ottherSelected);
    }