| 710 | } |
| 711 | |
| 712 | void SkillManager::connectSkills(GameMode* mode, CEGUI::Window* rootWindow) |
| 713 | { |
| 714 | for(const SkillDef* skill : getSkillManager().mSkills) |
| 715 | { |
| 716 | if(skill == nullptr) |
| 717 | continue; |
| 718 | |
| 719 | mode->addEventConnection( |
| 720 | rootWindow->getChild("SkillTreeWindow/Skills/" + skill->mSkillFamily + skill->mButtonName)->subscribeEvent( |
| 721 | CEGUI::PushButton::EventClicked, |
| 722 | CEGUI::Event::Subscriber(SkillSelector(skill->mSkill->getType(), *mode)) |
| 723 | ) |
| 724 | ); |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | void SkillManager::connectGuiButtons(GameEditorModeBase* mode, CEGUI::Window* rootWindow, PlayerSelection& playerSelection) |
| 729 | { |
nothing calls this directly
no test coverage detected