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 });
119 {
121 });
123 {
125 });
127 {
129 });
131 {
133 });
136 {
138 });
141 {
143 {
145 });
147 {
149 });
150 }
153 {
155 });
157 i.GetComponent<Image>().SetAlpha(1f);
158 }
159 }
161 {
163 {
165 {
166 Zone.forceRegenerate = true;
168 });
171 AddSliderMonth();
172 AddSliderHour();
173 AddSliderWeather();
174 }
175 }
176 else
177 {
179 {
181 {
183 });
184 }
185 AddTilt();
187 {
188 EClass.scene.ToggleHighlightArea();
189 });
191 {
192 EClass.scene.ToggleRoof();
193 });
195 {
197 {
200 }
202 {
204 {
207 }
208 else
209 {
211 {
214 }
216 {
217 EClass.game.config.backDrawAlpha = (int)b;
218 }, 0f, 50f, isInt: true, hideOther: false);
220 {
222 AddSliderMonth();
224 {
226 {
227 EClass.world.date.day = (int)b - 1;
228 EClass.world.date.AdvanceDay();
229 }
232 }, 1f, 30f, isInt: true, hideOther: false);
233 AddSliderHour();
234 AddSliderWeather();
236 {
237 EClass.game.config.animeSpeed = (int)b;
238 }, 0f, 100f, isInt: true, hideOther: false);
241 {
243 });
245 {
247 });
249 {
251 });
253 {
255 });
257 {
259 });
261 {
263 });
264 uIContextMenu3.
AddSlider(
"slopeMod", (
float a) => a.ToString() ??
"", conf.
slopeMod, delegate(
float b)
265 {
266 EClass.game.config.slopeMod = (int)b;
268 }, 0f, 500f, isInt: true, hideOther: false);
269 }
270 }
272 if (id == "system")
273 {
274 i.hideOnMouseLeave = false;
275 }
276 void AddSliderHour()
277 {
278 i.
AddSlider(
"sliderTime", (
float a) => a.ToString() ??
"", d.
hour, delegate(
float b)
279 {
281 if (d.
hour != (
int)b)
282 {
283 d.hour = (int)b - 1;
284 d.AdvanceHour();
285 EClass.world.weather.SetCondition(currentCondition);
286 }
290 }, 0f, 23f, isInt: true, hideOther: false);
291 }
292 void AddSliderMonth()
293 {
295 {
296 if (d.
month != (
int)b)
297 {
298 d.month = (int)b - 1;
299 d.AdvanceMonth();
300 }
306 }, 1f, 12f, isInt: true, hideOther: false);
307 }
308 void AddSliderWeather()
309 {
311 {
313 }, 0f, 7f, isInt: true, hideOther: false);
314 }
315 void AddTilt()
316 {
317 i.
AddToggle(
"alwaysTilt".lang() + (isRegion ?
"(Region)" :
""), isRegion ? conf.
tiltRegion : conf.
tilt, delegate
318 {
319 EClass.scene.ToggleTilt();
320 });
322 {
323 if (isRegion)
324 {
325 conf.tiltPowerRegion = (int)b;
326 }
327 else
328 {
329 conf.tiltPower = (int)b;
330 }
331 EClass.scene.camSupport.tiltShift.blurArea = 0.1f * b;
332 }, 0f, 150f, isInt: true, hideOther: false);
333 }
334 static void Toggle(ref bool flag)
335 {
336 flag = !flag;
339 SE.ClickGeneral();
340 }
341 }
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)
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