From 353351029ee06885fba720caeaf289a139fbe950 Mon Sep 17 00:00:00 2001 From: pyrollo Date: Sat, 24 Dec 2016 21:45:27 +0100 Subject: Right direction model fixed, Green direction signs added, unused files removed --- signs_road/nodes.lua | 66 ++++++++++++++++++++-- signs_road/textures/signs_green_dir_inventory.png | Bin 0 -> 313 bytes signs_road/textures/signs_green_direction.png | Bin 0 -> 270 bytes 3 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 signs_road/textures/signs_green_dir_inventory.png create mode 100644 signs_road/textures/signs_green_direction.png (limited to 'signs_road') diff --git a/signs_road/nodes.lua b/signs_road/nodes.lua index 6882f84..5498c6f 100644 --- a/signs_road/nodes.lua +++ b/signs_road/nodes.lua @@ -36,7 +36,7 @@ local models = { }, }, green_street={ - depth=1/32, + depth = 1/32, width = 1, height = 6/16, entity_fields = { @@ -51,7 +51,7 @@ local models = { }, }, black_right={ - depth=1/32, + depth = 1/32, width = 1, height = 0.5, entity_fields = { @@ -68,7 +68,7 @@ local models = { }, }, black_left={ - depth=1/32, + depth = 1/32, width = 1, height = 0.5, entity_fields = { @@ -86,10 +86,68 @@ local models = { on_rightclick=signs.on_right_click_direction, }, }, + green_right={ + depth = 1/16, + width = 14/16, + height = 7/16, + entity_fields = { + size = { x = 12/16, y = 5/16 }, + resolution = { x = 112, y = 64 }, + maxlines = 2, + color="#fff", + }, + node_fields = { + description="Green direction sign", + tiles={"signs_green_direction.png"}, + inventory_image="signs_green_dir_inventory.png", + on_place=signs.on_place_direction, + on_rightclick = signs.on_right_click_direction, + drawtype = "mesh", + mesh = "signs_dir_right.obj", + selection_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -7/16, -7/16, 7/32, 0.5}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + collision_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -7/16, -7/16, 7/32, 0.5}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + }, + }, + green_left={ + depth = 1/16, + width = 14/16, + height = 7/16, + entity_fields = { + size = { x = 12/16, y = 5/16 }, + resolution = { x = 112, y = 64 }, + maxlines = 2, + color="#fff", + }, + node_fields = { + description="Green direction sign", + tiles={"signs_green_direction.png"}, + inventory_image="signs_green_dir_inventory.png", + on_place=signs.on_place_direction, + on_rightclick = signs.on_right_click_direction, + drawtype = "mesh", + mesh = "signs_dir_left.obj", + selection_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + collision_box = { type="wallmounted", + wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16}, + wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}, + wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}}, + groups={not_in_creative_inventory=1}, + drop="signs_road:green_right", + }, + }, } - for name, model in pairs(models) do signs.register_sign("signs_road", name, model) end + diff --git a/signs_road/textures/signs_green_dir_inventory.png b/signs_road/textures/signs_green_dir_inventory.png new file mode 100644 index 0000000..7d6567c Binary files /dev/null and b/signs_road/textures/signs_green_dir_inventory.png differ diff --git a/signs_road/textures/signs_green_direction.png b/signs_road/textures/signs_green_direction.png new file mode 100644 index 0000000..6becd79 Binary files /dev/null and b/signs_road/textures/signs_green_direction.png differ -- cgit v1.2.3