From 141ca3f5ea8336a77ef1dd371ff7e0c1767af28b Mon Sep 17 00:00:00 2001 From: Vitalie Ciubotaru Date: Thu, 19 May 2016 23:00:00 +0900 Subject: [PATCH] New textures and new nodebox for Exchange Terminal node --- exchange_machine.lua | 29 ++++++++++++++++--- textures/global_exchange_exchange_side.png | Bin 103 -> 0 bytes textures/global_exchange_terminal_back.png | Bin 0 -> 232 bytes textures/global_exchange_terminal_bottom.png | Bin 0 -> 223 bytes textures/global_exchange_terminal_front.png | Bin 0 -> 275 bytes textures/global_exchange_terminal_right.png | Bin 0 -> 233 bytes textures/global_exchange_terminal_top.png | Bin 0 -> 259 bytes 7 files changed, 25 insertions(+), 4 deletions(-) delete mode 100644 textures/global_exchange_exchange_side.png create mode 100644 textures/global_exchange_terminal_back.png create mode 100644 textures/global_exchange_terminal_bottom.png create mode 100644 textures/global_exchange_terminal_front.png create mode 100644 textures/global_exchange_terminal_right.png create mode 100644 textures/global_exchange_terminal_top.png diff --git a/exchange_machine.lua b/exchange_machine.lua index 801ac3f..a3a12ba 100644 --- a/exchange_machine.lua +++ b/exchange_machine.lua @@ -538,12 +538,33 @@ end) minetest.register_node("global_exchange:exchange", { - description = "Exchange", - tiles = {"global_exchange_box.png", - "global_exchange_box.png", - "global_exchange_box.png^global_exchange_exchange_side.png", + description = "Exchange Terminal", + drawtype = "nodebox", + tiles = { + "global_exchange_terminal_top.png", + "global_exchange_terminal_bottom.png", + "global_exchange_terminal_right.png", + "global_exchange_terminal_right.png^[transform4", + "global_exchange_terminal_back.png", + "global_exchange_terminal_front.png", }, + paramtype = "light", + paramtype2 = "facedir", groups = {cracky=2}, + stack_max = 1, + light_source = 3, + node_box = { + type = "fixed", + fixed = { + {-8/16, -4/16, 3/16, 0.5, 0.5, 5/16},--screens + {-1/16, -7/16, 5/16, 1/16, 5/16, 7/16},--screen leg + {-3/16, -8/16, 4/16, 3/16, -7/16, 8/16},--leg platform + {-7/16, -8/16, -8/16, 2/16, -6/16, -3/16},--keyboard + {3/16, -8/16, -3/16, 7/16, -7/16, 3/16},--phone low + {4/16, -7/16, -1/16, 6/16, -6/16, 3/16},--phone hi + {2/16, -7/16, 0, 8/16, -5/16, 2/16},--phone speaker + } + }, on_rightclick = function(_, _, clicker) local p_name = clicker:get_player_name() local state = main_state[p_name] diff --git a/textures/global_exchange_exchange_side.png b/textures/global_exchange_exchange_side.png deleted file mode 100644 index c8f627ec119c0c8ab50b41f19693609a6a5f0e7b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 103 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`dY&$hAr*|t4h?}H{^uX5=dnw) z^l=t2StjFn_Qi||GJee`CNAF3eZsuqSAqxwL-nsh_V&rT8-O|)JYD@<);T3K0RUU1 BA87yp diff --git a/textures/global_exchange_terminal_back.png b/textures/global_exchange_terminal_back.png new file mode 100644 index 0000000000000000000000000000000000000000..40c6bc070fc565f745d1d0d47926f0d2d00ec509 GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0W&wJtU}`>>lHvD$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj3d*hc9VgVW+kf`bDQpR8MyFe*TzYD}bGJ?|gGs|2V}`9^zkcx{XE z)7O>#0W&u@pL*?E>+e7z$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj38m%al>Je{z;NxLsGjEfCo6!K OFnGH9xvX{XE z)7O>#0W&wJgp$zgbq9e$k|nMYCC>S|xv6<249-QVi6yBi3gww484B*6z5(HleBwYw zy`CJ?!sZV@`o13x8MKQ Q1#}pLr>mdKI;Vst06~#noB#j- literal 0 HcmV?d00001 diff --git a/textures/global_exchange_terminal_right.png b/textures/global_exchange_terminal_right.png new file mode 100644 index 0000000000000000000000000000000000000000..ab6c2f8acb23b5f3ac6049d1638620d8b4cf1884 GIT binary patch literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0W&wJoaSZW3+I7Ck|nMYCC>S|xv6<249-QVi6yBi3gww484B*6z5(HleBwYw z$(}BbAr`0KPCCeWz<`HYf9dWN*8IgcxA<-=vag&H#HH5%EwJ&R(Y6T(0vudYT%J^J z+t`uX7}m>hp_=_bS+)Hk{ST~-dpFq}%lJHT(<6oSyVet?_+Q_~IAO}RXv?N0+UJYw Z8Ke}YCfZ+&^#NMP;OXk;vd$@?2>@u9P1^tf literal 0 HcmV?d00001 diff --git a/textures/global_exchange_terminal_top.png b/textures/global_exchange_terminal_top.png new file mode 100644 index 0000000000000000000000000000000000000000..6e5dcf07c492643cfcbf4f5c3b5da5abc90f0f26 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEj-bO8D<--YuVN?)my{!<3-^ vcQ`#Z@qbZx&Qoxc)zi#WW2w*ce%>;_EK_@*&o9>jt!40Z^>bP0l+XkK-}zI1 literal 0 HcmV?d00001