mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Allow compilation with MYGUI_DONT_USE_OBSOLETE
This commit is contained in:
parent
ce84fdf5f5
commit
a0127dd7e4
26 changed files with 51 additions and 39 deletions
|
@ -73,7 +73,11 @@ namespace LuaUi
|
|||
w->eventMouseButtonPressed.clear();
|
||||
w->eventMouseButtonReleased.clear();
|
||||
w->eventMouseMove.clear();
|
||||
#if MYGUI_VERSION <= MYGUI_DEFINE_VERSION(3, 4, 2)
|
||||
w->eventMouseDrag.m_event.clear();
|
||||
#else
|
||||
w->eventMouseDrag.clear();
|
||||
#endif
|
||||
|
||||
w->eventMouseSetFocus.clear();
|
||||
w->eventMouseLostFocus.clear();
|
||||
|
|
|
@ -16,7 +16,11 @@ namespace LuaUi
|
|||
for (auto& [w, _] : mActionWidgets)
|
||||
{
|
||||
w->eventMouseButtonPressed.clear();
|
||||
#if MYGUI_VERSION <= MYGUI_DEFINE_VERSION(3, 4, 2)
|
||||
w->eventMouseDrag.m_event.clear();
|
||||
#else
|
||||
w->eventMouseDrag.clear();
|
||||
#endif
|
||||
}
|
||||
mActionWidgets.clear();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue