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
157 i.GetComponent<Image>().SetAlpha(1f);
166 Zone.forceRegenerate =
true;
188 EClass.scene.ToggleHighlightArea();
192 EClass.scene.ToggleRoof();
217 EClass.game.config.backDrawAlpha = (int)b;
218 }, 0f, 50f, isInt:
true, hideOther:
false);
227 EClass.world.date.day = (int)b - 1;
228 EClass.world.date.AdvanceDay();
232 }, 1f, 30f, isInt:
true, hideOther:
false);
237 EClass.game.config.animeSpeed = (int)b;
238 }, 0f, 100f, isInt:
true, hideOther:
false);
264 uIContextMenu3.AddSlider(
"slopeMod", (
float a) => a.ToString() ??
"", conf.slopeMod, delegate(
float b)
266 EClass.game.config.slopeMod = (int)b;
268 }, 0f, 500f, isInt:
true, hideOther:
false);
274 i.hideOnMouseLeave =
false;
278 i.AddSlider(
"sliderTime", (
float a) => a.ToString() ??
"", d.hour, delegate(
float b)
281 if (d.hour != (
int)b)
285 EClass.world.weather.SetCondition(currentCondition);
290 }, 0f, 23f, isInt:
true, hideOther:
false);
292 void AddSliderMonth()
294 i.AddSlider(
"sliderMonth", (
float a) => a.ToString() ??
"",
EClass.
world.
date.
month, delegate(
float b)
296 if (d.month != (
int)b)
298 d.month = (int)b - 1;
306 }, 1f, 12f, isInt:
true, hideOther:
false);
308 void AddSliderWeather()
313 }, 0f, 7f, isInt:
true, hideOther:
false);
317 i.AddToggle(
"alwaysTilt".lang() + (isRegion ?
"(Region)" :
""), isRegion ? conf.tiltRegion : conf.tilt, delegate
319 EClass.scene.ToggleTilt();
321 i.AddSlider(
"tiltPower", (
float a) => a.ToString() ??
"", isRegion ? conf.tiltPowerRegion : conf.tiltPower, delegate(
float b)
325 conf.tiltPowerRegion = (int)b;
329 conf.tiltPower = (int)b;
331 EClass.scene.camSupport.tiltShift.blurArea = 0.1f * b;
332 }, 0f, 150f, isInt:
true, hideOther:
false);
334 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)
void ToggleBirdView(bool sound=true)
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Condition _currentCondition