Add button push sound

master
Wuzzy 2022-02-10 18:53:37 +01:00
parent 5128203dcc
commit d5d761ed1d
3 changed files with 7 additions and 1 deletions

View File

@ -61,6 +61,10 @@ Sounds:
- by Fupicat <https://freesound.org/people/Fupicat/sounds/521641/>
- Edit by Wuzzy (higher pitch)
- License: CC0
- `lzr_sounds_button.ogg`:
- by Fourier <https://opengameart.org/content/forward-button-press-ui-sound>
- Edit by Wuzzy (shortened)
- License: CC BY 3.0
- All other sounds come from Minetest Game (see license of Minetest Game 5.4.1 for details)
Code:

View File

@ -41,7 +41,9 @@ minetest.register_on_joinplayer(function(player)
player:set_formspec_prepend([=[
listcolors[#5c4432;#a87d5d;#3b2b20;#b75647;#ffffff]
bgcolor[#503b2c;false]
style_type[button;bgcolor=#5c4432]]=])
style_type[button;bgcolor=#5c4432]
style_type[button;sound=lzr_sounds_button]
style_type[image_button;sound=lzr_sounds_button]]=])
player:hud_set_hotbar_selected_image("lzr_gui_hotbar_selected.png")
local name = player:get_player_name()

Binary file not shown.