9 public override object CreateExtra()
16 public override bool AlwaysBottom
26 public override Type SetSiblingAfter
45 public override void OnActivate()
48 this.OnChangeResolution();
52 public override void OnSetContextMenu(UIContextMenu m)
54 SkinConfig skin = base.config.skin;
55 UIContextMenu uicontextMenu = m.AddChild(
"setting");
56 uicontextMenu.AddSlider(
"width", (
float a) => a.ToString() ??
"", (
float)
this.extra.width, delegate(
float a)
58 this.extra.width = (int)a;
59 this.OnChangeResolution();
60 }, 10f, 100f,
true,
true,
false);
61 uicontextMenu.AddSlider(
"height", (
float a) => a.ToString() ??
"", (
float)
this.extra.height, delegate(
float a)
63 this.extra.height = (int)a;
64 this.OnChangeResolution();
65 }, 5f, 300f,
true,
true,
false);
66 uicontextMenu.AddToggle(
"subBar", this.extra.subBar, delegate(
bool a)
68 this.extra.subBar = !this.extra.subBar;
71 base.SetBaseContextMenu(m);
77 this.imageSubBar.SetActive(this.extra.subBar);
81 public override void OnChangeResolution()
83 base.OnChangeResolution();
84 this.Rect().sizeDelta =
new Vector2(0.01f * (
float)Screen.width * (
float)
this.extra.width /
EMono.core.uiScale + 2f, (
float)(
this.extra.height + 10));
88 public Image imageSubBar;