鼠标框架完成 窗口事件框架完成
This commit is contained in:
20
UI/Windows/HUD/Window_hud.nut
Normal file
20
UI/Windows/HUD/Window_hud.nut
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
文件名: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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user