Files
DNF_DEV_SQR/UI/Windows/HUD/Window_hud.nut
2025-10-25 23:52:26 +08:00

42 lines
1011 B
Plaintext

/*
文件名:Window_hud.nut
路径:UI/Windows/HUD/Window_hud.nut
创建日期:2025-10-19 20:36
文件用途:
*/
class Window_hud extends GameWindow {
constructor(Name, gX, gY, gWidth, gHeight, gTitleHeight) {
base.constructor(Name, gX, gY, gWidth, gHeight, gTitleHeight);
InitSprite();
}
function InitSprite() {
local Sp = Sprite("sprite/interface2/hud/hud.img", 0);
Sp.SetPos((1280 - 403) / 2, 720 - 75);
AddChild(Sp);
}
/**
* 鼠标事件重载函数
* @function override
* @param {any} Type
* @param {any} Data
* @param {boolean} EventInteractiveFlag
* @returns {void}
*/
function OnMouseEvent(Type, Data, EventInteractiveFlag) {
base.OnMouseEvent(Type, Data, EventInteractiveFlag);
if (Type == UI_EVENT.MOUSEBUTTONDOWN) {
}
}
/**
* 重载ResetFoucus函数本窗口不需要改变焦点
* @function
* @returns {void}
*/
function ResetFoucus() {}
}