1
0
mirror of synced 2024-11-28 17:40:51 +01:00

ui: Always add a spacing at the end of all tools

This commit is contained in:
WerWolv 2023-01-19 16:59:59 +01:00
parent b702ad4190
commit b54e6ea531
2 changed files with 1 additions and 3 deletions

View File

@ -98,7 +98,6 @@ namespace hex::plugin::builtin {
ImGui::EndTable(); ImGui::EndTable();
ImGui::Checkbox("hex.builtin.tools.ascii_table.octal"_lang, &asciiTableShowOctal); ImGui::Checkbox("hex.builtin.tools.ascii_table.octal"_lang, &asciiTableShowOctal);
ImGui::NewLine();
} }
void drawRegexReplacer() { void drawRegexReplacer() {
@ -118,7 +117,6 @@ namespace hex::plugin::builtin {
} }
ImGui::InputTextMultiline("hex.builtin.tools.regex_replacer.output"_lang, regexOutput.data(), regexOutput.size(), ImVec2(0, 0), ImGuiInputTextFlags_ReadOnly); ImGui::InputTextMultiline("hex.builtin.tools.regex_replacer.output"_lang, regexOutput.data(), regexOutput.size(), ImVec2(0, 0), ImGuiInputTextFlags_ReadOnly);
ImGui::NewLine();
} }
void drawColorPicker() { void drawColorPicker() {
@ -126,7 +124,6 @@ namespace hex::plugin::builtin {
ImGui::SetNextItemWidth(300.0F); ImGui::SetNextItemWidth(300.0F);
ImGui::ColorPicker4("hex.builtin.tools.color"_lang, pickedColor.data(), ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex); ImGui::ColorPicker4("hex.builtin.tools.color"_lang, pickedColor.data(), ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex);
ImGui::NewLine();
} }
void drawMathEvaluator() { void drawMathEvaluator() {

View File

@ -18,6 +18,7 @@ namespace hex::plugin::builtin {
if (ImGui::CollapsingHeader(LangEntry(name))) { if (ImGui::CollapsingHeader(LangEntry(name))) {
function(); function();
ImGui::NewLine();
} else { } else {
if (ImGui::IsMouseClicked(0) && ImGui::IsItemActivated() && this->m_dragStartIterator == tools.end()) if (ImGui::IsMouseClicked(0) && ImGui::IsItemActivated() && this->m_dragStartIterator == tools.end())
this->m_dragStartIterator = iter; this->m_dragStartIterator = iter;