Add in gui backgrounds

This commit is contained in:
oilboi 2020-03-04 21:16:30 -05:00
parent 61204dd9c3
commit 3464a2a8ba
7 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,7 @@ minetest.register_node("craftingtable:craftingtable", {
player:get_inventory():set_size("craft", 9)
local form = "size[9,8.75]"..
--"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_workbench.png]"..
"background[-0.19,-0.25;9.41,9.49;crafting_inventory_workbench.png]"..
"list[current_player;main;0,4.5;9,1;]".. --hot bar
"list[current_player;main;0,6;9,3;9]".. --big part

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -179,7 +179,7 @@ end)
local inv = "size[9,8.75]"..
--"image[1,0.6;1,2;player.png]"..
"background[-0.19,-0.25;9.41,9.49;main_inventory.png]"..
"list[current_player;main;0,4.5;9,1;]".. --hot bar
"list[current_player;main;0,6;9,3;9]".. --big part
"list[current_player;craft;2.5,1;2,2;]"..

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -2,6 +2,7 @@ local furnace = {}
function furnace.get_furnace_active_formspec(fuel_percent, item_percent)
return "size[9,8.75]"..
"background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
"list[context;src;2.75,0.5;1,1;]"..
"list[context;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
@ -23,6 +24,7 @@ end
function furnace.get_furnace_inactive_formspec()
return "size[9,8.75]"..
"background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
"list[context;src;2.75,0.5;1,1;]"..
"list[context;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png]"..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -45,7 +45,9 @@ ALPHA STATE CHANGELOG
-simplify mobs ai
-running out of a node when placing tries to replace it with another of the same item in inventory
-crafting bench
-add in default furnace
add backgrounds to all gui elements
make furnaces drop all items on destroy instead of not allowing you to mine them
farming -