forked from Mirrorlandia_minetest/minetest
Apply texture pack main menu textures immediately (#12018)
This commit is contained in:
parent
10cf2f3edd
commit
258ae99491
@ -154,6 +154,9 @@ local function handle_doubleclick(pkg)
|
|||||||
core.settings:set("texture_path", pkg.path)
|
core.settings:set("texture_path", pkg.path)
|
||||||
end
|
end
|
||||||
packages = nil
|
packages = nil
|
||||||
|
|
||||||
|
mm_game_theme.init()
|
||||||
|
mm_game_theme.reset()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -197,17 +200,17 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields.btn_mod_mgr_use_txp then
|
if fields.btn_mod_mgr_use_txp or fields.btn_mod_mgr_disable_txp then
|
||||||
local txp = packages:get_list()[tabdata.selected_pkg]
|
local txp_path = ""
|
||||||
core.settings:set("texture_path", txp.path)
|
if fields.btn_mod_mgr_use_txp then
|
||||||
packages = nil
|
txp_path = packages:get_list()[tabdata.selected_pkg].path
|
||||||
return true
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
core.settings:set("texture_path", txp_path)
|
||||||
if fields.btn_mod_mgr_disable_txp then
|
|
||||||
core.settings:set("texture_path", "")
|
|
||||||
packages = nil
|
packages = nil
|
||||||
|
|
||||||
|
mm_game_theme.init()
|
||||||
|
mm_game_theme.reset()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user