上架装备跨界插件
This commit is contained in:
BIN
Project/ItemTool/ItemCrossover/img/0.png
Normal file
BIN
Project/ItemTool/ItemCrossover/img/0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 172 KiB |
BIN
Project/ItemTool/ItemCrossover/img/1.png
Normal file
BIN
Project/ItemTool/ItemCrossover/img/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
BIN
Project/ItemTool/ItemCrossover/img/2.png
Normal file
BIN
Project/ItemTool/ItemCrossover/img/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 172 KiB |
BIN
Project/ItemTool/ItemCrossover/img/3.png
Normal file
BIN
Project/ItemTool/ItemCrossover/img/3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 182 KiB |
84
Project/ItemTool/ItemInherit/ItemInherit.nut
Normal file
84
Project/ItemTool/ItemInherit/ItemInherit.nut
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
文件名:ItemInherit.nut
|
||||
路径:Project/ItemTool/ItemInherit/ItemInherit.nut
|
||||
创建日期:2025-12-15 15:03
|
||||
文件用途:
|
||||
*/
|
||||
class ItemInheritC extends LenheartNewUI_Windows {
|
||||
//调试模式
|
||||
// DeBugMode = true;
|
||||
|
||||
//不是窗口
|
||||
// NoWindow = true;
|
||||
|
||||
//是否可见
|
||||
// Visible = false;
|
||||
|
||||
NPCList = null;
|
||||
|
||||
Img = Rindro_Image("interface2/ui/newitemtool/newitemtool.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, 292, 292, "interface/lenheartwindowcommon.img", 213);
|
||||
//标题
|
||||
DrawWindowTitle(293);
|
||||
//绘制标题名
|
||||
L_sq_DrawCode("装备继承", X + 123, Y + 5, sq_RGBA(230, 200, 155, 255), 0, 1);
|
||||
|
||||
|
||||
Img.DrawPng(3, X + 8, Y + 32);
|
||||
|
||||
|
||||
Rindro_Image_GlobalMap["lenheartui"].DrawPng(469, X + 260, Y + 40);
|
||||
|
||||
}
|
||||
|
||||
function Show(obj) {
|
||||
DrawMain(obj);
|
||||
LenheartNewUI_Windows.Show(obj);
|
||||
|
||||
}
|
||||
|
||||
//逻辑入口
|
||||
function Proc(obj) {
|
||||
LenheartNewUI_Windows.SyncPos(X, Y);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
L_Windows_List <- [];
|
||||
getroottable().rawdelete("LenheartPluginsInitFlag");
|
||||
getroottable().rawdelete("EventList_Obj")
|
||||
getroottable().rawdelete("ItemInherit_Obj");
|
||||
getroottable().rawdelete("L_Each_Obj");
|
||||
|
||||
function Lenheart_ItemInherit_Fun(obj) {
|
||||
local RootTab = getroottable();
|
||||
if (!RootTab.rawin("ItemInherit_Obj")) {
|
||||
RootTab.rawset("ItemInherit_Obj", true);
|
||||
LenheartNewUI_CreateWindow(ItemInheritC, "装备继承窗口", ((getroottable().Rindro_Scr_Width - 700) / 2).tointeger(), 160, 292, 290, 28);
|
||||
}
|
||||
}
|
||||
|
||||
getroottable()["LenheartFuncTab"].rawset("ItemInheritFuncN", Lenheart_ItemInherit_Fun);
|
||||
Reference in New Issue
Block a user