diff --git a/Project/CumulativeReward/CumulativeReward.nut b/Project/CumulativeReward/CumulativeReward.nut index 07255ba..d0b838f 100644 --- a/Project/CumulativeReward/CumulativeReward.nut +++ b/Project/CumulativeReward/CumulativeReward.nut @@ -113,8 +113,8 @@ class CumulativeRewardC extends LenheartNewUI_Windows { local Arr = Jso.info; NextRewardItem = Arr[0]; CurrentStage = Arr[1]; - if (CurrentStage >= 3) { - CurrentStage = 3; + if (CurrentStage >= 4) { + CurrentStage = 4; AllFinish = true; } CurrentStageTime = Arr[2]; @@ -160,13 +160,14 @@ class CumulativeRewardC extends LenheartNewUI_Windows { DrawItemBase(X + 6, Y + 6, NextRewardItem, 1); //绘制盖子 Img1.DrawPng(19, X, Y); + //绘制阶段文字 - Img1.DrawExPng(25 + CurrentStage, X + 46, Y + 3, 0, sq_RGBA(255, 255, 255, 250), 0.85, 0.85); + Img1.DrawExPng(25 + (CurrentStage >= 4 ? 3 : CurrentStage), X + 46, Y + 3, 0, sq_RGBA(255, 255, 255, 250), 0.85, 0.85); if (IsOpen) { if (CurrentStage != null) { - local StageText = "累计在线得好礼 (" + (CurrentStage + 1) + "/4 阶段)"; + local StageText = "累计在线得好礼 (" + ((CurrentStage >= 4 ? 3 : CurrentStage) + 1) + "/4 阶段)"; L_sq_DrawCode(StageText, X + 6, Y + 42, sq_RGBA(255, 177, 0, 255), 1, 1); if (AllFinish) { local Str = "今天的累计在线活动已完成!";