2using System.Collections.Generic;
44 public Dictionary<Chara, ButtonRoster>
buttons =
new Dictionary<Chara, ButtonRoster>();
73 extra.portrait =
false;
74 extra.onlyName =
true;
83 InvokeRepeating(
"Refresh", 0.2f, 0.2f);
100 layout.constraint = (extra.vertical ? GridLayoutGroup.Constraint.FixedColumnCount : GridLayoutGroup.Constraint.FixedRowCount);
101 layout.startCorner = (extra.reverse ? GridLayoutGroup.Corner.LowerRight : GridLayoutGroup.Corner.UpperLeft);
116 this.RebuildLayout();
125 Instance.dirty =
true;
151 UnityEngine.Object.DestroyImmediate(
buttons[c].gameObject);
179 if (index >= 1 && index < count - 1)
195 uIContextMenu.
AddSlider(
"width", (
float a) => a.ToString() ??
"",
extra.
width, delegate(
float a)
197 extra.width = (int)a;
199 }, 30f, 160f, isInt:
true);
200 uIContextMenu.
AddSlider(
"margin", (
float a) => a.ToString() ??
"",
extra.
margin, delegate(
float a)
202 extra.margin = (int)a;
204 }, -50f, 50f, isInt:
true);
230 m.
AddChild(
"style").
AddSlider(
"toggleButtonBG", (
float a) => a.ToString() ??
"", base.config.skin.button, delegate(
float a)
232 base.config.skin.button = (int)a;
234 }, 0f, base.config.skin.Skin.buttons.Count - 1, isInt:
true);
void Replace(Chara c, int index)