1
0
mirror of synced 2024-11-25 00:00:27 +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::Checkbox("hex.builtin.tools.ascii_table.octal"_lang, &asciiTableShowOctal);
ImGui::NewLine();
}
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::NewLine();
}
void drawColorPicker() {
@ -126,7 +124,6 @@ namespace hex::plugin::builtin {
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::NewLine();
}
void drawMathEvaluator() {

View File

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