some about page, default settings, some textures etc. not yet compiled or tested
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
|
||||
local current_game, singleplayer_refresh_gamebar
|
||||
local valid_disabled_settings = {
|
||||
["enable_damage"]=true,
|
||||
["enable_damage"]=false,
|
||||
["creative_mode"]=true,
|
||||
["enable_server"]=true,
|
||||
["enable_server"]=false,
|
||||
}
|
||||
|
||||
-- Currently chosen game in gamebar for theming and filtering
|
||||
@@ -100,11 +100,11 @@ function singleplayer_refresh_gamebar()
|
||||
text = text .. "\n" .. part3
|
||||
end
|
||||
end
|
||||
btnbar:add_button(btn_name, text, image, tooltip)
|
||||
--btnbar:add_button(btn_name, text, image, tooltip)
|
||||
end
|
||||
|
||||
local plus_image = core.formspec_escape(defaulttexturedir .. "plus.png")
|
||||
btnbar:add_button("game_open_cdb", "", plus_image, fgettext("Install games from ContentDB"))
|
||||
--local plus_image = core.formspec_escape(defaulttexturedir .. "plus.png")
|
||||
--btnbar:add_button("game_open_cdb", "", plus_image, fgettext("Install games from ContentDB"))
|
||||
end
|
||||
|
||||
local function get_disabled_settings(game)
|
||||
@@ -165,14 +165,14 @@ local function get_formspec(tabview, name, tabdata)
|
||||
y = y + yo
|
||||
end
|
||||
if disabled_settings["enable_server"] == nil then
|
||||
host = "checkbox[0,"..y..";cb_server;".. fgettext("Host Server") ..";" ..
|
||||
dump(core.settings:get_bool("enable_server")) .. "]"
|
||||
y = y + yo
|
||||
--host = "checkbox[0,"..y..";cb_server;".. fgettext("Host Server") ..";" ..
|
||||
-- dump(core.settings:get_bool("enable_server")) .. "]"
|
||||
--y = y + yo
|
||||
end
|
||||
|
||||
|
||||
retval = retval ..
|
||||
"button[3.9,3.8;2.8,1;world_delete;".. fgettext("Delete") .. "]" ..
|
||||
"button[6.55,3.8;2.8,1;world_configure;".. fgettext("Select Mods") .. "]" ..
|
||||
--"button[6.55,3.8;2.8,1;world_configure;".. fgettext("Select Mods") .. "]" ..
|
||||
"button[9.2,3.8;2.8,1;world_create;".. fgettext("New") .. "]" ..
|
||||
"label[3.9,-0.05;".. fgettext("Select World:") .. "]"..
|
||||
creative ..
|
||||
|
||||
Reference in New Issue
Block a user