no message
This commit is contained in:
parent
562c5b6738
commit
07a8f73931
|
|
@ -46,10 +46,6 @@ class Yosin_CommonUi extends Yosin_BaseWindow {
|
|||
local Pos = GetWorldPosition();
|
||||
if (Math.IsIntersectRect(MousePos_X, MousePos_Y, 1, 1, Pos.x, Pos.y, Width, Height)) {
|
||||
isLBDown = true;
|
||||
//如果有配置按键音效
|
||||
if (OnClickSound) {
|
||||
Sq_PlaySoundEffect(OnClickSound);
|
||||
}
|
||||
}
|
||||
base.OnMouseLbDown(MousePos_X, MousePos_Y);
|
||||
}
|
||||
|
|
@ -64,6 +60,10 @@ class Yosin_CommonUi extends Yosin_BaseWindow {
|
|||
local Pos = GetWorldPosition();
|
||||
if (Math.IsIntersectRect(MousePos_X, MousePos_Y, 1, 1, Pos.x, Pos.y, Width, Height)) {
|
||||
if (OnClick) OnClick(this);
|
||||
//如果有配置按键音效
|
||||
if (OnClickSound) {
|
||||
Sq_PlaySoundEffect(OnClickSound);
|
||||
}
|
||||
}
|
||||
base.OnMouseLbClick(MousePos_X, MousePos_Y);
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ class Yosin_EmeStretch extends Yosin_CommonUi {
|
|||
SpriteList[1].SetPosition(SpriteList[0].GetSize().w, 0);
|
||||
SpriteList[1].SetScale(ScaleRate, ScaleRateH);
|
||||
SpriteList[2].SetPosition(SpriteList[0].GetSize().w + ScaleW, 0);
|
||||
if (H != SpriteList[1].GetSize().h) {
|
||||
if (H != SpriteList[1].GetSize().h) {
|
||||
SpriteList[0].SetScale(1, ScaleRateH);
|
||||
SpriteList[2].SetScale(1, ScaleRateH);
|
||||
}
|
||||
|
|
@ -182,7 +182,7 @@ class Yosin_EmeStretch extends Yosin_CommonUi {
|
|||
SpriteList[1].SetPosition(0, SpriteList[0].GetSize().h);
|
||||
SpriteList[1].SetScale(ScaleRateW, ScaleRate);
|
||||
SpriteList[2].SetPosition(0, SpriteList[0].GetSize().h + ScaleH);
|
||||
if (W != SpriteList[1].GetSize().w) {
|
||||
if (W != SpriteList[1].GetSize().w) {
|
||||
SpriteList[0].SetScale(ScaleRateW, ScaleRateH);
|
||||
SpriteList[2].SetScale(ScaleRateW, ScaleRateH);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue