fix:1、UI更换(全部更换完)
This commit is contained in:
@@ -135,7 +135,7 @@ namespace LoveLegend
|
||||
btn_sign btnSign = btnSignList[index];;
|
||||
btnSign.state.selectedIndex = 0;
|
||||
btnSign.title = signList[index].id + "";
|
||||
ui.btn_collect.state.selectedIndex = 1;
|
||||
|
||||
btnSign.touchable = false;
|
||||
btnSign.reward_num.text = GameHelper.Get101Str(signList[index].quantity[0]);
|
||||
|
||||
@@ -149,6 +149,9 @@ namespace LoveLegend
|
||||
var isToday = true;
|
||||
if (signDays > 0)
|
||||
isToday = GameHelper.InToday(DataMgr.SignState.Value[signDays - 1], 0, true);
|
||||
|
||||
ui.btn_collect.state.selectedIndex = index == signDays && !(signDays > 0 && isToday)? 0 : 1;
|
||||
|
||||
if (index < signDays)
|
||||
{
|
||||
btnSign.state.selectedIndex = 3;
|
||||
@@ -167,7 +170,6 @@ namespace LoveLegend
|
||||
btnSign.isCloseClickAnim = true;
|
||||
// btnSign.status.selectedIndex = btn_sign.State_today;
|
||||
|
||||
ui.btn_collect.state.selectedIndex = 0;
|
||||
ui.btn_collect.SetClick(() =>
|
||||
{
|
||||
SetBtnClick(index);
|
||||
|
||||
Reference in New Issue
Block a user