From e869787ef3458e776c662930bcce21bb0161678e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 4 Feb 2021 22:29:47 +0100 Subject: [PATCH] Add button GUI sound --- mods/default/README.txt | 4 ++++ mods/default/formspec.lua | 3 ++- mods/default/sounds/default_gui_button.ogg | Bin 0 -> 8614 bytes 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 mods/default/sounds/default_gui_button.ogg diff --git a/mods/default/README.txt b/mods/default/README.txt index 950deb1..d8715cd 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -19,6 +19,10 @@ Sound licenses: * default_tool_breaks.ogg: * Source: https://freesound.org/people/JustInvoke/sounds/446118/ * Author: JustInvoke (CC BY 3.0) + * default_gui_button.ogg: + * Source: https://freesound.org/people/joedeshon/sounds/117413/ + * Sound was changed! + * Author: joedeshon (CC BY 3.0) * All other sounds: CC0 Texture license: CC BY-SA 4.0 Model license: CC BY-SA 4.0 diff --git a/mods/default/formspec.lua b/mods/default/formspec.lua index b1ae1a6..d7f23ba 100644 --- a/mods/default/formspec.lua +++ b/mods/default/formspec.lua @@ -17,7 +17,8 @@ default.ui.current_page = {} -- Colors local prepend = "listcolors[#00000000;#00000010;#00000000;#68B259;#FFF]" .. - "tableoptions[background=#DDDDDD30;highlight=#539646]" + "tableoptions[background=#DDDDDD30;highlight=#539646]" .. + "style_type[button,image_button,checkbox,tabheader;sound=default_gui_button]" default.ui.default.bg = "bgcolor[#00000000]" -- bgcolor intentionally not included because it would make pause menu transparent, too :( diff --git a/mods/default/sounds/default_gui_button.ogg b/mods/default/sounds/default_gui_button.ogg new file mode 100644 index 0000000000000000000000000000000000000000..bf8f2e8a377dfd39dac943f0ff8cd0aa7fd623f0 GIT binary patch literal 8614 zcmch6XH=9+v+j#10s@kA4iZI%Ac7=GlEV-L6p)+*Bq}0dOAwIEkYSJ_^?16tk^dyzNIXCZq%x;axSjm>WPtx`CUL-E z;&k6pSl82m{hpJx@#*~R>g=K-q9P)aBI4|Pa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