29 lines
769 B
Plaintext
29 lines
769 B
Plaintext
/*
|
|
文件名:MainUI.nut
|
|
路径:UI/MainUI.nut
|
|
创建日期:2025-10-11 11:21
|
|
文件用途:主界面UI
|
|
*/
|
|
//主界面UI初始化回调
|
|
function _MainUI_Enter_(UI_Scene) {
|
|
if (!_SYS_UI_SCENE_Instance_) _SYS_UI_SCENE_Instance_ = Actor(UI_Scene);
|
|
//初始化随机数种子
|
|
srand(time());
|
|
|
|
//初始化鼠标
|
|
Game_Cursor.GetInstance();
|
|
|
|
local TestWindow = sq_CreaterWindowInstance("HUD窗口", Window_hud, 0, 0, 1280, 720, 0);
|
|
TestWindow.ResetFoucus();
|
|
}
|
|
//主界面UI事件回调
|
|
function _MainUI_HandleEvents_(EventType, EventData) {
|
|
_Global_Windows_Events_(EventType, EventData);
|
|
}
|
|
//主界面UI更新回调
|
|
function _MainUI_Update_(deltaTime) {
|
|
_Global_Windows_Logic_(deltaTime);
|
|
}
|
|
//主界面UI退出回调
|
|
function _MainUI_Exit_() {}
|