68 {
69 string menuName = ((id == "system") ? "ContextSystem" : "ContextMenu");
74 if (!(id == "mapTool"))
75 {
76 if (id == "system")
77 {
80 {
82 });
83 uIContextMenu.
AddButton(
"LayerConsole", delegate
84 {
86 });
87 uIContextMenu.
AddButton(
"LayerCredit", delegate
88 {
90 });
91 uIContextMenu.
AddButton(
"announce", delegate
92 {
94 });
96 {
98 });
99 uIContextMenu.
AddButton(
"hideUI", delegate
100 {
101 SE.ClickGeneral();
103 });
105 uIContextMenu2.
AddButton(
"LayerMod", delegate
106 {
108 });
109 uIContextMenu2.
AddButton(
"LayerTextureViewer", delegate
110 {
112 });
113 uIContextMenu2.
AddButton(
"OpenCustomFolder", delegate
114 {
116 });
117 if (ModUtil.contextMenuProxies.Count > 0)
118 {
121 {
122 PopulateMenu(parent2, contextMenuProxy);
123 }
124 }
127 {
129 });
131 {
133 });
135 {
137 });
139 {
141 });
144 {
146 });
149 {
151 {
153 });
155 {
157 });
158 }
161 {
163 });
165 i.GetComponent<Image>().SetAlpha(1f);
166 }
167 }
169 {
171 {
173 {
174 Zone.forceRegenerate = true;
176 });
179 AddSliderMonth();
180 AddSliderHour();
181 AddSliderWeather();
182 }
183 }
184 else
185 {
187 {
189 {
191 });
192 }
193 AddTilt();
195 {
196 EClass.scene.ToggleHighlightArea();
197 });
199 {
200 EClass.scene.ToggleRoof();
201 });
203 {
205 {
208 }
210 {
212 {
215 }
216 else
217 {
219 {
222 }
224 {
225 EClass.game.config.backDrawAlpha = (int)b;
226 }, 0f, 50f, isInt: true, hideOther: false);
228 {
230 AddSliderMonth();
232 {
234 {
235 EClass.world.date.day = (int)b - 1;
236 EClass.world.date.AdvanceDay();
237 }
240 }, 1f, 30f, isInt: true, hideOther: false);
241 AddSliderHour();
242 AddSliderWeather();
244 {
245 EClass.game.config.animeSpeed = (int)b;
246 }, 0f, 100f, isInt: true, hideOther: false);
249 {
251 });
253 {
255 });
257 {
259 });
261 {
263 });
265 {
267 });
269 {
271 });
272 uIContextMenu3.
AddSlider(
"slopeMod", (
float a) => a.ToString() ??
"", conf.
slopeMod, delegate(
float b)
273 {
274 EClass.game.config.slopeMod = (int)b;
276 }, 0f, 500f, isInt: true, hideOther: false);
277 }
278 }
280 if (id == "system")
281 {
282 i.hideOnMouseLeave = false;
283 }
284 void AddSliderHour()
285 {
286 i.
AddSlider(
"sliderTime", (
float a) => a.ToString() ??
"", d.
hour, delegate(
float b)
287 {
289 if (d.
hour != (
int)b)
290 {
291 d.hour = (int)b - 1;
292 d.AdvanceHour();
293 EClass.world.weather.SetCondition(currentCondition);
294 }
298 }, 0f, 23f, isInt: true, hideOther: false);
299 }
300 void AddSliderMonth()
301 {
303 {
304 if (d.
month != (
int)b)
305 {
306 d.month = (int)b - 1;
307 d.AdvanceMonth();
308 }
314 }, 1f, 12f, isInt: true, hideOther: false);
315 }
316 void AddSliderWeather()
317 {
319 {
321 }, 0f, 7f, isInt: true, hideOther: false);
322 }
323 void AddTilt()
324 {
325 i.
AddToggle(
"alwaysTilt".lang() + (isRegion ?
"(Region)" :
""), isRegion ? conf.
tiltRegion : conf.
tilt, delegate
326 {
327 EClass.scene.ToggleTilt();
328 });
330 {
331 if (isRegion)
332 {
333 conf.tiltPowerRegion = (int)b;
334 }
335 else
336 {
337 conf.tiltPower = (int)b;
338 }
339 EClass.scene.camSupport.tiltShift.blurArea = 0.1f * b;
340 }, 0f, 150f, isInt: true, hideOther: false);
341 }
343 {
345 {
347 {
349 {
350 PopulateMenu(parent3, child);
351 }
352 return;
353 }
354 }
356 }
357 static void Toggle(ref bool flag)
358 {
359 flag = !flag;
362 SE.ClickGeneral();
363 }
364 }
void RefreshFaithElement()
static BaseGameScreen screen
void GotoTitle(bool showDialog=true)
bool Save(bool isAutoSave=false, bool silent=false)
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)
static void ShowExplorer(string itemPath, bool selectFirstFile=false)
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Condition _currentCondition