1
0
Fork 0
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:
ROllerozxa 2022-07-17 15:45:30 +02:00 committed by GitHub
parent 4648d8f499
commit f090471022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 146 deletions

View file

@ -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, ",")