鼠标框架完成 窗口事件框架完成

This commit is contained in:
2025-10-21 19:21:20 +08:00
parent 2686136f72
commit b16e8d7820
11 changed files with 378 additions and 66 deletions

View File

@@ -6,22 +6,23 @@
*/
//主界面UI初始化回调
function _MainUI_Enter_(UI_Scene) {
if (!_SYS_UI_SCENE_Instance_) _SYS_UI_SCENE_Instance_ = Actor(UI_Scene)
if (!_SYS_UI_SCENE_Instance_) _SYS_UI_SCENE_Instance_ = Actor(UI_Scene);
//初始化随机数种子
srand(time());
local TestWindow = sq_CreaterWindow("测试窗口", GameWindow)
TestWindow.ResetFoucus()
//初始化鼠标
Game_Cursor.GetInstance();
local Sp = Sprite(
"sprite/interface2/worldmap/step_2(area)/step_2(area)_bg.img",
12
)
TestWindow.AddChild(Sp)
local TestWindow = sq_CreaterWindowInstance("HUD窗口", Window_hud, 0, 0, 1280, 720, 0);
TestWindow.ResetFoucus();
}
//主界面UI事件回调
function _MainUI_HandleEvents_(event) {}
function _MainUI_HandleEvents_(EventType, EventData) {
_Global_Windows_Events_(EventType, EventData);
}
//主界面UI更新回调
function _MainUI_Update_(deltaTime) {
_Global_Windows_Logic_(deltaTime)
_Global_Windows_Logic_(deltaTime);
}
//主界面UI退出回调
function _MainUI_Exit_() {}