mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Enable the gamebar on Android (#12354)
This commit is contained in:
parent
4648d8f499
commit
f090471022
3 changed files with 104 additions and 146 deletions
|
@ -125,18 +125,12 @@ os.tmpname = function()
|
|||
end
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function menu_render_worldlist(show_gameid)
|
||||
function menu_render_worldlist()
|
||||
local retval = {}
|
||||
local current_worldlist = menudata.worldlist:get_list()
|
||||
|
||||
local row
|
||||
for i, v in ipairs(current_worldlist) do
|
||||
row = v.name
|
||||
if show_gameid == nil or show_gameid == true then
|
||||
row = row .. " [" .. v.gameid .. "]"
|
||||
end
|
||||
retval[#retval+1] = core.formspec_escape(row)
|
||||
|
||||
retval[#retval+1] = core.formspec_escape(v.name)
|
||||
end
|
||||
|
||||
return table.concat(retval, ",")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue