mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 01:12:19 -05:00
Fixed console being on the corner
This commit is contained in:
parent
35e6c0360e
commit
becfaa2cfb
@ -420,10 +420,11 @@ namespace SohImGui {
|
|||||||
const float scale = Game::Settings.controller.input_scale;
|
const float scale = Game::Settings.controller.input_scale;
|
||||||
ImVec2 BtnPos = ImVec2(160 * scale, 85 * scale);
|
ImVec2 BtnPos = ImVec2(160 * scale, 85 * scale);
|
||||||
|
|
||||||
|
if(Game::Settings.controller.input_enabled) {
|
||||||
ImGui::SetNextWindowSize(BtnPos);
|
ImGui::SetNextWindowSize(BtnPos);
|
||||||
ImGui::SetNextWindowPos(ImVec2(main_pos.x + size.x - BtnPos.x - 20, main_pos.y + size.y - BtnPos.y - 20));
|
ImGui::SetNextWindowPos(ImVec2(main_pos.x + size.x - BtnPos.x - 20, main_pos.y + size.y - BtnPos.y - 20));
|
||||||
|
|
||||||
if (Game::Settings.controller.input_enabled && pads != nullptr && ImGui::Begin("Game Buttons", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoBackground)) {
|
if (pads != nullptr && ImGui::Begin("Game Buttons", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoBackground)) {
|
||||||
ImGui::SetCursorPosY(32 * scale);
|
ImGui::SetCursorPosY(32 * scale);
|
||||||
|
|
||||||
ImGui::BeginGroup();
|
ImGui::BeginGroup();
|
||||||
@ -464,6 +465,7 @@ namespace SohImGui {
|
|||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
console->Draw();
|
console->Draw();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user