MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / connectGuiButtons

Method connectGuiButtons

source/game/SkillManager.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

SpellSelectorClass · 0.85
addEventConnectionMethod · 0.45

Tested by

no test coverage detected