Closed pacas00 closed 5 years ago
New Plan,
Prefix ModManager.HandleActivation
if (WorldLoadState.State != WorldLoadStateEnum.LoadModUnityData) leave prefix
if (WorldLoadState.State == WorldLoadStateEnum.LoadModUnityData) then
Check if we are ready, if not, call our own update method for loading and return If we are ready, then leave prefix allowing normal execution
Prefix LoadingControl.Update
if (WorldLoadState.State != WorldLoadStateEnum.LoadModUnityData) leave prefix
if (WorldLoadState.State == WorldLoadStateEnum.LoadModUnityData) then
this.LoadingLabel.text = PersistentSettings.GetString("Game_Loading") + "[" + text + "]";
Thinking about this, We cannot patch a method we are running.
Not happening any time soon.
Closing this until i think of another way to do this.
Can't set it up as one of those; "Must restart program to apply setting change," options you see in plenty of other programs, games, etc?
Need to handle loading better,
Currently, we block everything including UI updates.
Proposed new handling,
Postfix on someones .ctor
Prefix on someones UnityUpdate()
Our Update Method