Example #1
0
    private void DisplayedSoftSkillDescription(BaseSoftSkillSlot softSkillSlot)
    {
        Reset();
        //title
        DisplayDescriptionBox(true);
        SetTitleText(softSkillSlot.SOFTSKILL.GetSoftSkillName(), INST_SoftSkill);

        softskill_description.SetActive(true);
        text_softskill_level.text       = softSkillSlot.SOFTSKILL.GetCurrentSoftSkillLevel().ToString();
        text_softskill_description.text = softSkillSlot.SOFTSKILL.GetSoftSkillDescription().ToString();

        bonus_Generator.CreateTemplate(softSkillSlot.SOFTSKILL);
    }
Example #2
0
 private void SetSelected(BaseSoftSkillSlot slot, bool selected)
 {
     if (selected)
     {
         UnDisplayedSoftSkillDescription(slot);
         SetAllSelectedToFalse(false);
         slot.IsSelected(false);
     }
     else
     {
         SetAllSelectedToFalse(true);
         slot.IsSelected(true);
         _currentSoftSkillId = slot.SOFTSKILL.SoftSkill_ID;
         DisplayedSoftSkillDescription(slot);
     }
 }
Example #3
0
 private void UnDisplayedSoftSkillDescription(BaseSoftSkillSlot softSkillSlot)
 {
     DisplayDescriptionBox(false);
     softskill_description.SetActive(false);
 }
Example #4
0
 private void SelectedSoftSkillDisplayed(BaseSoftSkillSlot softSkillSlot, bool selected)
 {
     SetSelected(softSkillSlot, selected);
 }
Example #5
0
 private void OnSoftSkillUpLevelHandler(BaseSoftSkillSlot slot)
 {
     DisplayedSoftSkillDescription(slot);
 }
Example #6
0
 private void OnPointExitSoftSkillSlotHandler(BaseSoftSkillSlot softSkillSlot)
 {
     OnPointExitSoftSkillSlotEvent?.Invoke(softSkillSlot);
 }
Example #7
0
 private void OnLeftClickSoftSkillSlotHandler(BaseSoftSkillSlot softSkillSlot, bool selected)
 {
     OnLeftClickSoftSkillSlotEvent?.Invoke(softSkillSlot, selected);
     lastIndex = softSkillSlot.Index;
 }