这样写如果点击的是选中后不跳转的按钮,会出现hover声音与activate声音同时发出的bug
style button:
properties gui.button_properties("button")
activate_sound "audio/click.ogg"
hover_sound "audio/hover.ogg"
下面是解决办法
style button:
properties gui.button_properties("button")
activate_sound "audio/click.ogg"
hover_sound "audio/hover.ogg"
selected_hover_sound "audio/none.ogg"
这里none。ogg是没有声音的空白音频,用来代替点击选中后再次触发focus的hover——sound的bug,这里直接替换了hover-sound
不知道为什么原本的hoversound会把selected——hover——sound也给填上去
好在不用去改core文件