Code: Select all
guiRoot->getChild("Root/AddMiner")->subscribeEvent(CEGUI::PushButton::EventClicked,CEGUI::Event::Subscriber(&GameState::addMiner,this));
I want GameState::addMiner to have an additional argument passed to it, as well as the necessary const CEGUI::EventArgs& one. Is there any easy way I can do this with CEGUI instead of making some other hacky fix?