|
@@ -4,12 +4,9 @@
|
|
|
/// 该脚本由模板创建
|
|
|
/// created by cb 2024
|
|
|
|
|
|
-using Codice.CM.Client.Differences;
|
|
|
using FairyGUI;
|
|
|
-using FL.Data;
|
|
|
using System;
|
|
|
using XGame.Framework.UI;
|
|
|
-using static Codice.Client.BaseCommands.Import.Commit;
|
|
|
|
|
|
namespace FL.FGUI
|
|
|
{
|
|
@@ -18,7 +15,7 @@ namespace FL.FGUI
|
|
|
public int limitWordCount; // 限制修改的字数
|
|
|
public string title; // 改名标题
|
|
|
public string tipsDesc; // 提示文本
|
|
|
- public Action<string,bool> renameCallback;//改名回调函数
|
|
|
+ public Action<string, bool> renameCallback;//改名回调函数
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -79,8 +76,8 @@ namespace FL.FGUI
|
|
|
_bChange = false;
|
|
|
_rename = string.Empty;
|
|
|
_renameCallback = param.renameCallback;
|
|
|
- if (!string.IsNullOrEmpty(param.title))VM.PopWin.title = param.title;
|
|
|
- if (!string.IsNullOrEmpty(param.tipsDesc))VM.TipsDescLabel.text = param.tipsDesc;
|
|
|
+ if (!string.IsNullOrEmpty(param.title)) VM.PopWin.title = param.title;
|
|
|
+ if (!string.IsNullOrEmpty(param.tipsDesc)) VM.TipsDescLabel.text = param.tipsDesc;
|
|
|
// 设置最大字数限制
|
|
|
if (param.limitWordCount > 0)
|
|
|
{
|