예제 #1
0
        private void loadPreviousLevel(A_Skill skill, SkillsLocalisationData skillLocalisation, SkillsData skillData)
        {
            //NOT TESTED
            if (skill.skillLevel - 1 > 0)
            {
                Dictionary <string, string> systemMessages = LocalisationManager.systemMessagesLocalisationData.localisationValues["CharacterMenu"];

                skillName.text         = skillLocalisation.skillLocalisedName;
                skillLevel.text        = systemMessages["SkillLevel"] + Convert.ToString(skill.skillLevel - 1);
                skillAvailability.text = SkillTreeController.getSkillAvailability(skill, LocalisationManager.systemMessagesLocalisationData.localisationValues["CharacterMenu"]);
                skillAPcost.text       = systemMessages["APCost"] + skillData.skillAPCost[skill.skillLevel] + " -> "
                                         + "<color=#FF0004>" + skillData.skillAPCost[skill.skillLevel - 1] + "</color>";
                skillEneCost.text = systemMessages["EneCost"] + skillData.skillEneCost[skill.skillLevel] + " -> "
                                    + "<color=#FF0004>" + skillData.skillEneCost[skill.skillLevel - 1] + "</color>";
                skillTargets.text = systemMessages["Targets"] +
                                    skillLocalisation.skillTargetsDescription[skill.skillLevel - 1] + "->" + "<color=#FF0004>"
                                    + skillLocalisation.skillTargetsDescription[skill.skillLevel - 2] + "</color>";
                skillDuration.text = systemMessages["Duration"]
                                     + SkillTreeController.getSkillDuration(skillData, skill.skillLevel, systemMessages)
                                     + " -> " + "<color=#FF0004>"
                                     + SkillTreeController.getSkillDuration(skillData, (short)(skill.skillLevel - 1), systemMessages)
                                     + "</color>";
                skillGeneralDescription.text = systemMessages["SkillGeneralDescription"] + skillLocalisation.skillMainDescription;
                skillLevelDescription.text   = getLocalisedTextForNextLevel(skillLocalisation, skillData,
                                                                            (short)(skill.skillLevel - 1), (short)(skill.skillLevel - 2), "<color=#FF0004>");
            }
        }
예제 #2
0
        private void loadCurrentLevel(A_Skill skill, SkillsLocalisationData skillLocalisation, SkillsData skillData)
        {
            Dictionary <string, string> systemMessages = LocalisationManager.systemMessagesLocalisationData.localisationValues["CharacterMenu"];

            skillName.text               = skillLocalisation.skillLocalisedName;
            skillLevel.text              = systemMessages["SkillLevel"] + skill.skillLevel.ToString(); // get actual level from game object
            skillAvailability.text       = SkillTreeController.getSkillAvailability(skill, LocalisationManager.systemMessagesLocalisationData.localisationValues["CharacterMenu"]);
            skillAPcost.text             = systemMessages["APCost"] + skillData.skillAPCost[skill.skillLevel];
            skillEneCost.text            = systemMessages["EneCost"] + skillData.skillEneCost[skill.skillLevel];
            skillTargets.text            = systemMessages["Targets"] + skillLocalisation.skillTargetsDescription[skill.skillLevel - 1];
            skillDuration.text           = systemMessages["Duration"] + SkillTreeController.getSkillDuration(skillData, skill.skillLevel, systemMessages);
            skillGeneralDescription.text = systemMessages["SkillGeneralDescription"] + skillLocalisation.skillMainDescription;
            skillLevelDescription.text   = getLocalisedText(skillLocalisation, skillData, skill.skillLevel);
        }