| 196 | { return SkillFamily::spells; } |
| 197 | |
| 198 | void connectGuiButtons(GameEditorModeBase* mode, CEGUI::Window* rootWindow, PlayerSelection& playerSelection) const override |
| 199 | { |
| 200 | mode->addEventConnection( |
| 201 | rootWindow->getChild(getGuiPath() + mButtonName)->subscribeEvent( |
| 202 | CEGUI::PushButton::EventClicked, |
| 203 | CEGUI::Event::Subscriber(SpellSelector(mSpellType, playerSelection)) |
| 204 | ) |
| 205 | ); |
| 206 | } |
| 207 | |
| 208 | const std::string& getGuiPath() const |
| 209 | { |
nothing calls this directly
no test coverage detected