fix:1、更换项目,使用winter来创建

This commit is contained in:
2026-04-22 11:13:16 +08:00
parent 173cfb2dc9
commit 83ff9f71ad
7375 changed files with 209752 additions and 157557 deletions
@@ -1,17 +1,13 @@
using UnityEngine;
using FairyGUI;
using IgnoreOPS;
using System.Collections.Generic;
using DG.Tweening;
namespace FlowerPower
namespace LoveLegend
{
public class GoldRewardUI : BaseUI
{
private GoldRewardUICtrl ctrl;
private GoldRewardModel model;
private FGUI.P10_reward.com_goldreward ui;
private FGUI.ZM_AddCell_12.com_goldreward ui;
public GoldRewardUI(GoldRewardUICtrl ctrl) : base(ctrl)
{
@@ -21,7 +17,7 @@ namespace FlowerPower
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "P10_reward";
uiInfo.packageName = "ZM_AddCell_12";
uiInfo.assetName = "com_goldreward";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = false;
@@ -41,12 +37,12 @@ namespace FlowerPower
protected override void OnBind()
{
ui = baseUI as FGUI.P10_reward.com_goldreward;
ui = baseUI as FGUI.ZM_AddCell_12.com_goldreward;
}
protected override void OnOpenBefore(object args)
{
turn_list = ConfigSystem.GetConfig<TurnOffRewardsModel>().dataList;
turn_list = ConfigSystem.GetConfig<TurnOffRewards>();
InitView();
ui.btn_close.SetClick(() =>
{
@@ -55,6 +51,7 @@ namespace FlowerPower
});
}
private List<TurnOffRewards> turn_list;
protected override void OnOpen(object args)
{
}
@@ -80,7 +77,7 @@ namespace FlowerPower
#endregion
//初始化页面逻辑
private void InitView()
private void InitView()
{
int weight_all = 0;
float max_gold = 0;
@@ -109,10 +106,10 @@ namespace FlowerPower
}
if (reward == null) reward = turn_list[0];
ui.text_goldnum.text = max_gold.ToString();
if (GameHelper.IsGiftSwitch() && ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1)
{
(ui.btn_receive.GetChild("img_saveingpot") as GImage).visible = true;
}
// if (GameHelper.IsGiftSwitch() && ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1)
// {
// (ui.btn_receive.GetChild("img_saveingpot") as GImage).visible = true;
// }
ui.btn_receive.SetClick(() =>
{
GameHelper.ShowVideoAd("TurnOffRewards", isSuccess =>
@@ -122,13 +119,13 @@ namespace FlowerPower
ui.btn_receive.SetClick(() => { });
decimal gold = (decimal)reward.quantity;
var start = GameHelper.GetUICenterPosition(ui.text_goldnum);
var end = GameHelper.GetUICenterPosition(ui.node_end);
var end = GameHelper.GetUICenterPosition(ui.end_point);
var rewardData = new RewardData();
var rewardSingleData = new RewardSingleData(101, gold, RewardOrigin.AdTask)
{
startPosition = start,
endPosition = new Vector2(end.x - 150, end.y - 136)
endPosition = new Vector2(end.x, end.y)
};
rewardData.AddReward(rewardSingleData);
rewardData.displayType = RewardDisplayType.RewardFly | RewardDisplayType.ValueChange;
@@ -152,4 +149,4 @@ namespace FlowerPower
}
}
}
}