fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -5,13 +5,13 @@ using FutureCore;
|
||||
using FairyGUI;
|
||||
using DG.Tweening;
|
||||
|
||||
namespace FlowerPower
|
||||
namespace LoveLegend
|
||||
{
|
||||
public class AdcomingUI : BaseUI
|
||||
{
|
||||
private AdcomingUICtrl ctrl;
|
||||
private AdcomingModel model;
|
||||
private FGUI.P17_PackAward.com_adcoming ui;
|
||||
private FGUI.ZM_Pack_16.com_adcoming ui;
|
||||
|
||||
public AdcomingUI(AdcomingUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
@@ -21,7 +21,7 @@ namespace FlowerPower
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "P17_PackAward";
|
||||
uiInfo.packageName = "ZM_Pack_16";
|
||||
uiInfo.assetName = "com_adcoming";
|
||||
uiInfo.layerType = UILayerType.Popup;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
@@ -41,7 +41,7 @@ namespace FlowerPower
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.P17_PackAward.com_adcoming;
|
||||
ui = baseUI as FGUI.ZM_Pack_16.com_adcoming;
|
||||
}
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
@@ -79,33 +79,21 @@ namespace FlowerPower
|
||||
{
|
||||
ui.time_text.text = time.ToString();
|
||||
|
||||
tweer = DOVirtual.Float(time, 0, time, value =>
|
||||
{
|
||||
ui.time_text.text = ((int)value).ToString();
|
||||
float progress = Mathf.InverseLerp(time, 0, value);
|
||||
ui.img_progress.fillAmount = progress;
|
||||
}).SetEase(Ease.Linear);
|
||||
|
||||
tweer = DOVirtual.Float(time, 0, time, value => { ui.time_text.text = ((int)value).ToString(); });
|
||||
tweer.onComplete += () =>
|
||||
{
|
||||
CtrlCloseUI();
|
||||
GameHelper.ShowInterstitial("interstitial_gameend");
|
||||
};
|
||||
|
||||
tweer2 = DOVirtual.Float(time, 0, time, value => { ui.img_progress.text = ((int)value).ToString(); });
|
||||
|
||||
ui.btn_removead.SetClick(() =>
|
||||
{
|
||||
PackRewardData param = new PackRewardData();
|
||||
param.isAutoPop = false;
|
||||
param.isNeedScroll = true;
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open, param);
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LuckyPackUI_Open,true);
|
||||
tweer.Pause();
|
||||
});
|
||||
|
||||
}
|
||||
private Tween tweer;
|
||||
private Tween tweer2;
|
||||
void playAni(object a)
|
||||
{
|
||||
tweer.Play();
|
||||
|
||||
Reference in New Issue
Block a user