Skip to content

Commit 7a37488

Browse files
committed
补充更多菜单交互音效
框架跟进
1 parent 5da7941 commit 7a37488

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

Zenitha

assets/game/exteriorMap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function map:mouseMove(x,y)
268268
local _f=focused
269269
focused=_onMode(x,y)
270270
if not _f and focused then
271-
SFX.play('slider_fill_drag',nil,nil,-36)
271+
SFX.play('map_hover')
272272
end
273273
end
274274
function map:mouseClick(x,y)

assets/progress.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ function PROGRESS.applyEnv(env)
242242
PROGRESS.applyInteriorBG()
243243
PROGRESS.applyInteriorBGM()
244244
ZENITHA.globalEvent.touchClick=NULL
245-
ZENITHA.globalEvent.mouseDown=function(x,y) SYSFX.rectRipple(.26,x-10,y-10,20,20) end
245+
function ZENITHA.globalEvent.mouseDown(x,y) SYSFX.rectRipple(.26,x-10,y-10,20,20) end
246+
ZENITHA.globalEvent.mouseMove=NULL
247+
ZENITHA.globalEvent.mouseUp=NULL
246248
function ZENITHA.globalEvent.drawCursor(x,y)
247249
if not SETTINGS.system.sysCursor then
248250
gc.setColor(1,1,1)
@@ -256,17 +258,21 @@ function PROGRESS.applyEnv(env)
256258
gc.line(-15,0,15,0)
257259
end
258260
end
261+
ZENITHA.globalEvent.sceneSwap=NULL
259262
elseif env=='exterior' then
260263
PROGRESS.applyExteriorBG()
261264
PROGRESS.applyExteriorBGM()
262-
ZENITHA.globalEvent.touchClick=function(x,y) SYSFX.tap(.26,x,y) end
263-
ZENITHA.globalEvent.mouseDown=function(x,y,k)
265+
function ZENITHA.globalEvent.touchClick(x,y) SYSFX.tap(.26,x,y) end
266+
function ZENITHA.globalEvent.mouseDown(x,y,k)
264267
if k==1 then SYSFX.ripple(.26,x,y,26,.62,.62,1)
265268
elseif k==2 then SYSFX.ripple(.26,x,y,26,1,.62,1)
266269
elseif k==3 then SYSFX.ripple(.26,x,y,26,1,.62,.62)
267270
else SYSFX.ripple(.26,x,y,26,9,.9,.9)
268271
end
272+
SFX.play('mouse_down')
269273
end
274+
ZENITHA.globalEvent.mouseMove=NULL
275+
function ZENITHA.globalEvent.mouseUp(x,y,k) SFX.play('mouse_up') end
270276
function ZENITHA.globalEvent.drawCursor(x,y)
271277
if not SETTINGS.system.sysCursor then
272278
gc.setColor(1,1,1)
@@ -283,6 +289,11 @@ function PROGRESS.applyEnv(env)
283289
end
284290
end
285291
ZENITHA.globalEvent.drawSysInfo=sysInfoFunc
292+
function ZENITHA.globalEvent.sceneSwap(state)
293+
if state=='swap' then
294+
SFX.play(SCN.stackChange<0 and 'scene_backward' or 'scene_forward')
295+
end
296+
end
286297
else
287298
error("?")
288299
end

datatable/se_names.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ return {
2323
'finish_timeout','finish_rule','finish_exhaust','finish_taskfail','finish_other',
2424

2525
-- Game UI
26+
'mouse_down','mouse_up',
27+
'scene_forward','scene_backward',
2628
'pause_pause','pause_unpause','pause_restart','pause_setting','pause_quit',
2729
'music_highcut','music_pause','music_glitch',
2830
'notice_up','notice_down','unlock_secret',
29-
'simulation_select','map_select','map_enter',
31+
'simulation_select','map_hover','map_select','map_enter',
3032
'map_pass_1','map_pass_2','map_pass_3','map_pass_4','map_pass_5',
3133
'map_unlock','map_unlock_bg',
3234
'dict_open','dict_close','dict_copy','dict_link',

0 commit comments

Comments
 (0)