Skip to content

Commit

Permalink
Changed position of "Search" text
Browse files Browse the repository at this point in the history
  • Loading branch information
GreepTheSheep committed Nov 13, 2024
1 parent 6dfa103 commit 99f4de4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Interface/Tabs/MapPackList.as
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class MapPackListTab : Tab

void RenderHeader()
{
UI::AlignTextToFramePadding();
UI::Text("Search:");
UI::SameLine();
UI::SetNextItemWidth(140);
if (UI::BeginCombo("##NamesFilter", t_selectedMode)){
if (UI::Selectable("Mappack name", t_selectedMode == "Mappack name")){
Expand All @@ -135,7 +138,7 @@ class MapPackListTab : Tab
}
UI::SameLine();
bool changed = false;
u_search = UI::InputText("Search", u_search, changed);
u_search = UI::InputText("##MapPackSearch", u_search, changed);
if (changed) {
u_typingStart = Time::Now;
Clear();
Expand Down
5 changes: 4 additions & 1 deletion src/Interface/Tabs/Search.as
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class SearchTab : MapListTab

void RenderHeader() override
{
UI::AlignTextToFramePadding();
UI::Text("Search:");
UI::SameLine();
UI::SetNextItemWidth(120);
if (UI::BeginCombo("##NamesFilter", t_selectedMode)){
if (UI::Selectable("Track name", t_selectedMode == "Track name")){
Expand All @@ -59,7 +62,7 @@ class SearchTab : MapListTab
}
UI::SameLine();
bool changed = false;
u_search = UI::InputText("Search", u_search, changed);
u_search = UI::InputText("##MapSearch", u_search, changed);
if (changed) {
u_typingStart = Time::Now;
Clear();
Expand Down

0 comments on commit 99f4de4

Please sign in to comment.