1using System.Collections.Generic;
9 public List<BaseNotification>
list =
new List<BaseNotification>();
29 layout.RebuildLayout(recursive:
true);
32 layout2.RebuildLayout(recursive:
true);
44 InvokeRepeating(
"_RefreshAll", 0.1f, 0.2f);
72 layout2.RebuildLayout(recursive:
true);
87 itemNotice.
button.onClick.AddListener(delegate
91 BaseCore.Instance.WaitForEndOfFrame(n.OnClick);
105 itemNotice.button.icon.sprite = sprite;
108 itemNotice.button.tooltip.enable = n.onShowTooltip !=
null;
115 layoutGroup.RebuildLayout(recursive:
true);
125 Object.DestroyImmediate(n.
item.gameObject);
131 layout.childAlignment = (
flip ? TextAnchor.MiddleRight : TextAnchor.MiddleLeft);
132 this.Rect().pivot =
new Vector2(
flip ? 1 : 0, this.Rect().pivot.y);
137 m.
AddChild(
"style").
AddSlider(
"toggleButtonBG", (
float a) => a.ToString() ??
"", base.config.skin.button, delegate(
float a)
139 base.config.skin.button = (int)a;
141 }, 0f, base.config.skin.Skin.buttons.Count - 1, isInt:
true);
148 int y = button.
size.y;
151 RectTransform rectTransform =
item.item.Rect();
152 rectTransform.sizeDelta =
new Vector2(rectTransform.sizeDelta.x, y);
154 layout.spacing = button.spacing.y;
virtual ItemNotice GetMold()
virtual Action< UITooltip > onShowTooltip
virtual void OnInstantiate()
virtual LayoutGroup GetLayoutGroup()
virtual bool Interactable