public override void Draw(SmartRect rect, Locale locale) { for (int i = 0; i < Length; i++) { LabelCenter(rect, locale["skybox" + labels[i]], true); data[i] = TextField(rect, data[i], string.Empty, 0f, true); } rect.MoveY(); if (SkinSettings.CitySet.Value != Anarchy.Configuration.StringSetting.NotDefine) { if (Button(rect, locale.Format("btnLinkCity", SkinSettings.CitySet.Value), true)) { LinkToCitySet(SkinSettings.CitySet.Value); } } if (SkinSettings.ForestSet.Value != Anarchy.Configuration.StringSetting.NotDefine) { if (Button(rect, locale.Format("btnLinkForest", SkinSettings.ForestSet.Value), true)) { LinkToForestSet(SkinSettings.ForestSet.Value); } } }
/// <summary> /// 例外ログ発生時の通知用メソッド。 /// </summary> /// <param name="condition">例外内容。</param> /// <param name="stackTrace">例外スタックトレース。</param> /// <param name="type">ログの種類。</param> private void HandleException(string condition, string stackTrace, LogType type) { // 例外の場合、画面メッセージを置き換え if (type != LogType.Exception) { return; } string key = typeof(NotifiableException).Name + ": "; if (condition.StartsWith(key)) { this.noticeText.text = Locale.Format("ERROR", condition.Replace(key, string.Empty)); } else { this.noticeText.text = Locale.Format("FATAL_ERROR", condition); } }
public override void Draw(SmartRect rect, Locale locale) { int index = 0; if (LinkedSkybox != Anarchy.Configuration.StringSetting.NotDefine) { Label(rect, locale.Format("linkedBox", LinkedSkybox), true); } LabelCenter(rect, locale["ground"], true); data[index] = TextField(rect, data[index++], string.Empty, 0f, true); LabelCenter(rect, locale["wall"], true); data[index] = TextField(rect, data[index++], string.Empty, 0f, true); LabelCenter(rect, locale["gate"], true); data[index] = TextField(rect, data[index++], string.Empty, 0f, true); rect.MoveY(); LabelCenter(rect, locale["houses"], true); for (int i = index; i < data.Length; i++) { data[i] = TextField(rect, data[i], string.Empty, 0f, true); } }
public override void Draw(SmartRect rect, Locale locale) { int index = 0; if (LinkedSkybox != Anarchy.Configuration.StringSetting.NotDefine) { Label(rect, locale.Format("linkedBox", LinkedSkybox), true); } RandomizePairs = ToggleButton(rect, RandomizePairs, locale["forestRandomize"], true); data[index] = TextField(rect, data[index++], locale["ground"], Style.LabelOffset, true); int count = 1; for (int i = index; i < data.Length - Leaves.Length; i++) { data[i] = TextField(rect, data[i], locale["tree"] + " #" + (count++).ToString(), Style.LabelOffset, true); index++; } count = 1; for (int i = index; i < data.Length; i++) { data[i] = TextField(rect, data[i], locale["leave"] + " #" + (count++).ToString(), Style.LabelOffset, true); index++; } }