diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-11-18 15:44:55 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-11-18 15:44:55 +0100 |
commit | 59ae9fa4d153d9f1a554357febecd7f69c2642c9 (patch) | |
tree | e91283ecfc568779895ec72c09128ea28ecdcdc3 | |
parent | 07eb4737fa9d466bbfc2296925502acc1e90b3a4 (diff) | |
download | display_modpack-59ae9fa4d153d9f1a554357febecd7f69c2642c9.tar.gz display_modpack-59ae9fa4d153d9f1a554357febecd7f69c2642c9.tar.bz2 display_modpack-59ae9fa4d153d9f1a554357febecd7f69c2642c9.zip |
Simplified signs formspec for release
-rw-r--r-- | signs_api/init.lua | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/signs_api/init.lua b/signs_api/init.lua index 7e81e94..4f21495 100644 --- a/signs_api/init.lua +++ b/signs_api/init.lua @@ -47,7 +47,7 @@ function signs_api.set_formspec(pos) if ndef and ndef.display_entities and ndef.display_entities["signs:display_text"] then local maxlines = ndef.display_entities["signs:display_text"].maxlines - local fs, x, y + local fs, y if maxlines == 1 then fs = "field[0.5,0.7;5.5,1;display_text;"..F("Text").. @@ -64,17 +64,8 @@ function signs_api.set_formspec(pos) y = 2.4 end - x = 0.2 - fs = fs.."image_button["..x..","..y..";0.5,0.5;font_api_font.png;font;]" - x = x + 0.4 - fs = fs.."image_button["..x..","..y..";0.5,0.5;font_api_left.png;left;]" - x = x + 0.4 - fs = fs.."image_button["..x..","..y..";0.5,0.5;font_api_center.png;center;]" - x = x + 0.4 - fs = fs.."image_button["..x..","..y..";0.5,0.5;font_api_right.png;right;]" - y = y + 0.7 - fs = fs.."button_exit[2,"..y..";2,1;ok;".. - F("Write").."]" + fs = fs.."button[1,"..y..";2,1;font;"..F("Font").."]" + fs = fs.."button_exit[3,"..y..";2,1;ok;"..F("Write").."]" y = y + 0.8 fs = "size[6,"..y.."]"..default.gui_bg.. default.gui_bg_img..default.gui_slots..fs |