impr: Allow resizing of settings window
This commit is contained in:
parent
f5515417d6
commit
53a7577416
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user