Make current hooks view smaller in height

This commit is contained in:
Sinai
2022-04-22 21:02:08 +10:00
parent 2dc6e386df
commit 5e07847356

View File

@ -79,7 +79,7 @@ namespace UnityExplorer.Hooks
internal void ConstructUI(GameObject leftGroup) internal void ConstructUI(GameObject leftGroup)
{ {
UIRoot = UIFactory.CreateUIObject("CurrentHooksPanel", leftGroup); UIRoot = UIFactory.CreateUIObject("CurrentHooksPanel", leftGroup);
UIFactory.SetLayoutElement(UIRoot, flexibleHeight: 9999, flexibleWidth: 9999); UIFactory.SetLayoutElement(UIRoot, preferredHeight: 150, flexibleHeight: 0, flexibleWidth: 9999);
UIFactory.SetLayoutGroup<VerticalLayoutGroup>(UIRoot, true, true, true, true); UIFactory.SetLayoutGroup<VerticalLayoutGroup>(UIRoot, true, true, true, true);
Text hooksLabel = UIFactory.CreateLabel(UIRoot, "HooksLabel", "Current Hooks", TextAnchor.MiddleCenter); Text hooksLabel = UIFactory.CreateLabel(UIRoot, "HooksLabel", "Current Hooks", TextAnchor.MiddleCenter);