mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-21 17:05:04 -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() {
|
||||
ImGui::Begin("Controller Configuration###sohControllerConfigWindowV1", &mIsVisible);
|
||||
ImGui::BeginTabBar("##ControllerConfigPortTabs");
|
||||
DrawLinkTab();
|
||||
DrawIvanTab();
|
||||
@ -2154,5 +2153,4 @@ void SohInputEditorWindow::DrawElement() {
|
||||
DrawDebugPortTab(3);
|
||||
}
|
||||
ImGui::EndTabBar();
|
||||
ImGui::End();
|
||||
}
|
||||
|
@ -336,7 +336,7 @@ OTRGlobals::OTRGlobals() {
|
||||
context->InitCrashHandler();
|
||||
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 });
|
||||
|
||||
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
|
||||
|
@ -161,7 +161,7 @@ namespace SohGui {
|
||||
SPDLOG_ERROR("Could not find console window");
|
||||
}
|
||||
|
||||
mInputEditorWindow = gui->GetGuiWindow("Input Editor");
|
||||
mInputEditorWindow = gui->GetGuiWindow("Controller Configuration");
|
||||
if (mInputEditorWindow == nullptr) {
|
||||
SPDLOG_ERROR("Could not find input editor window");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user