2using System.Collections.Generic;
45 public Dictionary<Chara, ButtonRoster>
buttons =
new Dictionary<Chara, ButtonRoster>();
74 extra.portrait =
false;
75 extra.onlyName =
true;
84 InvokeRepeating(
"Refresh", 0.2f, 0.2f);
101 layout.constraint = (extra.vertical ? GridLayoutGroup.Constraint.FixedColumnCount : GridLayoutGroup.Constraint.FixedRowCount);
102 layout.startCorner = (extra.reverse ? GridLayoutGroup.Corner.LowerRight : GridLayoutGroup.Corner.UpperLeft);
125 this.RebuildLayout();
134 Instance.dirty =
true;
160 UnityEngine.Object.DestroyImmediate(
buttons[c].gameObject);
185 m.
AddSlider(
"priority_hint", (
float a) => a.ToString() ??
"", b.
chara.
GetInt(19), delegate(
float a)
189 }, 0f, 20f, isInt:
true, hideOther:
false);
192 uIContextMenu.
AddSlider(
"width", (
float a) => a.ToString() ??
"",
extra.
width, delegate(
float a)
194 extra.width = (int)a;
196 }, 30f, 160f, isInt:
true);
197 uIContextMenu.
AddSlider(
"margin", (
float a) => a.ToString() ??
"",
extra.
margin, delegate(
float a)
199 extra.margin = (int)a;
201 }, -50f, 50f, isInt:
true);
227 m.
AddChild(
"style").
AddSlider(
"toggleButtonBG", (
float a) => a.ToString() ??
"", base.config.skin.button, delegate(
float a)
229 base.config.skin.button = (int)a;
231 }, 0f, base.config.skin.Skin.buttons.Count - 1, isInt:
true);
int GetInt(int id, int? defaultInt=null)
void SetInt(int id, int value=0)