Skip to content

Commit

Permalink
Remove wipe button
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Sep 9, 2023
1 parent f417f6c commit 87209c4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions boards/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion boards/locale/boards.de.tr
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# textdomain: boards
Text=Text
Wipe=Abwischen
Write=Schreiben
Font=Schriftart
Black board=Schwarze Tafel
Expand Down
1 change: 0 additions & 1 deletion boards/locale/boards.fr.tr
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# textdomain: boards
Text=Texte
Wipe=Effacer
Write=Écrire
Font=Police
Black board=Tableau noir
Expand Down
1 change: 0 additions & 1 deletion boards/locale/boards.ms.tr
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# textdomain: boards
Text=
Wipe=
Write=
Font=
Black board=Papan hitam
Expand Down
1 change: 0 additions & 1 deletion boards/locale/template.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# textdomain: boards
Text=
Wipe=
Write=
Font=
Black board=
Expand Down

0 comments on commit 87209c4

Please sign in to comment.