Compare commits

..

No commits in common. "662187a00c82e8ff1a4022b48f2c5640a97afe1a" and "f0ffd407536cc4aa03f6341d73834dbd48c7e905" have entirely different histories.

3 changed files with 22 additions and 32 deletions

View File

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

View File

@ -97,6 +97,7 @@
"imgPath": "CumulativeReward"
},
"世界BOSS": {
"Private": true,
"Script": [
"Project/WorldBoss/WorldBoss.nut"
],
@ -105,17 +106,7 @@
"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,6 +74,11 @@ 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));
@ -94,33 +99,22 @@ class WorldBossC extends LenheartNewUI_Windows {
local T = {
idx = Info.rank,
name = Info.name,
time = Info.time,
time = "15:20",
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 = Jso.myteam.time,
time = "15:20",
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));
@ -226,9 +220,9 @@ class WorldBossC extends LenheartNewUI_Windows {
//遍历有多少个Boss
foreach(Pos, Info in BaseInfo.info) {
local Tabbars1 = LenheartNewUI_TabbarsText(6 + (Pos * 61), 23, Info.name);
local Tabbars1 = LenheartNewUI_TabbarsText(6 + (Pos * 61), 23, Info.boss_name);
if (Pos == 0) Tabbars1.State = 1;
Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.name) / 2, 4);
Tabbars1.SetTextOffset(31 - LenheartTextClass.GetStringLength(Info.boss_name) / 2, 4);
AddChild(Tabbars1);
Tabbars1.OnClickEx = LogicFunc.bindenv(this);
Title.append(Tabbars1);
@ -341,13 +335,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, 250), 1.0, 1.0);
WindowLogoImg.DrawExPng(Page, X + 1, Y + 19, 0, sq_RGBA(255, 255, 255, 220), 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, 250), 1.0, 1.0);
WindowInfoImg.DrawExPng(Page, X + 19, Y + 66, 0, sq_RGBA(255, 255, 255, 220), 1.0, 1.0);
}
DrawNineBox(X + 26, Y + 416, 260, 42, "interface/lenheartwindowcommon.img", 213); //背景框
@ -527,11 +521,15 @@ 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;