Skip to content

Commit 4951d73

Browse files
committed
Version 1.2.4; game version 1.16 (Financial Districts); add detailed debugging logging option; implement common translations.
1 parent d2567a4 commit 4951d73

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

AdvancedBuildingLevelControl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Description>A Cities: Skylines mod.</Description>
77
<Authors>algernon</Authors>
88
<Copyright>Copyright © 2020-2022 algernon</Copyright>
9-
<Version>1.2.3</Version>
9+
<Version>1.2.4</Version>
1010
<ManagedDLLPath>$(MSBuildProgramFiles32)/Steam/steamapps/common/Cities_Skylines/Cities_Data/Managed</ManagedDLLPath>
1111
<AssemblySearchPaths>
1212
$(AssemblySearchPaths);

Changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
- Implement common translations
1+
Version 1.2.4 -
2+
3+
- Add support for financial office buildings
4+
- Add detailed debugging logging option
5+
- Implement common translations
26

37

48
Version 1.2.3 -

Code/LevelControl/LevelUtils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ internal static byte GetMaxLevel(ItemClass.SubService subService)
4242
case ItemClass.SubService.IndustrialGeneric:
4343
case ItemClass.SubService.CommercialWallToWall:
4444
case ItemClass.SubService.OfficeWallToWall:
45+
case ItemClass.SubService.OfficeFinancial:
4546
return 3;
4647
case ItemClass.SubService.IndustrialFarming:
4748
case ItemClass.SubService.IndustrialForestry:

Code/Patches/Patcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void PatchBuildingThemes()
4545
}
4646
else
4747
{
48-
Logging.Error("didn't patch Building Themes");
48+
Logging.KeyMessage("didn't patch Building Themes");
4949
}
5050
}
5151
else

Code/Settings/OptionsPanel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace ABLC
77
{
8+
using AlgernonCommons;
89
using AlgernonCommons.Translation;
910
using AlgernonCommons.UI;
1011
using ColossalFramework.UI;
@@ -82,7 +83,12 @@ internal OptionsPanel()
8283
UICheckBox loadLevelCheck = UICheckBoxes.AddPlainCheckBox(this, Margin, currentY, Translations.Translate("ABLC_OPT_CLL"), checkLabelWidth);
8384
loadLevelCheck.isChecked = ModSettings.LoadLevelCheck;
8485
loadLevelCheck.eventCheckChanged += (c, value) => { ModSettings.LoadLevelCheck = value; };
85-
currentY += loadLevelCheck.height + Margin;
86+
currentY += loadLevelCheck.height + GroupMargin;
87+
88+
// Logging checkbox.
89+
UICheckBox loggingCheck = UICheckBoxes.AddPlainCheckBox(this, Margin, currentY, Translations.Translate("DETAIL_LOGGING"));
90+
loggingCheck.isChecked = Logging.DetailLogging;
91+
loggingCheck.eventCheckChanged += (c, isChecked) => { Logging.DetailLogging = isChecked; };
8692
}
8793
}
8894
}

0 commit comments

Comments
 (0)