diff options
author | Awkor <awkor.16+github@gmail.com> | 2020-05-27 23:31:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 23:31:51 +0200 |
commit | e1cffdedbfbac18583a5bc1ae2530c496e1f29fd (patch) | |
tree | 8e040095052726fc059b159ded428ec1daeb8267 | |
parent | d3aedd2b987c966c35b6270206d2611879d94f52 (diff) | |
download | mesecons-e1cffdedbfbac18583a5bc1ae2530c496e1f29fd.tar mesecons-e1cffdedbfbac18583a5bc1ae2530c496e1f29fd.tar.gz mesecons-e1cffdedbfbac18583a5bc1ae2530c496e1f29fd.tar.bz2 mesecons-e1cffdedbfbac18583a5bc1ae2530c496e1f29fd.tar.xz mesecons-e1cffdedbfbac18583a5bc1ae2530c496e1f29fd.zip |
Gates: Modify appearance (#515)
-rw-r--r-- | mesecons_gates/init.lua | 36 | ||||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_output_off.png | bin | 0 -> 98 bytes | |||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_output_on.png | bin | 0 -> 99 bytes | |||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_side.png | bin | 0 -> 136 bytes | |||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_side_output_off.png | bin | 0 -> 109 bytes | |||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_side_output_on.png | bin | 0 -> 110 bytes |
6 files changed, 30 insertions, 6 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua index 421a7d4..c30f9f8 100644 --- a/mesecons_gates/init.lua +++ b/mesecons_gates/init.lua @@ -1,6 +1,14 @@ +local selection_box = { + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 } +} + local nodebox = { type = "fixed", - fixed = {{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }}, + fixed = { + { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab + { -6/16, -7/16, -6/16, 6/16, -6/16, 6/16 } + }, } local function gate_rotate_rules(node, rules) @@ -68,7 +76,7 @@ local function register_gate(name, inputnumber, assess, recipe, description) is_ground_content = false, drawtype = "nodebox", drop = basename.."_off", - selection_box = nodebox, + selection_box = selection_box, node_box = nodebox, walkable = true, sounds = default.node_sound_stone_defaults(), @@ -78,8 +86,16 @@ local function register_gate(name, inputnumber, assess, recipe, description) inputnumber = inputnumber, after_dig_node = mesecon.do_cooldown, },{ - tiles = {"jeija_microcontroller_bottom.png^".."jeija_gate_off.png^".. - "jeija_gate_"..name..".png"}, + tiles = { + "jeija_microcontroller_bottom.png^".."jeija_gate_off.png^".. + "jeija_gate_output_off.png^".."jeija_gate_"..name..".png", + "jeija_microcontroller_bottom.png^".."jeija_gate_output_off.png^".. + "[transformFY", + "jeija_gate_side.png^".."jeija_gate_side_output_off.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png" + }, groups = {dig_immediate = 2, overheat = 1}, mesecons = { receptor = { state = "off", @@ -89,8 +105,16 @@ local function register_gate(name, inputnumber, assess, recipe, description) action_change = update_gate }} },{ - tiles = {"jeija_microcontroller_bottom.png^".."jeija_gate_on.png^".. - "jeija_gate_"..name..".png"}, + tiles = { + "jeija_microcontroller_bottom.png^".."jeija_gate_on.png^".. + "jeija_gate_output_on.png^".."jeija_gate_"..name..".png", + "jeija_microcontroller_bottom.png^".."jeija_gate_output_on.png^".. + "[transformFY", + "jeija_gate_side.png^".."jeija_gate_side_output_on.png", + "jeija_gate_side.png", + "jeija_gate_side.png", + "jeija_gate_side.png" + }, groups = {dig_immediate = 2, not_in_creative_inventory = 1, overheat = 1}, mesecons = { receptor = { state = "on", diff --git a/mesecons_gates/textures/jeija_gate_output_off.png b/mesecons_gates/textures/jeija_gate_output_off.png Binary files differnew file mode 100644 index 0000000..bee3942 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_output_off.png diff --git a/mesecons_gates/textures/jeija_gate_output_on.png b/mesecons_gates/textures/jeija_gate_output_on.png Binary files differnew file mode 100644 index 0000000..b3b6d21 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_output_on.png diff --git a/mesecons_gates/textures/jeija_gate_side.png b/mesecons_gates/textures/jeija_gate_side.png Binary files differnew file mode 100644 index 0000000..1223b54 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_side.png diff --git a/mesecons_gates/textures/jeija_gate_side_output_off.png b/mesecons_gates/textures/jeija_gate_side_output_off.png Binary files differnew file mode 100644 index 0000000..785e7c6 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_side_output_off.png diff --git a/mesecons_gates/textures/jeija_gate_side_output_on.png b/mesecons_gates/textures/jeija_gate_side_output_on.png Binary files differnew file mode 100644 index 0000000..0aaa4a5 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_side_output_on.png |