新成就系统初版
This commit is contained in:
@@ -150,7 +150,7 @@ class LenheartNewUI_BaseWindow extends Rindro_BaseToolClass {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* @函数作用: 添加子对象
|
||||
* @参数 name
|
||||
*/
|
||||
@@ -494,7 +494,7 @@ function CheackMouseInOldWindows() {
|
||||
}
|
||||
} else {
|
||||
//原生窗口里的按钮
|
||||
if(Flag == 0x184D174)return true;
|
||||
if (Flag == 0x184D174) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1341,6 +1341,19 @@ class Yosin_DragButton extends LenheartNewUI_CommonUi {
|
||||
OnChange(CurrentScrollValue);
|
||||
}
|
||||
}
|
||||
|
||||
//重置
|
||||
function Reset() {
|
||||
Move_Value = 0;
|
||||
CurrentMovePosY = 0;
|
||||
Localtion_Y = BasePos.y;
|
||||
// 更新并回调滚动值
|
||||
if (OnChange) {
|
||||
local Rate = Move_Value.tofloat() / Max_Move_Value.tofloat();
|
||||
CurrentScrollValue = format("%.2f", Rate).tofloat();
|
||||
OnChange(CurrentScrollValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Yosin_ScrollBar {
|
||||
@@ -1409,4 +1422,9 @@ class Yosin_ScrollBar {
|
||||
function SetStep(value) {
|
||||
Step = value;
|
||||
}
|
||||
|
||||
function Reset() {
|
||||
ScrollButton.Reset();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user