C++, MyGUI, Ogre
Собственно при компиляции, тучкой идут такие предупреждения:
../Game.cpp:212:94: предупреждение: «MyGUI::delegates::CMultiDelegate1<TP1>& MyGUI::delegates::CMultiDelegate1<TP1>::operator=(MyGUI::delegates::CMultiDelegate1<TP1>::IDelegate*) [with TP1 = MyGUI::Widget*, MyGUI::delegates::CMultiDelegate1<TP1>::IDelegate = MyGUI::delegates::IDelegate1<MyGUI::Widget*>]» is deprecated (declared at /usr/include/MYGUI/MyGUI_DelegateImplement.h:356) [-Wdeprecated-declarations]
А код такой:
virtual void PlayButton(MyGUI::Widget* _widget);
playButton = window->createWidget<MyGUI::Button>("Button_BlackTheme", 20, 174, 200, 26, MyGUI::Align::Default);
playButton->eventMouseButtonClick = MyGUI::newDelegate(this, &Workingwithogre::PlayButton);
playButton->setCaption("Play animation");
void Game::PlayButton(MyGUI::Widget* _widget) {}