Closed kianzarrin closed 2 years ago
@aubergine10 Also noticed 2 drop-downs not yet converted in GeneralTab_LocalisationGroup.cs:
- language
- road sign theme
I did some investigation on how to do this in https://github.com/CitiesSkylinesMods/TMPE/tree/DropDownOption2 But I realised that its not worth doing it because:
ILegacySerializableOption.Load()/Save()
stuffHot-reload stopped working... (this._ui
is null
)
```cs
NullReferenceException: Object reference not set to an instance of an object
at TrafficManager.UI.Helpers.DropDownOption`1[TrafficManager.API.Traffic.Enums.SimulationAccuracy].set_Value (SimulationAccuracy value) [0x00000] in
ill put a guard
there are still some UI options that are not using the SerializableUIOptionBase . Specially drop downs that use Enums. For more flexibility all options should use SerializableUIOptionBase .