1111
This commit is contained in:
43
UI/ObjectClass/WindowNode.nut
Normal file
43
UI/ObjectClass/WindowNode.nut
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
文件名:WindowNode.nut
|
||||
路径:UI/ObjectClass/WindowNode.nut
|
||||
创建日期:2025-10-18 20:54
|
||||
文件用途:窗口节点类
|
||||
*/
|
||||
class WindowNode extends Actor {
|
||||
//演出状态
|
||||
PerformanceState = false;
|
||||
//子控件
|
||||
Childrens = null;
|
||||
//刷新函数
|
||||
UpdateFunc = null;
|
||||
//是否可见
|
||||
Visible = true;
|
||||
//宽度
|
||||
Width = null;
|
||||
//高度
|
||||
Height = null;
|
||||
//销毁Flag
|
||||
DestroyFlag = false;
|
||||
|
||||
|
||||
function _typeof() {
|
||||
return "WindowNode"
|
||||
}
|
||||
|
||||
constructor() {
|
||||
base.constructor()
|
||||
|
||||
//子控件list初始化
|
||||
Childrens = []
|
||||
}
|
||||
|
||||
function SetVisible(Flag) {
|
||||
Visible = Flag
|
||||
}
|
||||
|
||||
function AddChild(Act) {
|
||||
base.AddChild(Act)
|
||||
Childrens.push(Act)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user