mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Replace pause and message menu by formspec ones
This commit is contained in:
parent
062de11b4c
commit
a4e2198e41
14 changed files with 273 additions and 711 deletions
|
@ -176,7 +176,7 @@ function update_menu()
|
|||
|
||||
-- handle errors
|
||||
if gamedata.errormessage ~= nil then
|
||||
formspec = "size[12,5.2]" ..
|
||||
formspec = "size[12,5.2,true]" ..
|
||||
"textarea[1,2;10,2;;ERROR: " ..
|
||||
engine.formspec_escape(gamedata.errormessage) ..
|
||||
";]"..
|
||||
|
@ -365,7 +365,7 @@ end
|
|||
|
||||
function tabbuilder.gettab()
|
||||
local tsize = tabbuilder.tabsizes[tabbuilder.current_tab] or {width=12, height=5.2}
|
||||
local retval = "size[" .. tsize.width .. "," .. tsize.height .. "]"
|
||||
local retval = "size[" .. tsize.width .. "," .. tsize.height .. ",true]"
|
||||
|
||||
if tabbuilder.show_buttons then
|
||||
retval = retval .. tabbuilder.tab_header()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue