From 87209c4a9f14d233343b27c9b3082cc477b44a46 Mon Sep 17 00:00:00 2001 From: Niklp09 <89982526+Niklp09@users.noreply.github.com> Date: Sat, 9 Sep 2023 15:16:52 +0200 Subject: [PATCH] Remove wipe button --- boards/init.lua | 8 ++------ boards/locale/boards.de.tr | 1 - boards/locale/boards.fr.tr | 1 - boards/locale/boards.ms.tr | 1 - boards/locale/template.txt | 1 - 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/boards/init.lua b/boards/init.lua index 562ba0b..b8cc623 100644 --- a/boards/init.lua +++ b/boards/init.lua @@ -35,9 +35,8 @@ local function set_formspec(pos) meta:set_string("formspec", "size[6,4]"..default.gui_bg..default.gui_bg_img..default.gui_slots.. "textarea[0.5,0.7;5.5,3;display_text;"..FS("Text")..";" .. display_text .. "]".. - "button_exit[0,3.5;2,1;wipe;"..FS("Wipe").."]".. - "button_exit[2,3.5;2,1;ok;"..FS("Write").."]".. - "button[4,3.5;2,1;font;"..FS("Font").."]") + "button_exit[1,3.35;2,1;ok;"..FS("Write").."]".. + "button[3,3.35;2,1;font;"..FS("Font").."]") end -- On boards, everyone is allowed to write and wipe @@ -46,9 +45,6 @@ local function on_receive_fields(pos, formname, fields, player) if fields.ok or fields.key_enter then signs_api.set_display_text(pos, fields.display_text, fields.font) end - if fields.wipe then - signs_api.set_display_text(pos, "", fields.font) - end if fields.font then signs_api.set_display_text(pos, fields.display_text) font_api.show_font_list(player, pos) diff --git a/boards/locale/boards.de.tr b/boards/locale/boards.de.tr index d34d40d..a20fd50 100644 --- a/boards/locale/boards.de.tr +++ b/boards/locale/boards.de.tr @@ -1,6 +1,5 @@ # textdomain: boards Text=Text -Wipe=Abwischen Write=Schreiben Font=Schriftart Black board=Schwarze Tafel diff --git a/boards/locale/boards.fr.tr b/boards/locale/boards.fr.tr index 69def10..ba22274 100644 --- a/boards/locale/boards.fr.tr +++ b/boards/locale/boards.fr.tr @@ -1,6 +1,5 @@ # textdomain: boards Text=Texte -Wipe=Effacer Write=Écrire Font=Police Black board=Tableau noir diff --git a/boards/locale/boards.ms.tr b/boards/locale/boards.ms.tr index dca5031..4973060 100644 --- a/boards/locale/boards.ms.tr +++ b/boards/locale/boards.ms.tr @@ -1,6 +1,5 @@ # textdomain: boards Text= -Wipe= Write= Font= Black board=Papan hitam diff --git a/boards/locale/template.txt b/boards/locale/template.txt index 52982ed..0643947 100644 --- a/boards/locale/template.txt +++ b/boards/locale/template.txt @@ -1,6 +1,5 @@ # textdomain: boards Text= -Wipe= Write= Font= Black board=