1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-07-03 16:40:45 +02:00

Release 2017-08-26

This commit is contained in:
Pierre-Yves Rollo
2017-08-26 14:12:38 +02:00
parent d59c475162
commit c179f44ba4
74 changed files with 2778 additions and 324 deletions

View File

@ -22,134 +22,290 @@
local S = signs_road.intllib
local models = {
blue_street={
blue_street_sign = {
depth = 1/16,
width = 14/16,
height = 12/16,
entity_fields = {
resolution = { x = 144, y = 64 },
maxlines = 3,
color="#fff",
color = "#fff",
},
node_fields = {
description=S("Blue street sign"),
tiles={"signs_blue_street.png"},
inventory_image="signs_blue_street_inventory.png",
description = S("Blue street sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_blue.png" },
inventory_image = "signs_road_blue.png",
},
},
green_street={
depth = 1/32,
red_street_sign = {
depth = 1/16,
width = 1,
height = 6/16,
height = 7/16,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 1,
color="#fff",
color = "#000",
},
node_fields = {
description=S("Green street sign"),
tiles={"signs_green_street.png"},
inventory_image="signs_green_street_inventory.png",
description = S("Red and white town sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_red_white.png" },
inventory_image="signs_road_red_white.png",
},
},
black_right={
white_street_sign = {
depth = 1/16,
width = 1,
height = 7/16,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("White street sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_white.png" },
inventory_image = "signs_road_white.png",
},
},
green_street_sign = {
depth = 1/16,
width = 1,
height = 7/16,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 2,
color = "#fff",
},
node_fields = {
description = S("Green street sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_green.png" },
inventory_image = "signs_road_green.png",
},
},
yellow_street_sign = {
depth = 1/16,
width = 1,
height = 7/16,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("Yellow street sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_yellow.png" },
inventory_image="signs_road_yellow.png",
},
},
black_right_sign = {
depth = 1/32,
width = 1,
height = 0.5,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 1,
color = "#000",
},
node_fields = {
description = S("Black direction sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_black_dir_right.png" },
inventory_image = "signs_road_black_dir_inventory.png",
signs_other_dir = "signs_road:black_left_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
},
},
black_left_sign = {
depth = 1/32,
width = 1,
height = 0.5,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 1,
color="#000",
color = "#000",
},
node_fields = {
description=S("Black direction sign"),
tiles={"signs_black_right.png"},
inventory_image="signs_black_inventory.png",
on_place=signs.on_place_direction,
on_rightclick=signs.on_right_click_direction,
description = S("Black direction sign"),
tiles = { "signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_sides.png",
"signs_road_sides.png", "signs_road_black_dir_left.png" },
inventory_image = "signs_road_black_dir_inventory.png",
signs_other_dir = "signs_road:black_right_sign",
groups = { not_in_creative_inventory = 1 },
drop = "signs_road:black_right_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
},
},
black_left={
depth = 1/32,
width = 1,
height = 0.5,
entity_fields = {
resolution = { x = 96, y = 64 },
maxlines = 1,
color="#000",
},
node_fields = {
description=S("Black direction sign"),
tiles={"signs_black_left.png"},
inventory_image="signs_black_inventory.png",
groups={not_in_creative_inventory=1},
drop="signs_road:black_right",
on_place=signs.on_place_direction,
on_rightclick=signs.on_right_click_direction,
},
},
green_right={
green_right_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = -3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color="#fff",
color = "#fff",
},
node_fields = {
description=S("Green direction sign"),
tiles={"signs_green_direction.png"},
inventory_image="signs_green_dir_inventory.png",
on_place=signs.on_place_direction,
description = S("Green direction sign"),
tiles = { "signs_road_green_direction.png" },
inventory_image = "signs_road_green_dir_inventory.png",
signs_other_dir = "signs_road:green_left_sign",
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}},
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0,5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
},
green_left={
green_left_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = 3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color="#fff",
},
node_fields = {
description=S("Green direction sign"),
tiles={"signs_green_direction.png"},
inventory_image="signs_green_dir_inventory.png",
description = S("Green direction sign"),
tiles = { "signs_road_green_direction.png" },
inventory_image = "signs_road_green_dir_inventory.png",
signs_other_dir = "signs_road:green_right_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
drop = "signs_road:green_right_sign",
},
},
yellow_right_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = -3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("Yellow direction sign"),
tiles = { "signs_road_yellow_direction.png" },
inventory_image = "signs_road_yellow_dir_inventory.png",
signs_other_dir = "signs_road:yellow_left_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0,5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
},
yellow_left_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = 3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("Yellow direction sign"),
tiles = { "signs_road_yellow_direction.png" },
inventory_image = "signs_road_yellow_dir_inventory.png",
signs_other_dir = "signs_road:yellow_right_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_left.obj",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
drop = "signs_road:yellow_left_sign",
},
},
white_right_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = -3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("White direction sign"),
tiles = { "signs_road_white_direction.png" },
inventory_image = "signs_road_white_dir_inventory.png",
signs_other_dir = "signs_road:white_left_sign",
on_place = signs.on_place_direction,
on_rightclick = signs.on_right_click_direction,
drawtype = "mesh",
mesh = "signs_dir_right.obj",
selection_box = { type = "fixed", fixed = { -0.5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -0,5, -7/32, 0.5, 7/16, 7/32, 7/16 } },
},
},
white_left_sign = {
depth = 1/16,
width = 14/16,
height = 7/16,
entity_fields = {
right = 3/32,
size = { x = 12/16, y = 6/16 },
resolution = { x = 112, y = 64 },
maxlines = 2,
color = "#000",
},
node_fields = {
description = S("White direction sign"),
tiles = { "signs_road_white_direction.png" },
inventory_image = "signs_road_white_dir_inventory.png",
signs_other_dir = "signs_road:white_right_sign",
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",
selection_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
collision_box = { type = "fixed", fixed = { -7/16, -7/32, 0.5, 0.5, 7/32, 7/16 } },
groups = { not_in_creative_inventory = 1 },
drop = "signs_road:white_right_sign",
},
},
}
-- Node registration
for name, model in pairs(models)
do
signs.register_sign("signs_road", name, model)
end