diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-13 20:41:53 +0200 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-13 20:41:53 +0200 |
commit | 8c7557e45d4744fe35ad058950062cf771640126 (patch) | |
tree | bb9de2617cafe919c1176334182a4d1a59bbfbc0 /steles | |
parent | e51afb851c996ad60d59b2c1f3e608b0d9b50864 (diff) | |
download | display_modpack_no_craft-8c7557e45d4744fe35ad058950062cf771640126.tar.gz display_modpack_no_craft-8c7557e45d4744fe35ad058950062cf771640126.zip |
Rework all nodes displaying text according to new font_api
Diffstat (limited to 'steles')
-rw-r--r-- | steles/nodes.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/steles/nodes.lua b/steles/nodes.lua index eabb096..9fb65dd 100644 --- a/steles/nodes.lua +++ b/steles/nodes.lua @@ -42,17 +42,18 @@ for i, material in ipairs(steles.materials) do node_box = { type = "fixed", fixed = { - {-5/16, -4/16, -2/16, 5/16, 0.5, 2/16}, - {-7/16, -0.5, -4/16, 7/16, -4/16, 4/16} - } + {-5/16, -5/16, -2/16, 5/16, 0.5, 2/16}, + {-7/16, -0.5, -4/16, 7/16, -5/16, 4/16} + }, }, groups = groups, display_entities = { ["steles:text"] = { on_display_update = font_api.on_display_update, - depth = -2/16 - display_api.entity_spacing, height = 2/16, - size = { x = 14/16, y = 12/16 }, - resolution = { x = 11, y = 5 }, + depth = -2/16 - display_api.entity_spacing, + top = -2/16, + aspect_ratio = 0.4, + size = { x = 10/16, y = 12/16 }, maxlines = 3, }, }, |