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

Method connectGuiButtons

source/game/SkillManager.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 { return SkillFamily::rooms; }
107
108 void connectGuiButtons(GameEditorModeBase* mode, CEGUI::Window* rootWindow, PlayerSelection& playerSelection) const override
109 {
110 mode->addEventConnection(
111 rootWindow->getChild(getGuiPath() + mButtonName)->subscribeEvent(
112 CEGUI::PushButton::EventClicked,
113 CEGUI::Event::Subscriber(RoomSelector(mRoomType, playerSelection))
114 )
115 );
116 }
117
118 const std::string& getGuiPath() const
119 {

Callers

nothing calls this directly

Calls 2

RoomSelectorClass · 0.85
addEventConnectionMethod · 0.45

Tested by

no test coverage detected