13 public override string Name => (
"m_" +
id).lang();
15 public override string TextTip =>
id.lang();
21 if (!(
id ==
"system"))
25 return "icon_m_system";
35 return base.Transition;
37 return Selectable.Transition.None;
67 public static void Show(
string id, Vector3 pos)
69 string menuName = ((
id ==
"system") ?
"ContextSystem" :
"ContextMenu");
74 if (!(
id ==
"mapTool"))
83 uIContextMenu.
AddButton(
"LayerConsole", delegate
87 uIContextMenu.
AddButton(
"LayerCredit", delegate
91 uIContextMenu.
AddButton(
"announce", delegate
99 uIContextMenu.
AddButton(
"hideUI", delegate
105 uIContextMenu2.
AddButton(
"LayerMod", delegate
109 uIContextMenu2.
AddButton(
"LayerTextureViewer", delegate
113 uIContextMenu2.
AddButton(
"OpenCustomFolder", delegate
117 if (ModUtil.contextMenuProxies.Count > 0)
122 PopulateMenu(parent2, contextMenuProxy);
165 i.GetComponent<Image>().SetAlpha(1f);
174 Zone.forceRegenerate =
true;
196 EClass.scene.ToggleHighlightArea();
200 EClass.scene.ToggleRoof();
225 EClass.game.config.backDrawAlpha = (int)b;
226 }, 0f, 50f, isInt:
true, hideOther:
false);
235 EClass.world.date.day = (int)b - 1;
236 EClass.world.date.AdvanceDay();
240 }, 1f, 30f, isInt:
true, hideOther:
false);
245 EClass.game.config.animeSpeed = (int)b;
246 }, 0f, 100f, isInt:
true, hideOther:
false);
272 uIContextMenu3.AddSlider(
"slopeMod", (
float a) => a.ToString() ??
"", conf.slopeMod, delegate(
float b)
274 EClass.game.config.slopeMod = (int)b;
276 }, 0f, 500f, isInt:
true, hideOther:
false);
282 i.hideOnMouseLeave =
false;
286 i.AddSlider(
"sliderTime", (
float a) => a.ToString() ??
"", d.hour, delegate(
float b)
289 if (d.hour != (
int)b)
293 EClass.world.weather.SetCondition(currentCondition);
298 }, 0f, 23f, isInt:
true, hideOther:
false);
300 void AddSliderMonth()
302 i.AddSlider(
"sliderMonth", (
float a) => a.ToString() ??
"",
EClass.
world.
date.
month, delegate(
float b)
304 if (d.month != (
int)b)
306 d.month = (int)b - 1;
314 }, 1f, 12f, isInt:
true, hideOther:
false);
316 void AddSliderWeather()
321 }, 0f, 7f, isInt:
true, hideOther:
false);
325 i.AddToggle(
"alwaysTilt".lang() + (isRegion ?
"(Region)" :
""), isRegion ? conf.tiltRegion : conf.tilt, delegate
327 EClass.scene.ToggleTilt();
329 i.AddSlider(
"tiltPower", (
float a) => a.ToString() ??
"", isRegion ? conf.tiltPowerRegion : conf.tiltPower, delegate(
float b)
333 conf.tiltPowerRegion = (int)b;
337 conf.tiltPower = (int)b;
339 EClass.scene.camSupport.tiltShift.blurArea = 0.1f * b;
340 }, 0f, 150f, isInt:
true, hideOther:
false);
350 PopulateMenu(parent3, child);
357 static void Toggle(ref
bool flag)
void RefreshFaithElement()
static BaseGameScreen screen
void GotoTitle(bool showDialog=true)
bool Save(bool isAutoSave=false, bool silent=false)
override void OnHover(UIButton b)
static void Show(string id, Vector3 pos)
override Selectable.Transition Transition
override string pathSprite
override void OnClick(UIButton b)
override void OnShowContextMenu(UIContextMenu m)
static void Toggle(string idFile, string idTopic=null)
void RefreshFOV(int x, int z, int radius=6, bool recalculate=false)
virtual void OnChangeHour()
void ToggleBirdView(bool sound=true)
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Condition _currentCondition