mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Replace all uses of core::list with std::list (#12313)
This commit is contained in:
parent
2742fef458
commit
9f338f5a56
16 changed files with 36 additions and 148 deletions
|
@ -45,32 +45,12 @@ GUIVolumeChange::GUIVolumeChange(gui::IGUIEnvironment* env,
|
|||
{
|
||||
}
|
||||
|
||||
GUIVolumeChange::~GUIVolumeChange()
|
||||
{
|
||||
removeChildren();
|
||||
}
|
||||
|
||||
void GUIVolumeChange::removeChildren()
|
||||
{
|
||||
if (gui::IGUIElement *e = getElementFromId(ID_soundText))
|
||||
e->remove();
|
||||
|
||||
if (gui::IGUIElement *e = getElementFromId(ID_soundExitButton))
|
||||
e->remove();
|
||||
|
||||
if (gui::IGUIElement *e = getElementFromId(ID_soundSlider))
|
||||
e->remove();
|
||||
|
||||
if (gui::IGUIElement *e = getElementFromId(ID_soundMuteButton))
|
||||
e->remove();
|
||||
}
|
||||
|
||||
void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||
{
|
||||
/*
|
||||
Remove stuff
|
||||
*/
|
||||
removeChildren();
|
||||
removeAllChildren();
|
||||
/*
|
||||
Calculate new sizes and positions
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue