Browse Source

New textures and new nodebox for Exchange Terminal node

tags/nalc-1.0
Vitalie Ciubotaru 4 years ago
parent
commit
141ca3f5ea
No known key found for this signature in database GPG Key ID: 6B60758D4DF9A7EE
7 changed files with 25 additions and 4 deletions
  1. +25
    -4
      exchange_machine.lua
  2. BIN
      textures/global_exchange_exchange_side.png
  3. BIN
      textures/global_exchange_terminal_back.png
  4. BIN
      textures/global_exchange_terminal_bottom.png
  5. BIN
      textures/global_exchange_terminal_front.png
  6. BIN
      textures/global_exchange_terminal_right.png
  7. BIN
      textures/global_exchange_terminal_top.png

+ 25
- 4
exchange_machine.lua View File

@@ -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]


BIN
textures/global_exchange_exchange_side.png View File

Before After
Width: 16  |  Height: 16  |  Size: 103 B

BIN
textures/global_exchange_terminal_back.png View File

Before After
Width: 16  |  Height: 16  |  Size: 232 B

BIN
textures/global_exchange_terminal_bottom.png View File

Before After
Width: 16  |  Height: 16  |  Size: 223 B

BIN
textures/global_exchange_terminal_front.png View File

Before After
Width: 16  |  Height: 16  |  Size: 275 B

BIN
textures/global_exchange_terminal_right.png View File

Before After
Width: 16  |  Height: 16  |  Size: 233 B

BIN
textures/global_exchange_terminal_top.png View File

Before After
Width: 16  |  Height: 16  |  Size: 259 B

Loading…
Cancel
Save