fix:1、UI更换(全部更换完)
This commit is contained in:
@@ -422,6 +422,16 @@ namespace LoveLegend
|
||||
}
|
||||
}
|
||||
|
||||
int eggTime = SaveData.GetSaveObject().crush_egg_time;
|
||||
if (eggTime > GameHelper.GetNowTime())
|
||||
{
|
||||
ui.btn_egg.GetChild("times").visible = true;
|
||||
ui.btn_egg.GetChild("times").text = CommonHelper.TimeFormat(eggTime - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Minute);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.btn_egg.GetChild("times").visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -475,6 +485,7 @@ namespace LoveLegend
|
||||
// ui.btn_secret.SetClick(OnClickSecretAlbums);
|
||||
ui.btn_vip.SetClick(onClickVip);
|
||||
|
||||
ui.btn_egg.SetClick(OnClickEgg);
|
||||
btn_noads.SetClick(() =>
|
||||
{
|
||||
if (!SaveData.GetSaveObject().is_get_packreward && !SaveData.GetSaveObject().is_get_removead)
|
||||
@@ -711,7 +722,7 @@ namespace LoveLegend
|
||||
}
|
||||
private void OnClickSetting()
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MenuUI_Open, 1);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MenuUI_Open, 0);
|
||||
}
|
||||
private void OnClickPass()
|
||||
{
|
||||
@@ -754,6 +765,16 @@ namespace LoveLegend
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnClickEgg()
|
||||
{
|
||||
if (ui.btn_egg.GetChild("times").visible)
|
||||
{
|
||||
GameHelper.ShowTips("Waiting_cd", true);
|
||||
return;
|
||||
}
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.EggUI_Open);
|
||||
}
|
||||
private void onClickVip()
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.VipClubViewUI_Open);
|
||||
|
||||
Reference in New Issue
Block a user