ID1018689】

【好感度】好感度详情界面,好感等级进度,已达成的固定显示好感度
dev_chengFeng
jiaoyangna 2021-10-09 11:09:53 +08:00
parent 8b13f803c8
commit e23d1259f1
1 changed files with 5 additions and 2 deletions

View File

@ -363,13 +363,16 @@ function this.GetViewProData(indexType,add,lv,title1,title2,subtitle1,subtitle2,
for i = 1,#list do for i = 1,#list do
if list[i].lv ~= 0 then if list[i].lv ~= 0 then
local color = "" local color = ""
local tempNum = 0
if lv >= list[i].lv then if lv >= list[i].lv then
color = "00FF00" color = "00FF00"
tempNum = list[i].value
else else
color = "fdf5e5" color = "fdf5e5"
tempNum = num
end end
if title2 and title2 ~= "" then if title2 and title2 ~= "" then
table.insert(data.prolist,string.format(title2,color,list[i].lv,num,list[i].value)) table.insert(data.prolist,string.format(title2,color,list[i].lv,tempNum,list[i].value))
end end
local str1,str2 = this.GetViewProDatas(indexType,add,list[i].lv,subtitle1,subtitle2,nextLv,color) local str1,str2 = this.GetViewProDatas(indexType,add,list[i].lv,subtitle1,subtitle2,nextLv,color)
table.insert(data.prolist,str1) table.insert(data.prolist,str1)