mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Remove remaining modstore code (#6120)
This commit is contained in:
parent
32b68de65a
commit
dc3ca09e0e
14 changed files with 1 additions and 1241 deletions
|
@ -33,15 +33,6 @@ local function get_formspec(tabview, name, tabdata)
|
|||
modmgr.render_modlist(modmgr.global_mods) ..
|
||||
";" .. tabdata.selected_mod .. "]"
|
||||
|
||||
retval = retval ..
|
||||
-- "label[0.8,4.2;" .. fgettext("Add mod:") .. "]" ..
|
||||
-- TODO Disabled due to upcoming release 0.4.8 and irrlicht messing up localization
|
||||
-- "button[0.75,4.85;1.8,0.5;btn_mod_mgr_install_local;".. fgettext("Local install") .. "]" ..
|
||||
|
||||
-- TODO Disabled due to service being offline, and not likely to come online again, in this form
|
||||
-- "button[0,4.85;5.25,0.5;btn_modstore;".. fgettext("Online mod repository") .. "]"
|
||||
""
|
||||
|
||||
local selected_mod = nil
|
||||
|
||||
if filterlist.size(modmgr.global_mods) >= tabdata.selected_mod then
|
||||
|
@ -138,18 +129,6 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
|
|||
return true
|
||||
end
|
||||
|
||||
if fields["btn_modstore"] ~= nil then
|
||||
local modstore_ui = ui.find_by_name("modstore")
|
||||
if modstore_ui ~= nil then
|
||||
tabview:hide()
|
||||
modstore.update_modlist()
|
||||
modstore_ui:show()
|
||||
else
|
||||
print("modstore ui element not found")
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
if fields["btn_mod_mgr_rename_modpack"] ~= nil then
|
||||
local dlg_renamemp = create_rename_modpack_dlg(tabdata.selected_mod)
|
||||
dlg_renamemp:set_parent(tabview)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue