add theme images for most of Technic's machines
(basically everything that has inventory slots)
This commit is contained in:
@@ -32,6 +32,11 @@ minetest.register_craft({
|
||||
|
||||
local function make_reactor_formspec(meta)
|
||||
local f = "size[8,9]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[1.9,0.93;3.76,2.325;technic_reactor_upper_slots.png]"..
|
||||
"label[0,0;"..S("Nuclear Reactor Rod Compartment").."]"..
|
||||
"list[current_name;src;2,1;3,2;]"..
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
|
@@ -20,6 +20,12 @@ local workshop_demand = {5000, 3500, 2000}
|
||||
|
||||
local workshop_formspec =
|
||||
"size[8,9;]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[2.9,0.93;1.254,1.163;technic_single_slot.png]"..
|
||||
"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
|
||||
"list[current_name;src;3,1;1,1;]"..
|
||||
"label[0,0;"..S("%s Tool Workshop"):format("MV").."]"..
|
||||
"list[current_name;upgrade1;1,3;1,1;]"..
|
||||
|
@@ -15,6 +15,11 @@ minetest.register_craft({
|
||||
local machine_name = S("Fuel-Fired Alloy Furnace")
|
||||
local formspec =
|
||||
"size[8,9]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[1.9,0.93;6.27,3.49;technic_coal_alloy_furnace_upper_slots.png]"..
|
||||
"label[0,0;"..machine_name.."]"..
|
||||
"image[2,2;1,1;default_furnace_fire_bg.png]"..
|
||||
"list[current_name;fuel;2,3;1,1;]"..
|
||||
@@ -124,6 +129,11 @@ minetest.register_abm({
|
||||
technic.swap_node(pos, "technic:coal_alloy_furnace_active")
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[1.9,0.93;6.27,3.49;technic_coal_alloy_furnace_upper_slots.png]"..
|
||||
"label[0,0;"..machine_name.."]"..
|
||||
"image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
||||
(100 - percent)..":default_furnace_fire_fg.png]"..
|
||||
|
@@ -146,11 +146,16 @@ local function make_constructor(mark, length)
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local formspec = "size[8,9;]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"label[0,0;"..S("Constructor Mk%d"):format(mark).."]"..
|
||||
"list[current_player;main;0,5;8,4;]"
|
||||
for i = 1, length do
|
||||
formspec = formspec
|
||||
.."label[5,"..(i - 1)..";"..S("Slot %d"):format(i).."]"
|
||||
.."image[5.89,"..(i*0.998-1.07)..";1.254,1.163;technic_single_slot.png]"
|
||||
.."list[current_name;slot"..i
|
||||
..";6,"..(i - 1)..";1,1;]"
|
||||
end
|
||||
|
@@ -56,6 +56,11 @@ local function set_injector_formspec(meta)
|
||||
local is_stack = meta:get_string("mode") == "whole stacks"
|
||||
meta:set_string("formspec",
|
||||
"size[8,9;]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[-0.1,1.92;10.03,2.375;technic_injector_upper_slots.png]"..
|
||||
"item_image[0,0;1,1;technic:injector]"..
|
||||
"label[1,0;"..S("Self-Contained Injector").."]"..
|
||||
(is_stack and
|
||||
|
@@ -162,6 +162,11 @@ function technic.register_battery_box(data)
|
||||
|
||||
local formspec =
|
||||
"size[8,9]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[2.9,0.93;3.762,3.488;technic_battery_box_upper_slots.png]"..
|
||||
"image[1,1;1,2;technic_power_meter_bg.png]"..
|
||||
"list[context;src;3,1;1,1;]"..
|
||||
"image[4,1;1,1;technic_battery_reload.png]"..
|
||||
|
@@ -36,6 +36,11 @@ function technic.register_generator(data)
|
||||
|
||||
local generator_formspec =
|
||||
"size[8,9;]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[2.9,0.93;1.254,1.163;technic_single_slot.png]"..
|
||||
"label[0,0;"..S("Fuel-Fired %s Generator"):format(tier).."]"..
|
||||
"list[current_name;src;3,1;1,1;]"..
|
||||
"image[4,1;1,1;default_furnace_fire_bg.png]"..
|
||||
|
@@ -51,6 +51,11 @@ function technic.register_base_machine(data)
|
||||
|
||||
local formspec =
|
||||
"size[8,9;]"..
|
||||
"listcolors[#00000000;#00000000;#00000000;"..
|
||||
dreambuilder_theme.tooltip_bgcolor..";"..
|
||||
dreambuilder_theme.tooltip_fontcolor.."]"..
|
||||
"image[-0.1,4.93;10.03,4.65;technic_standard_inv.png]"..
|
||||
"image[2.9,0.93;5.016,2.326;technic_base_machine_upper_bg.png]"..
|
||||
"list[current_name;src;"..(4-input_size)..",1;"..input_size..",1;]"..
|
||||
"list[current_name;dst;5,1;2,2;]"..
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
@@ -61,6 +66,7 @@ function technic.register_base_machine(data)
|
||||
"listring[current_player;main]"
|
||||
if data.upgrade then
|
||||
formspec = formspec..
|
||||
"image[0.91,2.93;2.508,1.163;technic_base_machine_upgrade_slots_bg.png]"..
|
||||
"list[current_name;upgrade1;1,3;1,1;]"..
|
||||
"list[current_name;upgrade2;2,3;1,1;]"..
|
||||
"label[1,4;"..S("Upgrade Slots").."]"..
|
||||
|
@@ -1,3 +1,3 @@
|
||||
name = technic
|
||||
depends = default, pipeworks, technic_worldgen, basic_materials
|
||||
depends = dreambuilder_gui_theming, default, pipeworks, technic_worldgen, basic_materials
|
||||
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye
|
||||
|
Reference in New Issue
Block a user