This commit is contained in:
Bob.Song
2026-03-23 20:19:38 +08:00
parent 9685a415d3
commit 287564c97c
71 changed files with 3714 additions and 7065 deletions

View File

@@ -304,8 +304,7 @@ MonoBehaviour:
meshTag:
useOpacity: 0
DisplayOption: Skin tint
hsvSliders: {fileID: 6009453191906069620, guid: 8c4eb5532eb626648a191f77d01cea92,
type: 3}
hsvSliders: {fileID: 6009453191906069620, guid: 8c4eb5532eb626648a191f77d01cea92, type: 3}
pickerIcon: {fileID: 1681435600817548917}
--- !u!114 &9041225366029120964
MonoBehaviour:
@@ -328,123 +327,99 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 8383552474862448989}
m_Modifications:
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_text
value: Skin tint
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_fontSize
value: 14
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608093, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_fontSizeBase
value: 14
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_SizeDelta.x
value: 53.21
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchoredPosition.x
value: 26.605
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_AnchoredPosition.y
value: -10
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6168778422360608095, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
- target: {fileID: 6168778422360608095, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
propertyPath: m_Name
value: Text1
objectReference: {fileID: 0}
@@ -455,7 +430,6 @@ PrefabInstance:
m_SourcePrefab: {fileID: 100100000, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
--- !u!224 &7932715525330271299 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734,
type: 3}
m_CorrespondingSourceObject: {fileID: 6168778422360608094, guid: 51685a711ed5dc4479e870aa8af58734, type: 3}
m_PrefabInstance: {fileID: 4291171743431618845}
m_PrefabAsset: {fileID: 0}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@@ -14,16 +14,26 @@ namespace NBF
public override string UIPackName => "Common";
public override string UIResName => "MessageBox";
[AutoFind(Name = "style")]
public Controller style;
[AutoFind(Name = "back_full")]
public GImage back_full;
[AutoFind(Name = "back")]
public GImage back;
[AutoFind(Name = "back2")]
public GImage back2;
[AutoFind(Name = "TextTitle")]
public GTextField TextTitle;
[AutoFind(Name = "BtnConfirm")]
public GButton BtnConfirm;
[AutoFind(Name = "BtnClose")]
public GButton BtnClose;
[AutoFind(Name = "t0")]
public Transition t0;
[AutoFind(Name = "TextContent")]
public GTextField TextContent;
[AutoFind(Name = "BtnConfirm1")]
public GButton BtnConfirm1;
[AutoFind(Name = "BtnCancel")]
public GButton BtnCancel;
[AutoFind(Name = "BtnConfirm2")]
public GButton BtnConfirm2;
[AutoFind(Name = "show")]
public Transition show;
public override string[] GetDependPackages(){ return new string[] {}; }
public static void Show(object param = null){ UI.Inst.OpenUI<MessageBox>(param); }

View File

@@ -54,11 +54,12 @@ namespace NBF
protected override void OnShow()
{
// TextTitle.SetLanguage(_title);
BtnConfirm.SetLanguage(_confirmText);
// BtnCancel.SetLanguage(_cancelText);
BtnConfirm1.SetLanguage(_confirmText);
BtnConfirm2.SetLanguage(_confirmText);
BtnCancel.SetLanguage(_cancelText);
// MessageStyle.selectedIndex = _style;
TextTitle.SetLanguage(_content);
TextTitle.SetLanguage(_title);
TextContent.SetLanguage(_content);
}
private void OnUICanceled(string action)
@@ -84,7 +85,7 @@ namespace NBF
private void OnClick(GComponent btn)
{
ClosePanel(btn == BtnConfirm);
ClosePanel(btn == BtnConfirm1 || btn == BtnConfirm2);
}
private void ClosePanel(bool ret)

30
Assets/Scripts/UI/TestPanel.Designer.cs generated Normal file
View File

@@ -0,0 +1,30 @@
/**本脚本为自动生成每次生成会覆盖请勿手动修改生成插件文档及项目地址https://git.whoot.com/whoot-games/whoot.fguieditorplugin**/
using FairyGUI;
using FairyGUI.Utils;
using NBC;
using System.Collections.Generic;
namespace NBF
{
/// <summary> </summary>
public partial class TestPanel
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
public override string UIPackName => "Common";
public override string UIResName => "TestPanel";
[AutoFind(Name = "MainMenu")]
public MainMenu MainMenu;
[AutoFind(Name = "SubMenu")]
public CommonSubMenu SubMenu;
public override string[] GetDependPackages(){ return new string[] {}; }
public static void Show(object param = null){ UI.Inst.OpenUI<TestPanel>(param); }
public static void Hide(){ UI.Inst.HideUI<TestPanel>(); }
public static void Del(){ UI.Inst.DestroyUI<TestPanel>(); }
}
}

View File

@@ -0,0 +1,11 @@
// 本脚本只在不存在时会生成一次。已存在不会再次生成覆盖
using UnityEngine;
using NBC;
namespace NBF
{
public partial class TestPanel : UIPanel
{
}
}