From 99f4de46b85e210e61b0dc3df75954608ac5f40c Mon Sep 17 00:00:00 2001 From: Matthieu - Greep Date: Wed, 13 Nov 2024 21:21:56 +0100 Subject: [PATCH] Changed position of "Search" text --- src/Interface/Tabs/MapPackList.as | 5 ++++- src/Interface/Tabs/Search.as | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Interface/Tabs/MapPackList.as b/src/Interface/Tabs/MapPackList.as index 233652f..3f1960d 100644 --- a/src/Interface/Tabs/MapPackList.as +++ b/src/Interface/Tabs/MapPackList.as @@ -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")){ @@ -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(); diff --git a/src/Interface/Tabs/Search.as b/src/Interface/Tabs/Search.as index cc1bb38..1ca779e 100644 --- a/src/Interface/Tabs/Search.as +++ b/src/Interface/Tabs/Search.as @@ -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")){ @@ -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();