ui: Added optional byte cell and char cell padding

Closes #771
This commit is contained in:
WerWolv
2022-10-07 11:28:44 +02:00
parent 5694eaba8c
commit 11f63f9b02
12 changed files with 63 additions and 7 deletions

View File

@@ -137,6 +137,7 @@ namespace hex::plugin::builtin {
bool m_grayOutZero = true;
bool m_showAscii = true;
bool m_syncScrolling = false;
u32 m_byteCellPadding = 0, m_characterCellPadding = 0;
bool m_shouldOpenPopup = false;
std::unique_ptr<Popup> m_currPopup;

View File

@@ -17,8 +17,8 @@ namespace hex::plugin::builtin {
[[nodiscard]] bool isAvailable() const override { return true; }
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
[[nodiscard]] ImVec2 getMinSize() const override { return { 500, 300 }; }
[[nodiscard]] ImVec2 getMaxSize() const override { return { 500, 300 }; }
[[nodiscard]] ImVec2 getMinSize() const override { return { 700, 400 }; }
[[nodiscard]] ImVec2 getMaxSize() const override { return { 700, 400 }; }
private:
bool m_restartRequested = false;