加入文本精灵
This commit is contained in:
@@ -65,7 +65,7 @@ class GameWidget extends WindowNode {
|
||||
local IMouse = Game_Cursor.GetInstance();
|
||||
local Pos = GetWorldPos();
|
||||
if (isLBDown && Math.IsIntersectRect(IMouse.MouseX, IMouse.MouseY, 1, 1, Pos.x, Pos.y, Width, Height)) {
|
||||
if (OnClick) this.OnClick(this);
|
||||
if (OnClick) this.OnClick.call(this,this);
|
||||
if (ClickSound) {
|
||||
//TODO 音效系统
|
||||
// Sq_PlaySoundEffect(ClickSound);
|
||||
|
||||
Reference in New Issue
Block a user