Use background9

master
Wuzzy 2020-04-05 22:43:36 +02:00
parent 732801be4f
commit 73e183060f
11 changed files with 13 additions and 11 deletions

View File

@ -123,7 +123,7 @@ minetest.register_on_dieplayer(function(player)
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"..
"background[-0.5,-0.65;9,10.35;".."bones_inventory.png".."]")
"background9[-0.5,-0.65;9,10.35;bones_inventory.png;false;25,22,-20,-23]")
meta:set_string("infotext", player:get_player_name().."'s fresh bones")
meta:set_string("owner", player:get_player_name())
meta:set_int("time", 0)

View File

@ -57,7 +57,8 @@ minetest.register_node("columnia:machine", {
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "size[10,10;]"..
"background[-0.20,-0.25;10.40,11;columnia_background.png]"..
"bgcolor[#00000000;neither]"..
"background9[-0.20,-0.25;10.40,11;columnia_background.png;false;6]"..
"list[current_name;ingot;7,5;1,1;]"..
"list[current_name;res;8,5;1,1;]"..
"label[7,4.5;Input:]"..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -68,7 +68,8 @@ end,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "size[10,6;]"..
"background[-0.15,-0.25;10.40,7;gluncarp_background.png]"..
"bgcolor[#00000000;neither]"..
"background9[-0.15,-0.25;10.40,7;gluncarp_background.png;false;6]"..
"list[current_name;ingot;3,0.5;1,1;]"..
"list[current_name;res;6,0.5;1,1;]"..
"label[3,0;Wool:]"..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -3,7 +3,7 @@ local chest_formspec =
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"..
"background[-0.5,-0.65;9,10.35;".."hades_chests_chestui.png".."]"
"background9[-0.5,-0.65;9,10.35;hades_chests_chestui.png;false;8]"
local function get_locked_chest_formspec(pos)
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
@ -12,7 +12,7 @@ local function get_locked_chest_formspec(pos)
"list[nodemeta:".. spos .. ";main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"..
"background[-0.5,-0.65;9,10.35;".."hades_chests_chestui.png".."]"
"background9[-0.5,-0.65;9,10.35;hades_chests_chestui.png;false;8]"
return formspec
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 KiB

After

Width:  |  Height:  |  Size: 376 KiB

View File

@ -5,11 +5,11 @@
local formspec_info = {
["hades_furnaces:furnace"] = {
bg = "gui_furnace_bg.png", flame_bg = "default_furnace_fire_bg.png", flame_fg = "default_furnace_fire_fg.png",
bg = "gui_furnace_bg.png", bg9middle = "36,36,-34,-34", flame_bg = "default_furnace_fire_bg.png", flame_fg = "default_furnace_fire_fg.png",
output_slots = "4.75,1.5;1,1"
},
["hades_furnaces:prism_furnace"] = {
bg = "gui_prism_furnace_bg.png", flame_bg = "hades_furnaces_prism_furnace_fire_bg.png", flame_fg = "hades_furnaces_prism_furnace_fire_fg.png",
bg = "gui_prism_furnace_bg.png", bg9middle = "39,36,-36,-37", flame_bg = "hades_furnaces_prism_furnace_fire_bg.png", flame_fg = "hades_furnaces_prism_furnace_fire_fg.png",
output_slots = "4.75,0.96;2,2"
},
}
@ -17,7 +17,7 @@ local formspec_info = {
local function active_formspec(ftype, fuel_percent, item_percent)
return
"size[8,8.5]"..
"background[-0.5,-0.65;9,10.35;"..formspec_info[ftype].bg.."]"..
"background9[-0.5,-0.65;9,10.35;"..formspec_info[ftype].bg..";false;"..formspec_info[ftype].bg9middle.."]"..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;"..formspec_info[ftype].flame_bg.."^[lowpart:"..
@ -38,7 +38,7 @@ end
local function inactive_formspec(ftype)
return
"size[8,8.5]"..
"background[-0.5,-0.65;9,10.35;"..formspec_info[ftype].bg.."]"..
"background9[-0.5,-0.65;9,10.35;"..formspec_info[ftype].bg..";false;"..formspec_info[ftype].bg9middle.."]"..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;"..formspec_info[ftype].flame_bg.."]"..

View File

@ -1,6 +1,6 @@
hades_gui = {}
hades_gui.gui_inventory_bg_img = "background[5,5;1,1;hades_gui_inventory.png;true]"
hades_gui.gui_inventory_bg_img = "background9[5,5;1,1;hades_gui_inventory.png;true;3]"
hades_gui.gui_survival_form = "size[8,8.5]"..
hades_gui.gui_inventory_bg_img..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -25,7 +25,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
"list[current_name;main;3,1;2,3;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"..
"background[-0.5,-0.55;9,10.25;".."trash_can_inventory.png".."]")
"background9[-0.5,-0.55;9,10.25;trash_can_inventory.png;false;18,17,-22,-17]")
meta:set_string("infotext", "Trash Can")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)