世界BOSS上线

This commit is contained in:
Lenheart 2025-12-03 20:10:06 +08:00
parent cf365f4833
commit 662187a00c
2 changed files with 29 additions and 18 deletions

View File

@ -97,7 +97,6 @@
"imgPath": "CumulativeReward" "imgPath": "CumulativeReward"
}, },
"世界BOSS": { "世界BOSS": {
"Private": true,
"Script": [ "Script": [
"Project/WorldBoss/WorldBoss.nut" "Project/WorldBoss/WorldBoss.nut"
], ],
@ -106,7 +105,17 @@
"ProjectVersion": "1.0.0", "ProjectVersion": "1.0.0",
"ProjectDescribe": "自用世界BOSS", "ProjectDescribe": "自用世界BOSS",
"ImageMini": "http://49.234.27.222:8651/dps/download2/Image:chengjiu.png" "ImageMini": "http://49.234.27.222:8651/dps/download2/Image:chengjiu.png"
} },
"ProjectDetails": [
{
"type": "str",
"content": "🔥 打破原版桎梏,重塑世界 BOSS 核心乐趣"
},
{
"type": "str",
"content": "还在为超变伤害难以控制、副本不符合心意、性价比低而放弃世界 BOSS这款高自由度随心定制的世界 BOSS 玩法插件,直击核心痛点,以「公平竞技 + 趣味机制 + 丰厚回报」三重升级,让全服挑战重回热血巅峰!"
}
]
}, },
"圣者遗物箱": { "圣者遗物箱": {
"price": 30, "price": 30,

View File

@ -13,7 +13,7 @@ class WorldBossC extends LenheartNewUI_Windows {
// NoWindow = true; // NoWindow = true;
//是否可见 //是否可见
Visible = false; // Visible = false;
WindowImg = Rindro_Image("hud/worldboss.img"); WindowImg = Rindro_Image("hud/worldboss.img");
WindowTimeImg = Rindro_Image("hud/worldboss_time.img"); WindowTimeImg = Rindro_Image("hud/worldboss_time.img");
@ -74,11 +74,6 @@ class WorldBossC extends LenheartNewUI_Windows {
Pack_Control.rawset(20060002, function(Chunk) { Pack_Control.rawset(20060002, function(Chunk) {
local Jso = Json.Decode(Chunk); local Jso = Json.Decode(Chunk);
BaseInfo = Jso; BaseInfo = Jso;
//临时
for (local i = 0; i< BaseInfo.info.len(); i++) {
if (i == 0) BaseInfo.info[i].boss_name <- "斯卡萨侵袭";
else BaseInfo.info[i].boss_name <- "世界BOSS" + i;
}
RegisterBossPage(); RegisterBossPage();
ChangePage(0); ChangePage(0);
}.bindenv(this)); }.bindenv(this));
@ -99,22 +94,33 @@ class WorldBossC extends LenheartNewUI_Windows {
local T = { local T = {
idx = Info.rank, idx = Info.rank,
name = Info.name, name = Info.name,
time = "15:20", time = Info.time,
damage = Info.damage, damage = Info.damage,
teamid = Info.teamId, teamid = Info.teamId,
}; };
local Buffer = WorldBossC_Item(this, T); local Buffer = WorldBossC_Item(this, T);
RankObject.append(Buffer); RankObject.append(Buffer);
} }
//我的排名
if (Jso.rawin("myteam")) { if (Jso.rawin("myteam")) {
MyRankObject = WorldBossC_Item(this, { MyRankObject = WorldBossC_Item(this, {
idx = Jso.myteam.rank, idx = Jso.myteam.rank,
name = "我的队伍", name = "我的队伍",
time = "15:20", time = Jso.myteam.time,
damage = Jso.myteam.damage, damage = Jso.myteam.damage,
teamid = Jso.myteam.teamId, teamid = Jso.myteam.teamId,
self = true self = true
}) })
} else {
MyRankObject = WorldBossC_Item(this, {
idx = "∞",
name = "我的队伍",
time = "0:0",
damage = "0",
teamid = 0,
self = true
})
} }
}.bindenv(this)); }.bindenv(this));
@ -220,9 +226,9 @@ class WorldBossC extends LenheartNewUI_Windows {
//遍历有多少个Boss //遍历有多少个Boss
foreach(Pos, Info in BaseInfo.info) { foreach(Pos, Info in BaseInfo.info) {
local Tabbars1 = LenheartNewUI_TabbarsText(6 + (Pos * 61), 23, Info.boss_name); local Tabbars1 = LenheartNewUI_TabbarsText(6 + (Pos * 61), 23, Info.name);
if (Pos == 0) Tabbars1.State = 1; if (Pos == 0) Tabbars1.State = 1;
Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.boss_name) / 2, 4); Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.name) / 2, 4);
AddChild(Tabbars1); AddChild(Tabbars1);
Tabbars1.OnClickEx = LogicFunc.bindenv(this); Tabbars1.OnClickEx = LogicFunc.bindenv(this);
Title.append(Tabbars1); Title.append(Tabbars1);
@ -335,13 +341,13 @@ class WorldBossC extends LenheartNewUI_Windows {
function DrawMain(obj) { function DrawMain(obj) {
if (Page != null) { if (Page != null) {
WindowLogoImg.DrawExPng(Page, X + 1, Y + 19, 0, sq_RGBA(255, 255, 255, 220), 1.0, 1.0); WindowLogoImg.DrawExPng(Page, X + 1, Y + 19, 0, sq_RGBA(255, 255, 255, 250), 1.0, 1.0);
} }
WindowImg.DrawPng(0, X, Y); WindowImg.DrawPng(0, X, Y);
if (Page != null) { if (Page != null) {
WindowInfoImg.DrawExPng(Page, X + 19, Y + 66, 0, sq_RGBA(255, 255, 255, 220), 1.0, 1.0); WindowInfoImg.DrawExPng(Page, X + 19, Y + 66, 0, sq_RGBA(255, 255, 255, 250), 1.0, 1.0);
} }
DrawNineBox(X + 26, Y + 416, 260, 42, "interface/lenheartwindowcommon.img", 213); //背景框 DrawNineBox(X + 26, Y + 416, 260, 42, "interface/lenheartwindowcommon.img", 213); //背景框
@ -521,15 +527,11 @@ getroottable()["LenheartFuncTab"].rawset("WorldBossFuncN", Lenheart_WorldBoss_Fu
L_Windows_List <- []; L_Windows_List <- [];
getroottable().rawdelete("LenheartPluginsInitFlag"); getroottable().rawdelete("LenheartPluginsInitFlag");
getroottable().rawdelete("EventList_Obj") getroottable().rawdelete("EventList_Obj")
getroottable().rawdelete("WorldBoss_Obj"); getroottable().rawdelete("WorldBoss_Obj");
class WorldBossC_Item { class WorldBossC_Item {
//Img //Img
Img = null; Img = null;