示例#1
0
 private void SetSelected(BaseHardSkillSlot slot, bool selected)
 {
     if (selected)
     {
         UnDisplayedHardSkillDescription(slot);
         SetAllSelectedToFalse(false);
         slot.IsSelected(false);
     }
     else
     {
         SetAllSelectedToFalse(true);
         slot.IsSelected(true);
         DisplayedHardSkillDescription(slot);
     }
 }
示例#2
0
    private void DisplayedHardSkillDescription(BaseHardSkillSlot hardSkillSlot)
    {
        Reset();
        //title
        DisplayDescriptionBox(true);
        SetTitleText(hardSkillSlot.HARDSKILL.Hardskill_name, INST_HardSkill);

        hardskill_description.SetActive(true);
        text_hardskill_level.text       = hardSkillSlot.HARDSKILL.CurrentLevel.ToString();
        text_hardskill_currentExp.text  = hardSkillSlot.HARDSKILL.CurrentExp.ToString();
        text_hardskill_requiredExp.text = hardSkillSlot.HARDSKILL.GetExpRequire().ToString();
        text_hardskill_description.text = hardSkillSlot.HARDSKILL.Hardskill_description;
        image_hardskill_exp.fillAmount  = hardSkillSlot.HARDSKILL.GetExpFillAmount();

        status_Generator.CreateTemplate(hardSkillSlot.HARDSKILL);
    }
示例#3
0
 private void UnDisplayedHardSkillDescription(BaseHardSkillSlot hardSkillSlot)
 {
     DisplayDescriptionBox(false);
     hardskill_description.SetActive(false);
 }
示例#4
0
 private void SelectedHardSkillDisplayed(BaseHardSkillSlot hardSkillSlot, bool selected)
 {
     SetSelected(hardSkillSlot, selected);
 }
示例#5
0
 private void OnLeftClickHardSkillSlotHandler(BaseHardSkillSlot hardSkillSlot, bool selected)
 {
     OnLeftClickHardSkillSlotEvent?.Invoke(hardSkillSlot, selected);
 }
示例#6
0
 private void OnPointEnterHardSkillSlotHandler(BaseHardSkillSlot hardSkillSlot)
 {
     OnPointEnterHardSkillSlotEvent?.Invoke(hardSkillSlot);
 }