- X (close) button in the formspecs

- attempt to fix BG in the mainmenu
- fixed textures path on Windows
master
4aiman Konsorumaniakku 2015-08-11 07:32:17 +03:00
parent e7694cc95e
commit 7d9a37a450
17 changed files with 1 additions and 42 deletions

View File

@ -43,8 +43,6 @@ end
local function add_server_buttonhandler(this, fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["server_add_cancel"] then
this:delete()

View File

@ -120,9 +120,6 @@ end
local function handle_buttons(this, fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["world_config_modlist"] ~= nil then
local event = multicraft.explode_textlist_event(fields["world_config_modlist"])
this.data.selected_mod = event.index

View File

@ -84,8 +84,6 @@ end
local function create_world_buttonhandler(this, fields)
core.set_clouds(false)
core.set_background("background",core.formspec_escape(mm_texture.basetexturedir)..'background.png')
core.set_background("header",core.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["world_create_cancel"] then
this:delete()

View File

@ -36,8 +36,6 @@ end
--------------------------------------------------------------------------------
local function delete_mod_buttonhandler(this, fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["dlg_delete_mod_confirm"] ~= nil then

View File

@ -32,8 +32,6 @@ end
local function delete_world_buttonhandler(this, fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["world_delete_confirm"] then
if this.data.delete_index > 0 and
this.data.delete_index <= #menudata.worldlist:get_raw_list() then

View File

@ -38,8 +38,6 @@ end
--------------------------------------------------------------------------------
local function rename_modpack_buttonhandler(this, fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["dlg_rename_modpack_confirm"] ~= nil then
local oldpath = multicraft.get_modpath() .. DIR_DELIM .. this.data.mod.name

View File

@ -79,10 +79,6 @@ end
--------------------------------------------------------------------------------
local function main_button_handler2(tabview, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
local index = ''
if fields["btn_show_singleplayer"] then index = "singleplayer" end
if fields["btn_show_multiplayer"] then index = "multiplayer" end
@ -121,10 +117,8 @@ local function on_activate2(type,old_tab,new_tab)
mm_texture.clear("header")
mm_texture.clear("footer")
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.jpeg')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
end
--------------------------------------------------------------------------------

View File

@ -166,9 +166,6 @@ end
-- @function [parent=#modstore] handle_buttons
function modstore.handle_buttons(current_tab,fields)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["modstore_tab"] then
local index = tonumber(fields["modstore_tab"])

View File

@ -188,9 +188,6 @@ end
-- @function [parent=#modstore] handle_buttons
function modstore.handle_buttons(parent, fields, name, data)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["btn_modstore_page_up"] then
if modstore.current_list ~= nil and modstore.current_list.page > 0 then

View File

@ -85,9 +85,6 @@ tab_credits = {
end,
cbf_button_handler = function(tabview, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["btn_cancel"] ~= nil then
tabview:hide()
tabview.parent:show()

View File

@ -112,8 +112,6 @@ end
--------------------------------------------------------------------------------
local function handle_buttons(tabview, fields, tabname, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["modlist"] ~= nil then
local event = multicraft.explode_textlist_event(fields["modlist"])

View File

@ -119,8 +119,6 @@ end
--------------------------------------------------------------------------------
local function main_button_handler(tabview, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if not tabdata then tabdata = {} end

View File

@ -78,8 +78,6 @@ end
--------------------------------------------------------------------------------
local function main_button_handler(this, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
local world_doubleclick = false

View File

@ -82,8 +82,6 @@ end
local function dlg_confirm_reset_btnhandler(this, fields, dialogdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["dlg_reset_singleplayer_confirm"] ~= nil then
local worldlist = multicraft.get_worlds()

View File

@ -124,9 +124,6 @@ end
local function main_button_handler(this, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
--assert(name == "singleplayer")
if fields["btn_server"]~=nil then

View File

@ -88,8 +88,6 @@ end
--------------------------------------------------------------------------------
local function main_button_handler(tabview, fields, name, tabdata)
multicraft.set_clouds(false)
multicraft.set_background("background",multicraft.formspec_escape(mm_texture.basetexturedir)..'background.png')
multicraft.set_background("header",multicraft.formspec_escape(mm_texture.basetexturedir)..'header.png')
if fields["TPs"] ~= nil then
local event = multicraft.explode_textlist_event(fields["TPs"])

View File

Before

Width:  |  Height:  |  Size: 835 KiB

After

Width:  |  Height:  |  Size: 835 KiB