Skip to content

Hot reload of dev builds seems broken #762

@originalfoo

Description

@originalfoo

Tried doing a hot reload and the main menu button (crown button) stopped functioning.

TMPE.log

Error 10,971.8881554: Toggle mainmenu failed System.NullReferenceException: Object reference not set to an instance of an object
  at TrafficManager.UI.MainMenu.MainMenuButton.HandleClick (ColossalFramework.UI.UIMouseEventParameter p) [0x00000] in <filename unknown>:0 
   at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
   at CSUtil.Commons.Log.Error(System.String s)
   at TrafficManager.UI.MainMenu.MainMenuButton.HandleClick(ColossalFramework.UI.UIMouseEventParameter p)
   at TrafficManager.U.Button.BaseUButton.OnClick(ColossalFramework.UI.UIMouseEventParameter p)
   at ColossalFramework.UI.UIComponent.OnClick(ColossalFramework.UI.UIMouseEventParameter p)
   at ColossalFramework.UI.UIInput+MouseHandler.ProcessInput(IInputTranslator translator, Ray ray, ColossalFramework.UI.UIComponent component, Boolean retainFocusSetting)
   at ColossalFramework.UI.UIInput.ProcessMouseInput()
   at ColossalFramework.UI.UIInput.Update()

Suspect it might be related to the UI updates from #656

Metadata

Metadata

Labels

BUGDefect detected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions