Scene re-read through SceneManager.ReloadContent
This commit is contained in:
1 parent
972df5ccff
commit
3b2c1ddb95
5 files changed
+11
-22
No files matched your search
@@ -246,7 +246,7 @@ namespace Cthangover.Core.UI.Tool.ScenarioEditor
|
||||
_editTabs.SaveCurrentFile();
|
||||
// The running game caches scenario headers and texts: drop them, so a new or
|
||||
// edited scenario plays on the next entry into its scene without a mod reload.
|
||||
SceneFileService.RefreshGame();
|
||||
SceneManager.ReloadContent();
|
||||
SetStatus(string.Format(ToolUi.Tr("tools/common/saved"), ScenarioFileService.GetDisplayPath(modId, relativePath)), ToolStatusKind.Ok);
|
||||
_infoPanel.Update(text);
|
||||
_thumbPanel.Load(text);
|
||||
|
||||
Reference in new issue
Block a user