Пример #1
0
    void SanitariumQuirkWindow_onNegativeDeselect(QuirkTreatmentSlot slot)
    {
        DarkestSoundManager.PlayOneShot("event:/ui/town/button_click");

        SelectedSlot.TreatmentSlot.TargetNegativeQuirk = null;
        RecalculateCost();
    }
    private void QuirkTreatmentSlotPositiveDeselected(QuirkTreatmentSlot slot)
    {
        DarkestSoundManager.PlayOneShot("event:/ui/town/button_click");

        SelectedSlot.TreatmentSlot.TargetPositiveQuirk = null;
        RecalculateCost();
    }
Пример #3
0
 void SanitariumDiseaseWindow_onSelect(QuirkTreatmentSlot slot)
 {
     for (int i = 0; i < diseaseSlots.Count; i++)
     {
         if (diseaseSlots[i] != slot && diseaseSlots[i].Selected)
         {
             diseaseSlots[i].Deselect();
         }
     }
     SelectedSlot.TreatmentSlot.TargetDiseaseQuirk = slot.QuirkInfo.Quirk.Id;
     RecalculateCost();
 }
Пример #4
0
    void SanitariumQuirkWindow_onNegativeSelect(QuirkTreatmentSlot slot)
    {
        DarkestSoundManager.PlayOneShot("event:/ui/town/button_click");

        for (int i = 0; i < negativeSlots.Count; i++)
        {
            if (negativeSlots[i] != slot && negativeSlots[i].Selected)
            {
                negativeSlots[i].Deselect();
            }
        }
        SelectedSlot.TreatmentSlot.TargetNegativeQuirk = slot.QuirkInfo.Quirk.Id;
        RecalculateCost();
    }
Пример #5
0
    void SanitariumQuirkWindow_onPositiveSelect(QuirkTreatmentSlot slot)
    {
        if (SelectedSlot != null && SelectedSlot.TreatmentSlot.Hero.LockedPositiveQuirks.Count > 2)
        {
            slot.Deselect();
            return;
        }
        DarkestSoundManager.PlayOneShot("event:/ui/town/button_click");

        for (int i = 0; i < positiveSlots.Count; i++)
        {
            if (positiveSlots[i] != slot && positiveSlots[i].Selected)
            {
                positiveSlots[i].Deselect();
            }
        }
        SelectedSlot.TreatmentSlot.TargetPositiveQuirk = slot.QuirkInfo.Quirk.Id;
        RecalculateCost();
    }
Пример #6
0
 void SanitariumDiseaseWindow_onDeselect(QuirkTreatmentSlot slot)
 {
     SelectedSlot.TreatmentSlot.TargetDiseaseQuirk = null;
     RecalculateCost();
 }
 private void QuirkTreatmentSlotDeselected(QuirkTreatmentSlot slot)
 {
     SelectedSlot.TreatmentSlot.TargetDiseaseQuirk = null;
     RecalculateCost();
 }