1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

TouchScreenGUI: Show status text above grid menu

This commit is contained in:
Gregor Parzefall 2024-08-21 13:04:51 +02:00 committed by grorp
parent 88397c2908
commit 08de047033
3 changed files with 29 additions and 8 deletions

View file

@ -412,6 +412,10 @@ TouchControls::TouchControls(IrrlichtDevice *device, ISimpleTextureSource *tsrc)
pos.X += spacing.X;
}
m_status_text = grab_gui_element<IGUIStaticText>(
m_guienv->addStaticText(L"", recti(), false, false));
m_status_text->setVisible(false);
}
void TouchControls::addButton(std::vector<button_info> &buttons, touch_gui_button_id id,