com.soviby.unity.ui.ugui-to.../Assets/Editor/Windows/EditWindow.cs

56 lines
1.4 KiB
C#
Raw Normal View History

2024-10-28 16:31:38 +00:00
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEngine;
namespace UguiToolkit.Editor.Windows
{
public class EditWindow : BaseWindow<EditWindow>
{
[SerializeField, HideInInspector]
private bool m_showHierarchyOfEntityChange = false;
2024-12-03 05:05:13 +00:00
[SerializeField, HideInInspector]
private bool m_showBackground = true;
[LabelText("Hierarchy<68>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ"), ShowInInspector]
private bool ShowHierarchyOfEntity
2024-10-28 16:31:38 +00:00
{
get => m_showHierarchyOfEntityChange;
set
{
m_showHierarchyOfEntityChange = value;
2024-10-29 17:51:06 +00:00
GlobalManager.Instance.showHierarchyOfEntityChanged?.Invoke(m_showHierarchyOfEntityChange);
2024-10-28 16:31:38 +00:00
}
}
2024-12-03 05:05:13 +00:00
[LabelText("<22><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ"), ShowInInspector]
private bool ShowBackground
{
get => m_showBackground;
set
{
m_showBackground = value;
GlobalManager.Instance.showBackgroundChanged?.Invoke(m_showBackground);
}
}
[Button("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Text")]
private void CreateAllTextEntity()
{
GlobalManager.Instance.createAllTextEntity?.Invoke();
}
2024-10-28 16:31:38 +00:00
public override string GettitleContent()
{
return "<22><><EFBFBD>ֱ༭<D6B1><E0BCAD><EFBFBD><EFBFBD>";
}
public override void Init(WindowArgs args = null)
{
}
}
}