mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 09:22:18 -05:00
Update SoH's input editor window for the gui rework, and set it as what's opened by the Controller Configuration button. (#4352)
This commit is contained in:
parent
7891ac2d6a
commit
a6110dbc51
@ -2145,7 +2145,6 @@ void SohInputEditorWindow::DrawSetDefaultsButton(uint8_t portIndex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SohInputEditorWindow::DrawElement() {
|
void SohInputEditorWindow::DrawElement() {
|
||||||
ImGui::Begin("Controller Configuration###sohControllerConfigWindowV1", &mIsVisible);
|
|
||||||
ImGui::BeginTabBar("##ControllerConfigPortTabs");
|
ImGui::BeginTabBar("##ControllerConfigPortTabs");
|
||||||
DrawLinkTab();
|
DrawLinkTab();
|
||||||
DrawIvanTab();
|
DrawIvanTab();
|
||||||
@ -2154,5 +2153,4 @@ void SohInputEditorWindow::DrawElement() {
|
|||||||
DrawDebugPortTab(3);
|
DrawDebugPortTab(3);
|
||||||
}
|
}
|
||||||
ImGui::EndTabBar();
|
ImGui::EndTabBar();
|
||||||
ImGui::End();
|
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ OTRGlobals::OTRGlobals() {
|
|||||||
context->InitCrashHandler();
|
context->InitCrashHandler();
|
||||||
context->InitConsole();
|
context->InitConsole();
|
||||||
|
|
||||||
auto sohInputEditorWindow = std::make_shared<SohInputEditorWindow>(CVAR_CONTROLLER_CONFIGURATION_WINDOW_OPEN, "Input Editor");
|
auto sohInputEditorWindow = std::make_shared<SohInputEditorWindow>(CVAR_CONTROLLER_CONFIGURATION_WINDOW_OPEN, "Controller Configuration");
|
||||||
context->InitWindow({ sohInputEditorWindow });
|
context->InitWindow({ sohInputEditorWindow });
|
||||||
|
|
||||||
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
|
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
|
||||||
|
@ -161,7 +161,7 @@ namespace SohGui {
|
|||||||
SPDLOG_ERROR("Could not find console window");
|
SPDLOG_ERROR("Could not find console window");
|
||||||
}
|
}
|
||||||
|
|
||||||
mInputEditorWindow = gui->GetGuiWindow("Input Editor");
|
mInputEditorWindow = gui->GetGuiWindow("Controller Configuration");
|
||||||
if (mInputEditorWindow == nullptr) {
|
if (mInputEditorWindow == nullptr) {
|
||||||
SPDLOG_ERROR("Could not find input editor window");
|
SPDLOG_ERROR("Could not find input editor window");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user