bingo b面修改
This commit is contained in:
@@ -50,7 +50,7 @@ namespace BingoBrain
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
WebviewManager.Instance.SetDarkThough(false);
|
||||
WebviewManager.Instance.SetDarkThough(false);
|
||||
Audio.Instance.PlayDynamicEffect("pop_open");
|
||||
ui.list_task.itemRenderer = ItemRenderer;
|
||||
ui.list_task.numItems = PreferencesMgr.Instance.ActiveMissions.Count;
|
||||
@@ -76,7 +76,7 @@ namespace BingoBrain
|
||||
if (GameHelper.IsGiftSwitch()) _Singletask.gift.selectedIndex = 1;
|
||||
Task task = PreferencesMgr.Instance.ActiveMissions[index];
|
||||
Debug.Log(JsonConvert.SerializeObject(PreferencesMgr.Instance.ActiveMissions));
|
||||
TaskList taskVO = GameHelper.GetConfig<TaskListModel>().GetData(task.Id);
|
||||
TaskList taskVO = GameHelper.GetConfig<TaskListModel>().GetData(task.Id);
|
||||
_Singletask.text_taskname.text = taskVO.taskName.Replace("%s", taskVO.taskNum.ToString());
|
||||
string val = string.Empty;
|
||||
if (task.RewardId == 101)
|
||||
@@ -102,7 +102,7 @@ namespace BingoBrain
|
||||
|
||||
// TextureHelper.GetItemIcon(taskVO.rewardID, tx => { _Singletask.loader_reward.texture = tx; });
|
||||
_Singletask.cont_collect.selectedIndex = com_Singletask.Collect_none;
|
||||
|
||||
_Singletask.text_progress.text = task.Progress + "/" + task.MaxProgress;
|
||||
if (task.IsReward)
|
||||
{
|
||||
_Singletask.com_task_pb.TweenValue(task.MaxProgress, 0.3f);
|
||||
@@ -124,7 +124,10 @@ namespace BingoBrain
|
||||
else
|
||||
{
|
||||
_Singletask.btn_task.cont_button.selectedIndex = btn_task.Button_num;
|
||||
_Singletask.btn_task.text_num.text = task.Progress + "/" + task.MaxProgress;
|
||||
|
||||
// _Singletask.btn_task.text_num.text = task.Progress + "/" + task.MaxProgress;
|
||||
|
||||
|
||||
_Singletask.com_task_pb.TweenValue(task.Progress, 0.3f);
|
||||
_Singletask.btn_task.SetClick(OnClickGoPlay);
|
||||
}
|
||||
@@ -184,7 +187,7 @@ namespace BingoBrain
|
||||
private void OnClickGoPlay()
|
||||
{
|
||||
CtrlCloseUI();
|
||||
GameDispatcher.Instance.Dispatch(BingoInfo.MainTab, 0);
|
||||
GameDispatcher.Instance.Dispatch(BingoInfo.MainTab,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user