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,6 +1,6 @@
namespace FlowerPower
namespace LoveLegend
{
public class PersonViewCtrl : BaseCtrl
{
@@ -1,6 +1,6 @@
using System.Linq;
namespace FlowerPower
namespace LoveLegend
{
public class PersonViewModel : BaseModel
{
@@ -1,13 +1,11 @@
using System;
using FairyGUI;
using FGUI.P01_Common;
using FGUI.P04_Menu;
using FGUI.ZM_Common_01;
using FGUI.ZM_Setting_07;
using IgnoreOPS;
// using FGUI.G006_menu;
using UnityEngine;
namespace FlowerPower
namespace LoveLegend
{
public class PersonViewUI : BaseUI
{
@@ -16,7 +14,7 @@ namespace FlowerPower
private int selectIndex = -1;
private int total_item;
private FGUI.P04_Menu.com_person ui;
private FGUI.ZM_Setting_07.com_person ui;
public PersonViewUI(PersonViewUICtrl ctrl) : base(ctrl)
{
@@ -26,7 +24,7 @@ namespace FlowerPower
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "P04_Menu";
uiInfo.packageName = "ZM_Setting_07";
uiInfo.assetName = "com_person";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = false;
@@ -44,13 +42,13 @@ namespace FlowerPower
protected override void OnClose()
{
CommonHelper.FadeOut(ui);
UnityManager.ShezhiACT(true);
}
protected override void OnBind()
{
ui = baseUI as FGUI.P04_Menu.com_person;
ui = baseUI as FGUI.ZM_Setting_07.com_person;
}
protected override void OnOpenBefore(object args)
@@ -60,11 +58,11 @@ namespace FlowerPower
// ui.title.y += Screen.safeArea.y;
// }
total_item = 8;
selectIndex = PreferencesMgr.Instance.PlayerAvatarId;
selectIndex = DataMgr.PlayerAvatarId.Value;
UnityManager.ShezhiACT(false);
InitView();
}
@@ -117,7 +115,7 @@ namespace FlowerPower
{
var currentIndex = index + 1;
var head = items as btn_item_head;
var imgHead = head.head as btn_head;
var imgHead = head.head as head;
TextureHelper.SetAvatarToLoader(currentIndex, imgHead.load_avatar);
head.head_select.selectedIndex = selectIndex == currentIndex
@@ -138,10 +136,11 @@ namespace FlowerPower
{
if (selectIndex != -1)
{
PreferencesMgr.Instance.PlayerAvatarId = selectIndex;
DataMgr.PlayerAvatarId.Value = selectIndex;
}
SaveName();
CtrlCloseUI();
}
@@ -151,7 +150,7 @@ namespace FlowerPower
if (string.IsNullOrEmpty(name) || name.IsNullOrWhiteSpace())
{
GameHelper.ShowTips("The input cannot be null", true);
GameHelper.ShowTips("empty_input", true);
return;
}
@@ -160,10 +159,11 @@ namespace FlowerPower
// return;
// }
if (name.Equals(PreferencesMgr.Instance.PlayerName)) return;
if (name.Equals(DataMgr.PlayerName.Value)) return;
GameHelper.ShowTips($"Name changed successfully");
PreferencesMgr.Instance.PlayerName = name;
GameHelper.ShowTips($"save_name",true);
DataMgr.PlayerName.Value = name;
}
}
}
}
@@ -1,5 +1,5 @@
namespace FlowerPower
namespace LoveLegend
{
public class PersonViewUICtrl : BaseUICtrl
{