mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Create separate UI api tables for menu and player contexts
This commit is contained in:
parent
7cc0eae461
commit
b9afd7245c
6 changed files with 85 additions and 90 deletions
|
@ -47,12 +47,12 @@ namespace LuaUi
|
|||
void clearGameInterface()
|
||||
{
|
||||
while (!Element::sGameElements.empty())
|
||||
Element::sGameElements.begin()->second->destroy();
|
||||
Element::erase(Element::sGameElements.begin()->second.get());
|
||||
}
|
||||
|
||||
void clearMenuInterface()
|
||||
{
|
||||
while (!Element::sMenuElements.empty())
|
||||
Element::sMenuElements.begin()->second->destroy();
|
||||
Element::erase(Element::sMenuElements.begin()->second.get());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue