* Change the Ctrl+S flow to save the currently focused prefab instead of the root.
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Ensure the Outliner is refreshed on save
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Rename ExecuteClosePrefabDialog to be more accurate (the function also does the saving, it's not just creating the dialog).
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Minor changes to labeling.
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Adjust labeling to reflect changes in behavior.
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Revert labeling changes
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Additional checks to guarantee the system works in test mode
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Additional check to prevent crashes when the editor somehow triggers save during automated tests.
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Simplify checks
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
* Update preferences and dialog labels to reflect new behavior.
Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
->DataElement(AZ::Edit::UIHandlers::CheckBox,&GeneralSettings::m_restoreViewportCamera,EditorPreferencesGeneralRestoreViewportCameraSettingName,"Keep the original editor viewport transform when exiting game mode.")
->DataElement(AZ::Edit::UIHandlers::CheckBox,&GeneralSettings::m_restoreViewportCamera,EditorPreferencesGeneralRestoreViewportCameraSettingName,"Keep the original editor viewport transform when exiting game mode.")
->DataElement(AZ::Edit::UIHandlers::CheckBox,&GeneralSettings::m_enableSceneInspector,"Enable Scene Inspector (EXPERIMENTAL)","Enable the option to inspect the internal data loaded from scene files like .fbx. This is an experimental feature. Restart the Scene Settings if the option is not visible under the Help menu.");
->DataElement(AZ::Edit::UIHandlers::CheckBox,&GeneralSettings::m_enableSceneInspector,"Enable Scene Inspector (EXPERIMENTAL)","Enable the option to inspect the internal data loaded from scene files like .fbx. This is an experimental feature. Restart the Scene Settings if the option is not visible under the Help menu.");
editContext->Class<LevelSaveSettings>("Level Save Settings","")
editContext->Class<LevelSaveSettings>("Prefab Save Settings","")
->DataElement(
->DataElement(
AZ::Edit::UIHandlers::ComboBox,&LevelSaveSettings::m_saveAllPrefabsPreference,"Save All Prefabs Preference",
AZ::Edit::UIHandlers::ComboBox,&LevelSaveSettings::m_saveAllPrefabsPreference,"Save All Nested Prefabs",
"This option controls whether prefabs should be saved along with the level")
"This option controls whether nested prefabs should be saved when a prefab is saved.")
->EnumAttribute(AzToolsFramework::Prefab::SaveAllPrefabsPreference::AskEveryTime,"Ask every time")
->EnumAttribute(AzToolsFramework::Prefab::SaveAllPrefabsPreference::AskEveryTime,"Ask every time")