fix:1、添加sdk。2、修复bug
This commit is contained in:
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DG.Tweening;
|
||||
using Dont_Confuse;
|
||||
using IgnoreOPS;
|
||||
using FairyGUI;
|
||||
using FGUI.Common_01;
|
||||
using FGUI.GameResult_08;
|
||||
@@ -476,12 +476,12 @@ namespace ChillConnect
|
||||
ui.com_ch.ch_text.text = str;
|
||||
if ((float)DataMgr.Ticket.Value > vo.item_need)
|
||||
{
|
||||
ui.com_ch.progress.width = 590;
|
||||
ui.com_ch.progress.width = 656;
|
||||
ui.com_ch.progress_text.text = GameHelper.Get102Str(vo.item_need) + "/" + GameHelper.Get102Str(vo.item_need);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.com_ch.progress.width = 590 * ((float)DataMgr.Ticket.Value / vo.item_need);
|
||||
ui.com_ch.progress.width = 656 * ((float)DataMgr.Ticket.Value / vo.item_need);
|
||||
ui.com_ch.progress_text.text = GameHelper.Get102Str(DataMgr.Ticket.Value) + "/" + GameHelper.Get102Str(vo.item_need);
|
||||
}
|
||||
|
||||
@@ -492,12 +492,12 @@ namespace ChillConnect
|
||||
// ui.com_ch.ch_text.text = "Cumulataive " + (vo.task_need / 60) + @" minutes in ""Game"" to cash out";
|
||||
// if ((float)DataMgr.MakeupTaskH5Time > vo.task_need)
|
||||
// {
|
||||
// ui.com_ch.progress.width = 590;
|
||||
// ui.com_ch.progress.width = 656;
|
||||
// ui.com_ch.progress_text.text = (vo.task_need / 60) + "/" + (vo.task_need / 60);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ui.com_ch.progress.width = 590 * ((float)DataMgr.MakeupTaskH5Time / vo.task_need);
|
||||
// ui.com_ch.progress.width = 656 * ((float)DataMgr.MakeupTaskH5Time / vo.task_need);
|
||||
// ui.com_ch.progress_text.text = Math.Round(((float)(DataMgr.MakeupTaskH5Time / 60)), 2) + "/" + (vo.task_need / 60);
|
||||
// }
|
||||
//
|
||||
@@ -509,12 +509,12 @@ namespace ChillConnect
|
||||
ui.com_ch.ch_text.text = str;
|
||||
if (makeupTaskData.videoCount > vo.ad_need)
|
||||
{
|
||||
ui.com_ch.progress.width = 590;
|
||||
ui.com_ch.progress.width = 656;
|
||||
ui.com_ch.progress_text.text = vo.ad_need + "/" + vo.ad_need;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.com_ch.progress.width = 590 * ((float)makeupTaskData.videoCount / vo.ad_need);
|
||||
ui.com_ch.progress.width = 656 * ((float)makeupTaskData.videoCount / vo.ad_need);
|
||||
ui.com_ch.progress_text.text = makeupTaskData.videoCount + "/" + vo.ad_need;
|
||||
}
|
||||
}
|
||||
@@ -522,7 +522,7 @@ namespace ChillConnect
|
||||
{
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_3"), vo.levels_need);
|
||||
ui.com_ch.ch_text.text = str;
|
||||
ui.com_ch.progress.width = 590 * (GameHelper.GetLevel() - 1) / vo.levels_need;
|
||||
ui.com_ch.progress.width = 656 * (GameHelper.GetLevel() - 1) / vo.levels_need;
|
||||
ui.com_ch.progress_text.text = (GameHelper.GetLevel() - 1) + "/" + vo.levels_need;
|
||||
}
|
||||
else
|
||||
@@ -538,7 +538,7 @@ namespace ChillConnect
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_2"), vo1.item_need);
|
||||
ui.com_ch.ch_text.text = str;
|
||||
|
||||
ui.com_ch.progress.width = 590f * ((float)(DataMgr.Ticket.Value - vo.item_need) / vo1.item_need);
|
||||
ui.com_ch.progress.width = 656f * ((float)(DataMgr.Ticket.Value - vo.item_need) / vo1.item_need);
|
||||
ui.com_ch.progress_text.text = GameHelper.Get102Str((DataMgr.Ticket.Value - vo.item_need)) + "/" + GameHelper.Get102Str(vo1.item_need);
|
||||
|
||||
|
||||
@@ -551,12 +551,12 @@ namespace ChillConnect
|
||||
ui.com_ch.ch_text.text = str;
|
||||
if (makeupTaskData.videoCount > vo1.ad_need)
|
||||
{
|
||||
ui.com_ch.progress.width = 590f;
|
||||
ui.com_ch.progress.width = 656f;
|
||||
ui.com_ch.progress_text.text = vo1.ad_need + "/" + vo1.ad_need;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.com_ch.progress.width = 590f * ((float)makeupTaskData.videoCount / vo1.ad_need);
|
||||
ui.com_ch.progress.width = 656f * ((float)makeupTaskData.videoCount / vo1.ad_need);
|
||||
ui.com_ch.progress_text.text = makeupTaskData.videoCount + "/" + vo1.ad_need;
|
||||
}
|
||||
}
|
||||
@@ -564,7 +564,7 @@ namespace ChillConnect
|
||||
{
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_3"), vo1.levels_need);
|
||||
ui.com_ch.ch_text.text = str;
|
||||
ui.com_ch.progress.width = 590f * (GameHelper.GetLevel() - 1) / vo1.levels_need;
|
||||
ui.com_ch.progress.width = 656f * (GameHelper.GetLevel() - 1) / vo1.levels_need;
|
||||
ui.com_ch.progress_text.text = (GameHelper.GetLevel() - 1) + "/" + vo1.levels_need;
|
||||
}
|
||||
|
||||
@@ -573,8 +573,18 @@ namespace ChillConnect
|
||||
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_3"), vo1.levels_need);
|
||||
ui.com_ch.ch_text.text = str;
|
||||
ui.com_ch.progress.width = 590f * (GameHelper.GetLevel() - 1) / vo1.levels_need;
|
||||
ui.com_ch.progress_text.text = (GameHelper.GetLevel() - 1) + "/" + vo1.levels_need;
|
||||
ui.com_ch.progress.width = 656f * (GameHelper.GetLevel() - 1) / vo1.levels_need;
|
||||
if (GameHelper.GetLevel() > vo1.levels_need)
|
||||
{
|
||||
ui.com_ch.progress.width = 656f;
|
||||
ui.com_ch.progress_text.text = vo1.levels_need + "/" + vo1.levels_need;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.com_ch.progress.width = 590f * (GameHelper.GetLevel() - 1) / vo1.levels_need;
|
||||
ui.com_ch.progress_text.text = (GameHelper.GetLevel() - 1) + "/" + vo1.levels_need;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user