diff --git a/src/UI/Widgets/AutoComplete/AutoCompleteModal.cs b/src/UI/Panels/AutoCompleteModal.cs similarity index 96% rename from src/UI/Widgets/AutoComplete/AutoCompleteModal.cs rename to src/UI/Panels/AutoCompleteModal.cs index e2b14c2..86a47b7 100644 --- a/src/UI/Widgets/AutoComplete/AutoCompleteModal.cs +++ b/src/UI/Panels/AutoCompleteModal.cs @@ -30,13 +30,13 @@ namespace UnityExplorer.UI.Widgets.AutoComplete public override int MinWidth => -1; public override int MinHeight => -1; - public override bool CanDragAndResize => false; + public override bool CanDragAndResize => true; public override bool ShouldSaveActiveState => false; public override bool NavButtonWanted => false; public static ISuggestionProvider CurrentHandler { get; private set; } - public static ButtonListHandler dataHandler; + public static ButtonListHandler buttonListDataHandler; public static ScrollPool scrollPool; private static GameObject navigationTipRow; @@ -82,7 +82,7 @@ namespace UnityExplorer.UI.Widgets.AutoComplete { base.UIRoot.SetActive(true); base.UIRoot.transform.SetAsLastSibling(); - dataHandler.RefreshData(); + buttonListDataHandler.RefreshData(); scrollPool.Refresh(true, true); } } @@ -303,11 +303,14 @@ namespace UnityExplorer.UI.Widgets.AutoComplete public override void ConstructPanelContent() { - dataHandler = new ButtonListHandler(scrollPool, GetEntries, SetCell, ShouldDisplay, OnCellClicked); + // hide the titlebar + this.TitleBar.gameObject.SetActive(false); + + buttonListDataHandler = new ButtonListHandler(scrollPool, GetEntries, SetCell, ShouldDisplay, OnCellClicked); scrollPool = UIFactory.CreateScrollPool(this.uiContent, "AutoCompleter", out GameObject scrollObj, out GameObject scrollContent); - scrollPool.Initialize(dataHandler); + scrollPool.Initialize(buttonListDataHandler); UIFactory.SetLayoutElement(scrollObj, flexibleHeight: 9999); UIFactory.SetLayoutGroup(scrollContent, true, false, true, false); diff --git a/src/UnityExplorer.csproj b/src/UnityExplorer.csproj index a4efe22..296659a 100644 --- a/src/UnityExplorer.csproj +++ b/src/UnityExplorer.csproj @@ -313,7 +313,7 @@ - +