【挂机】优化挂机界面vip任务显示
parent
d89511a3d9
commit
a8c8d08775
|
@ -1082,7 +1082,8 @@ UIColor = {
|
|||
UIColorStr = {
|
||||
RED = "#e25b58",
|
||||
GREEN = "#57c88a",
|
||||
NOT_ENOUGH_RED = "#C51B20FF"
|
||||
NOT_ENOUGH_RED = "#C51B20FF",
|
||||
YELLOW = "#E8B546",
|
||||
}
|
||||
|
||||
--编队面板类型(前端用)
|
||||
|
|
|
@ -476,7 +476,12 @@ function this.refreshVipTask()
|
|||
elseif t == 1 then
|
||||
-- 不能激活时显示任务
|
||||
local taskConfigInfo = ConfigManager.GetConfigData(ConfigName.TaskConfig, task.missionId)
|
||||
this.titleText.text = GetLanguageStrById(taskConfigInfo.Desc)..string.format("<color=%s>(%s/%s)</color>", UIColorStr.GREEN, task.progress, taskConfigInfo.TaskValue[2][1])
|
||||
local color = task.state == VipTaskStatusDef.CanReceive and UIColorStr.GREEN or UIColorStr.YELLOW
|
||||
this.titleText.text = GetLanguageStrById(taskConfigInfo.Desc)
|
||||
-- 避免显示的太长
|
||||
if tonumber(taskConfigInfo.TaskValue[2][1]) < 10000 then
|
||||
this.titleText.text = this.titleText.text .. string.format("<color=%s>(%s/%s)</color>", color, task.progress, taskConfigInfo.TaskValue[2][1])
|
||||
end
|
||||
this.progressText.text = ""
|
||||
this.mainTaskGRewardImage:SetActive(task.state ~= VipTaskStatusDef.NotFinished)
|
||||
this.mainTaskJumpImage:SetActive(task.state == VipTaskStatusDef.NotFinished)
|
||||
|
|
Loading…
Reference in New Issue