forked from rosebudai/OpenRCT2-Web
Move WindowCreate and WindowFocusOrCreate into WindowManager (#23643)
* Move WindowBringToFront into WindowManager * Move WindowCreate and WindowFocusOrCreate into WindowManager * Cut back on Context/UiContext includes
This commit is contained in:
1 parent
66ede938f8
commit
bed4d5bdca
113 files changed
+895
-767
No files matched your search
@@ -210,7 +210,7 @@ void InputManager::Process(const InputEvent& e)
|
||||
|
||||
if (e.DeviceKind == InputDeviceKind::Keyboard)
|
||||
{
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto* windowMgr = GetWindowManager();
|
||||
|
||||
// TODO: replace with event
|
||||
auto w = windowMgr->FindByClass(WindowClass::Textinput);
|
||||
@@ -424,7 +424,7 @@ bool InputManager::HasTextInputFocus() const
|
||||
if (OpenRCT2::Ui::Windows::IsUsingWidgetTextBox() || gChatOpen)
|
||||
return true;
|
||||
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto* windowMgr = GetWindowManager();
|
||||
auto w = windowMgr->FindByClass(WindowClass::Textinput);
|
||||
if (w != nullptr)
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user