Skip to content

Commit

Permalink
small UI adjustment (search)
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoCortney committed Oct 14, 2023
1 parent 6eece95 commit 8c1ee91
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions MungPlex/Search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,20 @@ void MungPlex::Search::DrawValueTypeOptions()
if (_currentValueTypeSelect == TEXT || _currentValueTypeSelect == COLOR)
_currentComparisionTypeSelect = MemoryCompare::KNOWN;

ImGui::SameLine();

ImGui::Checkbox("Big Endian", &_underlyingBigEndian);

if (_disableBecauseNoPrimitive) ImGui::BeginDisabled();
SetUpCombo("Primitive Type:", _searchPrimitiveTypes, _currentPrimitiveTypeSelect, 0.5f, 0.4f);
if (_disableBecauseNoPrimitive) ImGui::EndDisabled();

ImGui::SameLine();

if (_disableBecauseNoInt) ImGui::BeginDisabled();
ImGui::Checkbox("Signed", &_signed);
if (_disableBecauseNoInt) ImGui::EndDisabled();

if (_disableBecauseNoArray) ImGui::BeginDisabled();
SetUpCombo("Array Type:", _searchArrayTypes, _currentArrayTypeSelect, 0.5f, 0.4f); //use primitived types here once Arrays support floats
if (_disableBecauseNoArray) ImGui::EndDisabled();
Expand All @@ -158,18 +168,6 @@ void MungPlex::Search::DrawValueTypeOptions()
if (_disableBecauseNoColor || _currentColorTypeSelect != LitColor::RGB5A3) ImGui::EndDisabled();
}
ImGui::EndGroup();

ImGui::SameLine();

ImGui::BeginGroup();
{
ImGui::Checkbox("Big Endian", &_underlyingBigEndian);

if (_disableBecauseNoInt) ImGui::BeginDisabled();
ImGui::Checkbox("Signed", &_signed);
if (_disableBecauseNoInt) ImGui::EndDisabled();
}
ImGui::EndGroup();
}
if (_searchActive) ImGui::EndDisabled();
}
Expand Down

0 comments on commit 8c1ee91

Please sign in to comment.