Compare commits

...

2 Commits

Author SHA1 Message Date
Lenheart 662187a00c 世界BOSS上线 2025-12-03 20:10:06 +08:00
Lenheart cf365f4833 活动图标更改默认值 2025-12-03 20:09:52 +08:00
3 changed files with 32 additions and 22 deletions

View File

@ -159,8 +159,8 @@ class Rindro_Event extends LenheartNewUI_Windows {
class Rindro_EventList {
X = 0;
Y = 0;
X = 280;
Y = 530;
//活动数组
Events = null;
@ -171,7 +171,6 @@ class Rindro_EventList {
X = Jso.YosinEventIconInfoXpos;
Y = Jso.YosinEventIconInfoYpos;
getroottable()["LenheartEventOffset"] <- {
x = X - 456,
y = Y

View File

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

View File

@ -13,7 +13,7 @@ class WorldBossC extends LenheartNewUI_Windows {
// NoWindow = true;
//是否可见
Visible = false;
// Visible = false;
WindowImg = Rindro_Image("hud/worldboss.img");
WindowTimeImg = Rindro_Image("hud/worldboss_time.img");
@ -74,11 +74,6 @@ class WorldBossC extends LenheartNewUI_Windows {
Pack_Control.rawset(20060002, function(Chunk) {
local Jso = Json.Decode(Chunk);
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();
ChangePage(0);
}.bindenv(this));
@ -99,22 +94,33 @@ class WorldBossC extends LenheartNewUI_Windows {
local T = {
idx = Info.rank,
name = Info.name,
time = "15:20",
time = Info.time,
damage = Info.damage,
teamid = Info.teamId,
};
local Buffer = WorldBossC_Item(this, T);
RankObject.append(Buffer);
}
//我的排名
if (Jso.rawin("myteam")) {
MyRankObject = WorldBossC_Item(this, {
idx = Jso.myteam.rank,
name = "我的队伍",
time = "15:20",
time = Jso.myteam.time,
damage = Jso.myteam.damage,
teamid = Jso.myteam.teamId,
self = true
})
} else {
MyRankObject = WorldBossC_Item(this, {
idx = "∞",
name = "我的队伍",
time = "0:0",
damage = "0",
teamid = 0,
self = true
})
}
}.bindenv(this));
@ -220,9 +226,9 @@ class WorldBossC extends LenheartNewUI_Windows {
//遍历有多少个Boss
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;
Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.boss_name) / 2, 4);
Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.name) / 2, 4);
AddChild(Tabbars1);
Tabbars1.OnClickEx = LogicFunc.bindenv(this);
Title.append(Tabbars1);
@ -335,13 +341,13 @@ class WorldBossC extends LenheartNewUI_Windows {
function DrawMain(obj) {
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);
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); //背景框
@ -521,15 +527,11 @@ getroottable()["LenheartFuncTab"].rawset("WorldBossFuncN", Lenheart_WorldBoss_Fu
L_Windows_List <- [];
getroottable().rawdelete("LenheartPluginsInitFlag");
getroottable().rawdelete("EventList_Obj")
getroottable().rawdelete("WorldBoss_Obj");
class WorldBossC_Item {
//Img
Img = null;