From 30ae4cbcd531981d1c25d77c3b00bd8b3830a7cd Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Jan 2017 20:22:22 +0100 Subject: [PATCH] Rename inventory textures --- mods/mcl_inventory/api.lua | 10 +++++----- mods/mcl_inventory/init.lua | 2 +- ....png => mcl_inventory_crafting_inventory_bg.png} | Bin ...t.png => mcl_inventory_crafting_table_front.png} | Bin ...de.png => mcl_inventory_crafting_table_side.png} | Bin ...top.png => mcl_inventory_crafting_table_top.png} | Bin ....png => mcl_inventory_creative_inventory_bg.png} | Bin ...png => mcl_inventory_creative_inventory_bg2.png} | Bin ...nventory_hotbar.png => mcl_inventory_hotbar.png} | Bin ...lected.png => mcl_inventory_hotbar_selected.png} | Bin ...ventory_bg.png => mcl_inventory_survival_bg.png} | Bin 11 files changed, 6 insertions(+), 6 deletions(-) rename mods/mcl_inventory/textures/{inventory_crafting_inventory_bg.png => mcl_inventory_crafting_inventory_bg.png} (100%) rename mods/mcl_inventory/textures/{inventory_crafting_table_front.png => mcl_inventory_crafting_table_front.png} (100%) rename mods/mcl_inventory/textures/{inventory_crafting_table_side.png => mcl_inventory_crafting_table_side.png} (100%) rename mods/mcl_inventory/textures/{inventory_crafting_table_top.png => mcl_inventory_crafting_table_top.png} (100%) rename mods/mcl_inventory/textures/{inventory_creative_inventory_bg.png => mcl_inventory_creative_inventory_bg.png} (100%) rename mods/mcl_inventory/textures/{creative_inventory_bg.png => mcl_inventory_creative_inventory_bg2.png} (100%) rename mods/mcl_inventory/textures/{inventory_hotbar.png => mcl_inventory_hotbar.png} (100%) rename mods/mcl_inventory/textures/{inventory_hotbar_selected.png => mcl_inventory_hotbar_selected.png} (100%) rename mods/mcl_inventory/textures/{inventory_survival_inventory_bg.png => mcl_inventory_survival_bg.png} (100%) diff --git a/mods/mcl_inventory/api.lua b/mods/mcl_inventory/api.lua index 59efd739..b79dc13b 100644 --- a/mods/mcl_inventory/api.lua +++ b/mods/mcl_inventory/api.lua @@ -7,7 +7,7 @@ local name = player:get_player_name() CREATIVE_FORMSPEC = "size[11,9.75]".. default.inventory_header.. - --"background[-0.25,1;10.5,8;inventory_creative_inventory_bg.png]".. + --"background[-0.25,1;10.5,8;mcl_inventory_creative_inventory_bg.png]".. "button[9.5,0;1.5,1.5;creative_search;Search]".. "list[detached:"..name.."_armor;armor_head;0.25,1.25;1,1;]".. "list[detached:"..name.."_armor;armor_torso;0.25,2.5;1,1;]".. @@ -30,7 +30,7 @@ local name = player:get_player_name() SURVIVAL_FORMSPEC = "size[9,9.5]".. default.inventory_header.. - --"background[-0.4,-0.45;9.8,9.825;inventory_survival_inventory_bg.png]".. + --"background[-0.4,-0.45;9.8,9.825;mcl_inventory_survival_inventory_bg.png]".. "list[detached:"..name.."_armor;armor_head;0,0;1,1;]".. "list[detached:"..name.."_armor;armor_torso;0,1;1,1;]".. "list[detached:"..name.."_armor;armor_legs;0,2;1,1;]".. @@ -61,7 +61,7 @@ end CRAFTING_FORMSPEC = "size[9,8.5]".. default.inventory_header.. -"background[-0.4,-0.5;9.78,9.5;inventory_crafting_inventory_bg.png]".. +"background[-0.4,-0.5;9.78,9.5;mcl_inventory_crafting_inventory_bg.png]".. "list[current_player;main;0,4.32;9,4;9]".. "list[current_player;main;0,7.6;9,1;]".. "list[current_player;craft;1.218,0.46;3,3;]".. @@ -78,6 +78,6 @@ function inventory.hotbar(player) if player.hud_set_hotbar_itemcount then minetest.after(0, player.hud_set_hotbar_itemcount, player, 9) end - player:hud_set_hotbar_image("inventory_hotbar.png") - player:hud_set_hotbar_selected_image("inventory_hotbar_selected.png") + player:hud_set_hotbar_image("mcl_inventory_hotbar.png") + player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png") end diff --git a/mods/mcl_inventory/init.lua b/mods/mcl_inventory/init.lua index c778c148..5b862cf2 100644 --- a/mods/mcl_inventory/init.lua +++ b/mods/mcl_inventory/init.lua @@ -167,7 +167,7 @@ playerdata = load_player_data() local pagenum = math.floor(pagenum) local pagemax = math.floor((inventory.inventory_size-1) / (9*3) + 1) CREATIVE_SEARCH_ITEMS = "size[10,7]".. - "background[-0.22,-0.25;10.8,7.7;creative_inventory_bg.png]".. + "background[-0.22,-0.25;10.8,7.7;mcl_creative_inventory_bg.png]".. "button[8,0;1.5,1;creative_search;Search]".. "list[current_player;main;0.21,6.05;9,1;]".. "list[detached:creative;main;0.21,2.78;9,3;"..tostring(start_i).."]".. diff --git a/mods/mcl_inventory/textures/inventory_crafting_inventory_bg.png b/mods/mcl_inventory/textures/mcl_inventory_crafting_inventory_bg.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_crafting_inventory_bg.png rename to mods/mcl_inventory/textures/mcl_inventory_crafting_inventory_bg.png diff --git a/mods/mcl_inventory/textures/inventory_crafting_table_front.png b/mods/mcl_inventory/textures/mcl_inventory_crafting_table_front.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_crafting_table_front.png rename to mods/mcl_inventory/textures/mcl_inventory_crafting_table_front.png diff --git a/mods/mcl_inventory/textures/inventory_crafting_table_side.png b/mods/mcl_inventory/textures/mcl_inventory_crafting_table_side.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_crafting_table_side.png rename to mods/mcl_inventory/textures/mcl_inventory_crafting_table_side.png diff --git a/mods/mcl_inventory/textures/inventory_crafting_table_top.png b/mods/mcl_inventory/textures/mcl_inventory_crafting_table_top.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_crafting_table_top.png rename to mods/mcl_inventory/textures/mcl_inventory_crafting_table_top.png diff --git a/mods/mcl_inventory/textures/inventory_creative_inventory_bg.png b/mods/mcl_inventory/textures/mcl_inventory_creative_inventory_bg.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_creative_inventory_bg.png rename to mods/mcl_inventory/textures/mcl_inventory_creative_inventory_bg.png diff --git a/mods/mcl_inventory/textures/creative_inventory_bg.png b/mods/mcl_inventory/textures/mcl_inventory_creative_inventory_bg2.png similarity index 100% rename from mods/mcl_inventory/textures/creative_inventory_bg.png rename to mods/mcl_inventory/textures/mcl_inventory_creative_inventory_bg2.png diff --git a/mods/mcl_inventory/textures/inventory_hotbar.png b/mods/mcl_inventory/textures/mcl_inventory_hotbar.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_hotbar.png rename to mods/mcl_inventory/textures/mcl_inventory_hotbar.png diff --git a/mods/mcl_inventory/textures/inventory_hotbar_selected.png b/mods/mcl_inventory/textures/mcl_inventory_hotbar_selected.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_hotbar_selected.png rename to mods/mcl_inventory/textures/mcl_inventory_hotbar_selected.png diff --git a/mods/mcl_inventory/textures/inventory_survival_inventory_bg.png b/mods/mcl_inventory/textures/mcl_inventory_survival_bg.png similarity index 100% rename from mods/mcl_inventory/textures/inventory_survival_inventory_bg.png rename to mods/mcl_inventory/textures/mcl_inventory_survival_bg.png