Example #1
0
 public void buildUI()
 {
     skillTreeUI = new SkillTreeUI();
     choiceUI    = new ChoiceUI(skillDefinitionLoader.getAllWays(), way => {
         player.pickWay(way);
         showSkillTreeUI(player);
     });
     skillTreeInterface = new UserInterface();
     skillTreeInterface.SetState(skillTreeUI);
     currentUI = skillTreeUI;
 }
Example #2
0
 public void buildUI()
 {
     skillTreeUI = new SkillTreeUI();
     choiceUI    = new ChoiceUI(skillDefinitionLoader.getAllWays(), way =>
     {
         player.pickWay(way);
         var skillRoot = new SkillTreeBuilder(this.skillDefinitionLoader).getSkillTree(way);
         skillTreeUI.buildSkillTree(skillRoot, skill => { player.learnSkill(skill); });
         Main.NewText("You chave choosen your way, you will be wielder of:");
         Main.NewText(skillRoot.getSkill().displayName);
         showSkillTreeUI(player);
     });
     skillTreeInterface = new UserInterface();
     skillTreeInterface.SetState(skillTreeUI);
     currentUI = skillTreeUI;
 }