控件框架基础引入
This commit is contained in:
25
UI/Windows/System/NotiBox.nut
Normal file
25
UI/Windows/System/NotiBox.nut
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user