修复累计在线奖励 阶段性BUG

This commit is contained in:
Lenheart 2025-12-21 00:39:48 +08:00
parent 39fefdae43
commit f12db16ab0
1 changed files with 5 additions and 4 deletions

View File

@ -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 = "今天的累计在线活动已完成!";