33 layout =
Util.Instantiate<LayoutGroup>(
"UI/Window/Base/Element/WindowMenu" +
id,
window);
50 header.SetActive(enable:
false);
54 public UIButton AddButton(
string idLang, Action<UIButton> onClick, Sprite sprite =
null,
string idButton =
"Default")
58 b.onClick.AddListener(delegate
62 b.mainText.text = idLang.lang();
65 header.SetActive(enable:
true);
70 public UIButton AddButtonSimple(Func<string> funcText, Action<UIButton> onClick =
null, Sprite sprite =
null,
string idButton =
"Simple")
74 b.onClick.AddListener(delegate
80 b.subText.text = funcText().lang();
83 b.subText.text = funcText().lang();
86 header.SetActive(enable:
true);
91 public UIButton AddButton2Line(
string idLang, Func<string> funcText, Action<UIButton> onClick =
null, Sprite sprite =
null,
string idButton =
"2line")
95 b.onClick.AddListener(delegate
101 b.subText.text = funcText().lang();
104 b.mainText.text = idLang.lang();
105 b.subText.text = funcText().lang();
108 header.SetActive(enable:
true);
119 uIButton.icon.sprite = sprite;
120 uIButton.
icon.SetActive(enable:
true);
124 header.SetActive(enable:
true);
static SkinRootStatic CurrentSkin