111
This commit is contained in:
@@ -38,6 +38,8 @@ class TH_CombatRankC extends LenheartNewUI_Windows {
|
||||
DeclareTimer = null;
|
||||
DeclareFlag = false;
|
||||
|
||||
//排行名次颜色集合
|
||||
RankColor = null;
|
||||
//公会奖励集合
|
||||
GuildReward = null;
|
||||
GuildFlagData = null;
|
||||
@@ -82,6 +84,10 @@ class TH_CombatRankC extends LenheartNewUI_Windows {
|
||||
RegisterPack(20096102, function(Chunk) {
|
||||
local Jso = Json.Decode(Chunk);
|
||||
PersonReward = Jso["config"];
|
||||
RankColor = [];
|
||||
foreach (colorarr in Jso["pmys"]) {
|
||||
RankColor.append(sq_RGBA(colorarr[0], colorarr[1], colorarr[2], colorarr[3]));
|
||||
}
|
||||
}.bindenv(this));
|
||||
|
||||
//基础公会数据回包
|
||||
@@ -194,18 +200,14 @@ class TH_CombatRankC extends LenheartNewUI_Windows {
|
||||
// }.bindenv(this);
|
||||
// TitleButtonList.append(FuncTabbar2);
|
||||
|
||||
// local FuncTabbar3 = LenheartNewUI_TabbarsText(476, 23, "我的战力");
|
||||
// FuncTabbar3.SetTextOffset(8, 4);
|
||||
// AddChild(FuncTabbar3);
|
||||
// FuncTabbar3.OnClick = function() {
|
||||
// TitleButtonList[0].State = 0;
|
||||
// TitleButtonList[1].State = 0;
|
||||
// TitleButtonList[2].State = 1;
|
||||
// Page = 0;
|
||||
// LookingInfo = MyCombat;
|
||||
// ScrollBar.Reset();
|
||||
// }.bindenv(this);
|
||||
// TitleButtonList.append(FuncTabbar3);
|
||||
local FuncTabbar3 = LenheartNewUI_BaseButton(706, 8, 11, 12, "interface/lenheartwindowcommon.img", 593);
|
||||
AddChild(FuncTabbar3);
|
||||
FuncTabbar3.OnClick = function() {
|
||||
Page = 0;
|
||||
LookingInfo = MyCombat;
|
||||
ScrollBar.Reset();
|
||||
}.bindenv(this);
|
||||
TitleButtonList.append(FuncTabbar3);
|
||||
|
||||
ScrollBar = Yosin_ScrollBar(729, 295, 218, 60);
|
||||
ScrollBar.SetParent(this);
|
||||
@@ -631,10 +633,12 @@ class TH_CombatRankC_Item {
|
||||
Combat = Info.zdlS;
|
||||
}
|
||||
|
||||
local Color = sq_RGBA(230, 200, 155, 255);
|
||||
if(Idx < 10 && Parent.RankColor)Color = Parent.RankColor[Idx];
|
||||
//绘制排名
|
||||
L_sq_DrawCode(Ranking, X + 25 - LenheartTextClass.GetStringLength(Ranking) / 2, Y + 14, sq_RGBA(230, 200, 155, 255), 0, 1);
|
||||
L_sq_DrawCode(Ranking, X + 25 - LenheartTextClass.GetStringLength(Ranking) / 2, Y + 14, Color, 0, 1);
|
||||
//绘制角色名
|
||||
L_sq_DrawCode(CharacName, X + 110 - LenheartTextClass.GetStringLength(CharacName) / 2, Y + 14, sq_RGBA(230, 200, 155, 255), 0, 1);
|
||||
L_sq_DrawCode(CharacName, X + 110 - LenheartTextClass.GetStringLength(CharacName) / 2, Y + 14, Color, 0, 1);
|
||||
//绘制膜拜次数
|
||||
L_sq_DrawCode(MbCount, X + 213 - LenheartTextClass.GetStringLength(MbCount) / 2, Y + 14, sq_RGBA(230, 200, 155, 255), 0, 1);
|
||||
//绘制职业
|
||||
|
||||
Reference in New Issue
Block a user