better-ui-manager #2

Merged
BitterSmile merged 25 commits from better-ui-manager into main 2023-09-02 14:34:16 +02:00
2 changed files with 1 additions and 7 deletions
Showing only changes of commit 1e66136bfc - Show all commits

View File

@ -27,8 +27,6 @@ namespace NEG.UI.UnityUi.Buttons
public TMP_Text Text => text;
private bool isHovered;
[SerializeField, Self] private Button button;
[SerializeField, Child(Flag.Optional)] private TMP_Text text;
[SerializeField, Child(Flag.Optional)] private Image icon;
@ -36,7 +34,7 @@ namespace NEG.UI.UnityUi.Buttons
[SerializeField] private ButtonSettings groupButtonSettings;
//[SerializeField, Self(Flag.Optional)] private ButtonSettingOverride overrideSettings;
BitterSmile marked this conversation as resolved
Review

remove

remove
private Dictionary<string, ButtonElementBehaviour> behaviours = new Dictionary<string, ButtonElementBehaviour>();
private readonly Dictionary<string, ButtonElementBehaviour> behaviours = new Dictionary<string, ButtonElementBehaviour>();
public virtual void OnSelect(BaseEventData eventData) => OnSelected?.Invoke(eventData is SilentEventData);
@ -91,7 +89,6 @@ namespace NEG.UI.UnityUi.Buttons
protected virtual void OnClicked()
{
OnDeselect(null);
isHovered = false;
OnButtonPressed?.Invoke();
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: c431f6df68cb4163b9764b6a87abd31a
timeCreated: 1683915618