Skip to content

Commit

Permalink
Version 1.2.4; game version 1.16 (Financial Districts); add detailed …
Browse files Browse the repository at this point in the history
…debugging logging option; implement common translations.
  • Loading branch information
algernon-A committed Dec 13, 2022
1 parent d2567a4 commit 4951d73
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AdvancedBuildingLevelControl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description>A Cities: Skylines mod.</Description>
<Authors>algernon</Authors>
<Copyright>Copyright © 2020-2022 algernon</Copyright>
<Version>1.2.3</Version>
<Version>1.2.4</Version>
<ManagedDLLPath>$(MSBuildProgramFiles32)/Steam/steamapps/common/Cities_Skylines/Cities_Data/Managed</ManagedDLLPath>
<AssemblySearchPaths>
$(AssemblySearchPaths);
Expand Down
6 changes: 5 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
- Implement common translations
Version 1.2.4 -

- Add support for financial office buildings
- Add detailed debugging logging option
- Implement common translations


Version 1.2.3 -
Expand Down
1 change: 1 addition & 0 deletions Code/LevelControl/LevelUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ internal static byte GetMaxLevel(ItemClass.SubService subService)
case ItemClass.SubService.IndustrialGeneric:
case ItemClass.SubService.CommercialWallToWall:
case ItemClass.SubService.OfficeWallToWall:
case ItemClass.SubService.OfficeFinancial:
return 3;
case ItemClass.SubService.IndustrialFarming:
case ItemClass.SubService.IndustrialForestry:
Expand Down
2 changes: 1 addition & 1 deletion Code/Patches/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void PatchBuildingThemes()
}
else
{
Logging.Error("didn't patch Building Themes");
Logging.KeyMessage("didn't patch Building Themes");
}
}
else
Expand Down
8 changes: 7 additions & 1 deletion Code/Settings/OptionsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace ABLC
{
using AlgernonCommons;
using AlgernonCommons.Translation;
using AlgernonCommons.UI;
using ColossalFramework.UI;
Expand Down Expand Up @@ -82,7 +83,12 @@ internal OptionsPanel()
UICheckBox loadLevelCheck = UICheckBoxes.AddPlainCheckBox(this, Margin, currentY, Translations.Translate("ABLC_OPT_CLL"), checkLabelWidth);
loadLevelCheck.isChecked = ModSettings.LoadLevelCheck;
loadLevelCheck.eventCheckChanged += (c, value) => { ModSettings.LoadLevelCheck = value; };
currentY += loadLevelCheck.height + Margin;
currentY += loadLevelCheck.height + GroupMargin;

// Logging checkbox.
UICheckBox loggingCheck = UICheckBoxes.AddPlainCheckBox(this, Margin, currentY, Translations.Translate("DETAIL_LOGGING"));
loggingCheck.isChecked = Logging.DetailLogging;
loggingCheck.eventCheckChanged += (c, isChecked) => { Logging.DetailLogging = isChecked; };
}
}
}

0 comments on commit 4951d73

Please sign in to comment.