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,4 +1,4 @@
namespace FlowerPower
namespace LoveLegend
{
public class PrivacyCtrl : BaseCtrl
{
@@ -1,4 +1,4 @@
namespace FlowerPower
namespace LoveLegend
{
public class PrivacyModel : BaseModel
{
+48 -35
View File
@@ -1,4 +1,6 @@
namespace FlowerPower
using SGModule.MarkdownKit;
namespace LoveLegend
{
using System;
using FairyGUI;
@@ -9,11 +11,11 @@ namespace FlowerPower
{
private PrivacyUICtrl ctrl;
private PrivacyModel model;
private FGUI.PC_privacy.com_privacy ui;
private FGUI.ZM_Privacy_24.com_privacy ui;
private string content;
private bool isTerm;
private int isTerm;
public PrivacyUI(PrivacyUICtrl ctrl) : base(ctrl)
{
@@ -23,7 +25,7 @@ namespace FlowerPower
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "PC_privacy";
uiInfo.packageName = "ZM_Privacy_24";
uiInfo.assetName = "com_privacy";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = true;
@@ -44,17 +46,21 @@ namespace FlowerPower
protected override void OnBind()
{
ui = baseUI as FGUI.PC_privacy.com_privacy;
ui = baseUI as FGUI.ZM_Privacy_24.com_privacy;
}
protected override void OnOpenBefore(object args)
{
if (args != null)
{
isTerm = (bool)args;
isTerm = (int)args;
}
InitView();
ui.show.selectedIndex = isTerm != 2 ? 0 : 1;
}
protected override void OnOpen(object args)
@@ -66,35 +72,42 @@ namespace FlowerPower
private void InitView()
{
ui.title.text = isTerm ? "Terms of Service" : "Privacy Policy";
MarkdownTextManager.Instance.AddMarkdownToParentAsRichText(ui.text_list, isTerm ? "user" : "privacy",
new Color(0.4f, 0.22f, 0.11f), (b, state) =>
{
});
bool BisTerm = isTerm < 2 && isTerm == 1 ;
string title = BisTerm ? Language.GetContent("terms_service") : Language.GetContent("privacy");
ui.title.text = isTerm == 2 ? "View Credits" : title;
// LoadKit.Instance.LoadAsset<TextAsset>("TextAsset", isTerm ? "Term" : "Privacy", (txt) =>
// {
// content = txt.text;
//
// var str = getstr(content, 16327);
//
// foreach (var t in str)
// {
// var aRichTextField = new GRichTextField();
// aRichTextField.SetSize(GRoot.inst.width, 100);
// aRichTextField.color = new Color(0.24f, 0.31f, 0.42f, 1f);
// // aRichTextField.strokeColor = Color.black;
// // aRichTextField.stroke = 1;
// aRichTextField.textFormat.size = 44;
// aRichTextField.autoSize = AutoSizeType.Height;
// aRichTextField.AddRelation(GRoot.inst, RelationType.Width);
// aRichTextField.text = t;
// ui.text_list.AddChild(aRichTextField);
// }
//
// ui.text_list.EnsureBoundsCorrect();
// });
var color = new Color(255 / 255f, 232 / 255f, 217 / 255f, 1f);
MarkdownKit.Instance.ShowAsRichText(ui.text_list, BisTerm ? "user" : "privacy", color, (success, state) => {
if (success) {
Debug.Log("内容加载成功!当前状态:" + state);
}
else {
Debug.LogError("内容加载失败!当前状态:" + state);
}
}, 44);
// LoadKit.Instance.LoadAsset<TextAsset>("TextAsset", BisTerm ? "Term" : "Privacy", (txt) =>
// {
// content = txt.text;
//
// var str = getstr(content, 16327);
//
// foreach (var t in str)
// {
// var aRichTextField = new GRichTextField();
// aRichTextField.SetSize(GRoot.inst.width, 100);
// aRichTextField.color = new Color(0.64f, 0.36f, 0.12f, 1f);
// // aRichTextField.strokeColor = Color.black;
// // aRichTextField.stroke = 1;
// aRichTextField.textFormat.size = 44;
// aRichTextField.autoSize = AutoSizeType.Height;
// aRichTextField.AddRelation(GRoot.inst, RelationType.Width);
// aRichTextField.text = t;
// ui.text_list.AddChild(aRichTextField);
// }
//
// ui.text_list.EnsureBoundsCorrect();
// });
ui.btn_close.SetClick(CtrlCloseUI);
}
@@ -1,4 +1,4 @@
namespace FlowerPower
namespace LoveLegend
{
public class PrivacyUICtrl : BaseUICtrl
{