新成就系统初版

This commit is contained in:
LENHEART-BOOK\dongj
2025-06-09 00:36:27 +08:00
parent 3aa751abbc
commit 8c07f139d0
5 changed files with 343 additions and 33 deletions

View File

@@ -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();
}
}