Add button push sound
parent
5128203dcc
commit
d5d761ed1d
|
@ -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:
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue