fix:1、UI更换(全部更换完)
This commit is contained in:
@@ -44,11 +44,11 @@ namespace LoveLegend
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.pack_close);
|
||||
int three_gift_got_index = SaveData.GetSaveObject().three_gift_got_index;
|
||||
if (GameHelper.isAutoPop && (three_gift_got_index <= (int)rewardState.day3))
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
|
||||
GameHelper.isAutoPop = false;
|
||||
}
|
||||
// if (GameHelper.isAutoPop && (three_gift_got_index <= (int)rewardState.day3))
|
||||
// {
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
|
||||
// GameHelper.isAutoPop = false;
|
||||
// }
|
||||
GameHelper.CallShowTurn();
|
||||
}
|
||||
|
||||
@@ -96,12 +96,14 @@ namespace LoveLegend
|
||||
//
|
||||
// TextureHelper.SetImgLoader(ui.lucky_pic.picture, fileName1, null, "Background/");
|
||||
|
||||
var fileName = GameHelper.GetBackgroundName(1);
|
||||
var task = new List<(GLoader loader, string fileName, Action<NTexture> callback, string folder, string localFolder)>();
|
||||
task.Add((ui.lucky_pic.picture, fileName, null, "Background/", FolderNames.BackgroundName));
|
||||
var fileName1 = GameHelper.GetBackgroundName(2);
|
||||
task.Add((ui.no_ad_pic.picture, fileName1, null, "Background/", FolderNames.BackgroundName));
|
||||
TextureHelper.SetImgLoaders(task);
|
||||
|
||||
|
||||
// var fileName = GameHelper.GetBackgroundName(1);
|
||||
// var task = new List<(GLoader loader, string fileName, Action<NTexture> callback, string folder, string localFolder)>();
|
||||
// task.Add((ui.lucky_pic.picture, fileName, null, "Background/", FolderNames.BackgroundName));
|
||||
// var fileName1 = GameHelper.GetBackgroundName(2);
|
||||
// task.Add((ui.no_ad_pic.picture, fileName1, null, "Background/", FolderNames.BackgroundName));
|
||||
// TextureHelper.SetImgLoaders(task);
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
@@ -215,6 +217,7 @@ namespace LoveLegend
|
||||
ui.text_time.SetVar("time", ConfigSystem.GetCommonConf().RemoveADsPackDuration.ToString()).FlushVars();
|
||||
|
||||
ui.btn_close.SetClick(CtrlCloseUI);
|
||||
ui.btn_luck_close.SetClick(CtrlCloseUI);
|
||||
ui.text_goldnum.text = "x" + GameHelper.Get101Str(gold_num);
|
||||
ui.text_backnum1.text = "x" + back_num;
|
||||
ui.text_outnum.text = "x" + out_num;
|
||||
|
||||
Reference in New Issue
Block a user