I don't get reply to the question, so I post the question again.
I made save, load menu using "hotspot", and activate_sound and hover_sound inserted in each slot and confirm menu.
Save menu works normally with sound in slot and confirm menu.
But, In "load", click "YES" activate_sound is not played at the confirm menu. "NO" activate_sound is nomal.
Code: Select all
hotspot (140, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(1, confirm = False)):
use load_save_slot(number=1)
hotspot (613, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(2, confirm = False)):
use load_save_slot(number=2)
hotspot (1089, 220, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(3, confirm = False)):
use load_save_slot(number=3)
hotspot (140, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(4, confirm = False)):
use load_save_slot(number=4)
hotspot (613, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(5, confirm = False)):
use load_save_slot(number=5)
hotspot (1089, 519, 371, 217) activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" clicked Confirm("ロードしますか?",FileLoad(6, confirm = False)):
use load_save_slot(number=6)
Code: Select all
screen confirm(message, yes_action, no_action):
modal True
zorder 500
style_prefix "confirm"
add "grp/parts/ground.png"
frame:
vbox:
xsize 445
ysize 234
xalign .98
yalign .98
spacing 30
label _(message):
style "confirm_prompt"
text_size 30
xalign 0.5
yalign 1.7
hbox:
xalign 0.1
spacing 70
style_group "readback"
imagebutton auto "grp/parts/quitYES_%s.png" xpos 72 ypos 41 activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" action yes_action
imagebutton auto "grp/parts/quitNO_%s.png" xpos 79 ypos 41 activate_sound "sound/se/sys_select.ogg" hover_sound "sound/se/sys_hover.ogg" action no_action
There seems to be no problem with script coding. All other menus and confirm windows also play sound normally. Only confirm window of load menu does not play "yes" sound.I just can't figure out how to solve it.
Any advice will be of great help. I'm eagerly waiting for your help.