mirror of
https://gitlab.icynet.eu/evert/melterns.git
synced 2024-11-28 01:43:46 +01:00
formspec changes: bucket and lump icons, tooltips
This commit is contained in:
parent
0cd26caf4c
commit
4052114460
@ -17,10 +17,10 @@ metal_caster.casts = {
|
|||||||
local metal_cache = {}
|
local metal_cache = {}
|
||||||
|
|
||||||
function metal_caster.get_metal_caster_formspec(water, metal)
|
function metal_caster.get_metal_caster_formspec(water, metal)
|
||||||
local metal_formspec = "label[0.08,3.75;No Molten Metal]"
|
local metal_formspec = "tooltip[6.68,0;0.8,2.45;No Molten Metal]"
|
||||||
|
|
||||||
if metal ~= nil then
|
if metal ~= nil then
|
||||||
metal_formspec = "label[0.08,3.75;Metal: "..fluid_lib.buffer_to_string(metal).."]"
|
metal_formspec = "tooltip[6.68,0;0.8,2.45;"..fluid_lib.buffer_to_string(metal).."]"
|
||||||
end
|
end
|
||||||
|
|
||||||
return "size[8,8.5]"..
|
return "size[8,8.5]"..
|
||||||
@ -30,11 +30,14 @@ function metal_caster.get_metal_caster_formspec(water, metal)
|
|||||||
"list[context;cast;2.7,0.2;1,1;]"..
|
"list[context;cast;2.7,0.2;1,1;]"..
|
||||||
"image[2.7,1.35;1,1;gui_furnace_arrow_bg.png^[transformFY]"..
|
"image[2.7,1.35;1,1;gui_furnace_arrow_bg.png^[transformFY]"..
|
||||||
"list[context;output;2.7,2.5;1,1;]"..
|
"list[context;output;2.7,2.5;1,1;]"..
|
||||||
"list[context;coolant;0.25,2.5;1,1;]"..
|
"image[0.08,2.5;1,1;metal_melter_gui_bucket.png]"..
|
||||||
|
"list[context;coolant;0.08,2.5;1,1;]"..
|
||||||
metal_melter.fluid_bar(0.08, 0, water)..
|
metal_melter.fluid_bar(0.08, 0, water)..
|
||||||
"label[0.08,3.4;Water: ".. fluid_lib.buffer_to_string(water) .."]"..
|
"tooltip[0.08,0;0.8,2.45;".. fluid_lib.buffer_to_string(water) .."]"..
|
||||||
metal_melter.fluid_bar(6.68, 0, metal)..
|
metal_melter.fluid_bar(6.68, 0, metal)..
|
||||||
metal_formspec..
|
metal_formspec..
|
||||||
|
"image[4.7,0.2;1,1;metal_melter_gui_bucket.png]"..
|
||||||
|
"image[4.7,1.4;1,1;metal_melter_gui_bucket.png]"..
|
||||||
"list[context;bucket_in;4.7,0.2;1,1;]"..
|
"list[context;bucket_in;4.7,0.2;1,1;]"..
|
||||||
"list[context;bucket_out;4.7,1.4;1,1;]"..
|
"list[context;bucket_out;4.7,1.4;1,1;]"..
|
||||||
"image[5.7,0.2;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
"image[5.7,0.2;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
||||||
|
@ -50,23 +50,27 @@ function metal_melter.get_metal_from_stack(stack)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function metal_melter.get_metal_melter_formspec(lava, metal)
|
function metal_melter.get_metal_melter_formspec(lava, metal)
|
||||||
local metal_formspec = "label[0.08,3.75;No Molten Metal]"
|
local metal_formspec = "tooltip[6.68,0;0.8,2.45;No Molten Metal]"
|
||||||
|
|
||||||
if metal ~= nil then
|
if metal ~= nil then
|
||||||
metal_formspec = "label[0.08,3.75;Metal: "..fluid_lib.buffer_to_string(metal).."]"
|
metal_formspec = "tooltip[6.68,0;0.8,2.45;"..fluid_lib.buffer_to_string(metal).."]"
|
||||||
end
|
end
|
||||||
|
|
||||||
return "size[8,8.5]"..
|
return "size[8,8.5]"..
|
||||||
default.gui_bg..
|
default.gui_bg..
|
||||||
default.gui_bg_img..
|
default.gui_bg_img..
|
||||||
default.gui_slots..
|
default.gui_slots..
|
||||||
|
"image[2.25,0.2;1,1;metal_melter_gui_lump.png]"..
|
||||||
"list[context;input;2.25,0.2;1,1;]"..
|
"list[context;input;2.25,0.2;1,1;]"..
|
||||||
|
"image[2.25,1.4;1,1;metal_melter_gui_bucket.png]"..
|
||||||
"list[context;heat;2.25,1.4;1,1;]"..
|
"list[context;heat;2.25,1.4;1,1;]"..
|
||||||
"image[1.3,1.4;1,1;gui_furnace_arrow_bg.png^[transformR90]"..
|
"image[1.3,1.4;1,1;gui_furnace_arrow_bg.png^[transformR90]"..
|
||||||
metal_melter.fluid_bar(0.08, 0, lava)..
|
metal_melter.fluid_bar(0.08, 0, lava)..
|
||||||
"label[0.08,3.4;Lava: ".. fluid_lib.buffer_to_string(lava) .."]"..
|
"tooltip[0.08,0;0.8,2.45;".. fluid_lib.buffer_to_string(lava) .."]"..
|
||||||
metal_melter.fluid_bar(6.68, 0, metal)..
|
metal_melter.fluid_bar(6.68, 0, metal)..
|
||||||
metal_formspec..
|
metal_formspec..
|
||||||
|
"image[4.7,0.2;1,1;metal_melter_gui_bucket.png]"..
|
||||||
|
"image[4.7,1.4;1,1;metal_melter_gui_bucket.png]"..
|
||||||
"list[context;bucket_in;4.7,0.2;1,1;]"..
|
"list[context;bucket_in;4.7,0.2;1,1;]"..
|
||||||
"list[context;bucket_out;4.7,1.4;1,1;]"..
|
"list[context;bucket_out;4.7,1.4;1,1;]"..
|
||||||
"image[5.7,0.2;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
"image[5.7,0.2;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
||||||
|
BIN
metal_melter/textures/metal_melter_gui_bucket.png
Normal file
BIN
metal_melter/textures/metal_melter_gui_bucket.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
BIN
metal_melter/textures/metal_melter_gui_lump.png
Normal file
BIN
metal_melter/textures/metal_melter_gui_lump.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 B |
Loading…
Reference in New Issue
Block a user