1
0
mirror of synced 2025-02-08 15:08:11 +01:00

impr: Allow resizing of settings window

This commit is contained in:
WerWolv 2025-01-27 22:20:15 +01:00
parent f5515417d6
commit 53a7577416
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ namespace hex {
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Appearing, ImVec2(0.5F, 0.5F)); ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Appearing, ImVec2(0.5F, 0.5F));
ImGui::SetNextWindowSizeConstraints(this->getMinSize(), this->getMaxSize()); ImGui::SetNextWindowSizeConstraints(this->getMinSize(), this->getMaxSize());
if (ImGui::BeginPopupModal(View::toWindowName(this->getUnlocalizedName()).c_str(), this->hasCloseButton() ? &this->getWindowOpenState() : nullptr, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize | this->getWindowFlags())) { if (ImGui::BeginPopupModal(View::toWindowName(this->getUnlocalizedName()).c_str(), this->hasCloseButton() ? &this->getWindowOpenState() : nullptr, ImGuiWindowFlags_NoCollapse | this->getWindowFlags())) {
this->drawContent(); this->drawContent();
ImGui::EndPopup(); ImGui::EndPopup();

View File

@ -17,7 +17,7 @@ namespace hex::plugin::builtin {
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; } [[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
[[nodiscard]] ImVec2 getMinSize() const override { return scaled({ 700, 400 }); } [[nodiscard]] ImVec2 getMinSize() const override { return scaled({ 700, 400 }); }
[[nodiscard]] ImVec2 getMaxSize() const override { return scaled({ 700, 400 }); } [[nodiscard]] ImVec2 getMaxSize() const override { return scaled({ 1400, 800 }); }
private: private:
bool m_restartRequested = false; bool m_restartRequested = false;