控件框架基础引入

This commit is contained in:
2025-10-21 23:06:06 +08:00
parent b16e8d7820
commit 5d78244ef0
10 changed files with 381 additions and 70 deletions

View File

@@ -0,0 +1,25 @@
/*
文件名:NotiBox.nut
路径:UI/Windows/System/NotiBox.nut
创建日期:2025-10-21 21:50
文件用途:
*/
class Window_NotiBox extends GameWindow {
constructor(Name, gX, gY, gWidth, gHeight, gTitleHeight) {
base.constructor(Name, gX, gY, gWidth, gHeight, gTitleHeight);
InitSprite();
InitButton();
}
function InitSprite() {
local Sp = Sprite("sprite/hud/newantonui.img", 0);
AddChild(Sp);
}
function InitButton() {
local Btn = GameWidget_BaseButton(40, 40, 56, 24, "sprite/interface/lenheartwindowcommon.img", 12);
AddChild(Btn);
}
}