You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- rename UEdModeInteractiveToolsContext to UEditorInteractiveToolsContext, made all functions virtual so they can be customized for the new Editor/EdMode implementations where necessary - add UModeManagerInteractiveToolsContext and UEdModeInteractiveToolsContext subclasses. Most functionality stays in the base class. Mouse-handling functions that manipulate the InputRouter move to ModeManagerITC. - EdModeITC now is initialized based on a ModeManagerITC, and shares it's InputRouter - ModeManagerITC creates the child EdModeITCs, forwards Tick/Render/DrawHUD calls - FEditorModeTools now creates a ModeManagerITC - Add EToolsContextScope enum, with options for Editor and EdMode ToolsContext - UEdMode::Enter() now creates a child EdModeITC via new EditorITC::CreateNewChildEdModeToolsContext() function above, in addition to storing reference to the ModeManagerITC. Internal code updated to handle both ITCs. - The EdModeITC is shut down on ::Exit() and unregistered from the EditorITC parent - UEdMode ITC access functions (GetToolsContext, GetToolManager, RegisterTool) now take an optional Scope argument - UEdMode::GetDefaultToolScope() allows EdModes to define default scope for the entire mode, defaults to Editor scope - removed unused CanStartTool()/etc wrapper functions from FModeToolkit, they were not being called - FModeToolkit::Init() now listens to events from both the ModeManagerITC and EdModeITC, delete cleans them both up - FModeToolkit::OnToolStarted() checks both ITCs to see which one owns the new Tool - updated all EdModes that were directly accessing the UEdMode::ToolsContext member, replaced with calls to GetToolsContext() / GetToolManager() APIs - updated ModelingToolsEditorMode to use EdMode ToolScope #rb brooke.hubert #rnx #jira none #preflight 6140cc1130c00d0001dc4b9e [CL 17510176 by Ryan Schmidt in ue5-main branch]