/* 文件名:SeriaZeal.nut 路径:Project/SeriaZeal/SeriaZeal.nut 创建日期:2025-12-08 22:06 文件用途: */ class SeriaZealC extends LenheartNewUI_Windows { //调试模式 // DeBugMode = true; //不是窗口 // NoWindow = true; //是否可见 // Visible = false; Img = Rindro_Image("interface2/guidesystem/welcome.img"); constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) { Childrens = []; //注册控件 RegisterWidget(); LenheartNewUI_Windows.constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH); } function RegisterWidget() { // //关闭按钮 // local CloseButton = LenheartNewUI_BaseButton(278, 0, 11, 12, "interface/lenheartwindowcommon.img", 276); // CloseButton.OnClick = function() { // this.Visible = false; // }.bindenv(this); // Childrens.append(CloseButton); } //绘制主界面 function DrawMain(obj) { //背景框 DrawNineBox(X, Y, 700, 546, "interface/lenheartwindowcommon.img", 213); //标题 DrawWindowTitle(703); //绘制标题名 L_sq_DrawCode("赛丽亚的热忱", X + 315, Y + 6, sq_RGBA(230, 200, 155, 255), 0, 1); //嵌套背景框 DrawNineBox(X + 5, Y + 27, 692, 514, "interface/lenheartwindowcommon.img", 97); //背景 Img.DrawPng(0, X + 8, Y + 32); //赛丽亚的热忱文字 Img.DrawPng(5, X + 314, Y + 68); L_sq_DrawCode("你好,亲爱的冒险家,我是赛丽亚。", X + 350, Y + 118, sq_RGBA(230, 200, 155, 255), 0, 1); L_sq_DrawCode("我为来到阿拉德的冒险家准备了一些小礼物。", X + 350, Y + 132, sq_RGBA(230, 200, 155, 255), 0, 1); Img.DrawPng(6, X + 290, Y + 150); Img.DrawPng(7, X + 305, Y + 189); } function Show(obj) { DrawMain(obj); LenheartNewUI_Windows.Show(obj); } //逻辑入口 function Proc(obj) { LenheartNewUI_Windows.SyncPos(X, Y); } function OpenCallBack() { Visible = true; } } L_Windows_List <- []; getroottable().rawdelete("LenheartPluginsInitFlag"); getroottable().rawdelete("EventList_Obj") getroottable().rawdelete("SeriaZeal_Obj"); function Lenheart_SeriaZeal_Fun(obj) { local RootTab = getroottable(); if (!RootTab.rawin("SeriaZeal_Obj")) { RootTab.rawset("SeriaZeal_Obj", true); local Win = LenheartNewUI_CreateWindow(SeriaZealC, "赛丽亚的热忱窗口", ((getroottable().Rindro_Scr_Width - 700) / 2).tointeger(), 30, 700, 544, 28); EventList_Obj.AddEvent("赛丽亚的热忱", 256, Win, "interface2/hud/information_button/information_button_cn.img"); } } getroottable()["LenheartFuncTab"].rawset("SeriaZealFuncN", Lenheart_SeriaZeal_Fun);