Browse Source

Resolve problem list worlds

master
Mrchiantos 3 weeks ago
parent
commit
6c2b56ec94
1 changed files with 20 additions and 20 deletions
  1. 20
    20
      builtin/mainmenu/tab_local.lua

+ 20
- 20
builtin/mainmenu/tab_local.lua View File

@@ -262,28 +262,28 @@ local function main_button_handler(this, fields, name, tabdata)
end
end

local function on_change(type, old_tab, new_tab)
local buttonbar = ui.find_by_name("game_button_bar")

if ( buttonbar == nil ) then
singleplayer_refresh_gamebar()
buttonbar = ui.find_by_name("game_button_bar")
end

if (type == "ENTER") then
local game = current_game()
local on_change
if enable_gamebar then
function on_change(type, old_tab, new_tab)
if (type == "ENTER") then
local game = current_game()

if game then
menudata.worldlist:set_filtercriteria(game.id)
core.set_topleft_text(game.name)
mm_texture.update("singleplayer",game)
end

if game then
menudata.worldlist:set_filtercriteria(game.id)
core.set_topleft_text(game.name)
mm_texture.update("singleplayer",game)
singleplayer_refresh_gamebar()
ui.find_by_name("game_button_bar"):show()
else
menudata.worldlist:set_filtercriteria(nil)
local gamebar = ui.find_by_name("game_button_bar")
if gamebar then
end
core.set_topleft_text("")
mm_texture.update(new_tab,nil)
end
buttonbar:hide()
else
menudata.worldlist:set_filtercriteria(nil)
buttonbar:hide()
core.set_topleft_text("")
mm_texture.update(new_tab,nil)
end
end


Loading…
Cancel
Save