NPC交易添加音效

This commit is contained in:
Lenheart 2025-11-25 12:53:39 +08:00
parent 217bf15a7a
commit 31dfb5fa1d
1 changed files with 5 additions and 0 deletions

View File

@ -88,9 +88,12 @@ class NpcTransactionC extends LenheartNewUI_Windows {
DiaTimer = Clock();
if (Jso.rawin("glod")) {
TransactionGlod = Jso.glod;
R_Utils.PlaySound("GOLD_PAY_OUT");
}
if (Jso.rawin("equ")) {
TransactionEqu = Jso.equ;
} else {
R_Utils.PlaySound("ALERT_2");
}
}.bindenv(this));
@ -211,6 +214,7 @@ class NpcTransactionC extends LenheartNewUI_Windows {
ReplacementEqu = info.itemId;
SendPackEx(info);
}
R_Utils.PlaySound("CHANGE_ALERT");
}
}
@ -306,6 +310,7 @@ class NpcTransactionC extends LenheartNewUI_Windows {
Button.Parent.CloseAllEach();
Button.Parent.CloseWindow();
ResetFocus();
R_Utils.PlaySound("WINDOW_SHOW");
}.bindenv(this);
ApplyEngagementButton.SetCallBackFunc(function(Button) {})
SThis.AddChild(ApplyEngagementButton);