mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Hide the menu header with touch_gui enabled
This commit is contained in:
parent
51a453ca7b
commit
869ed0544e
1 changed files with 8 additions and 1 deletions
|
@ -225,7 +225,14 @@ end
|
||||||
local function hide_tabview(self)
|
local function hide_tabview(self)
|
||||||
self.hidden=true
|
self.hidden=true
|
||||||
|
|
||||||
--call on_change as we're not gonna show self tab any longer
|
-- hide the menu header image as well
|
||||||
|
if core.settings:get_bool("touch_gui") then
|
||||||
|
if mm_game_theme and mm_game_theme.clear_single then
|
||||||
|
mm_game_theme.clear_single("header")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- call on_change as we're not gonna show self tab any longer
|
||||||
if self.tablist[self.last_tab_index].on_change ~= nil then
|
if self.tablist[self.last_tab_index].on_change ~= nil then
|
||||||
self.tablist[self.last_tab_index].on_change("LEAVE",
|
self.tablist[self.last_tab_index].on_change("LEAVE",
|
||||||
self.current_tab, nil)
|
self.current_tab, nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue