public override void Start() { base.Start(); Instance = this; Setup(); }
private void SetupUniqueFactoryPanel(float widestWidth, ref UIUniqueFactoryPanelWrapper panelWrapper) { width = panelWrapper.width = UiUniqueFactoryTitleBar.Instance.width = UiUniqueFactoryTitleBar.Instance.DragHandle.width = widestWidth; UiUniqueFactoryTitleBar.Instance.RecenterElements(); Align(); height = Inputs.Count * (UiUtils.FieldHeight + UiUtils.FieldMargin) + UiUtils.FieldMargin * 3; panelWrapper.height = height + UiUniqueFactoryTitleBar.Instance.height; panelWrapper.relativePosition = new Vector3(CustomizeItExtendedMod.Settings.PanelX, CustomizeItExtendedMod.Settings.PanelY); isVisible = panelWrapper.isVisible = UiUniqueFactoryTitleBar.Instance.isVisible = UiUniqueFactoryTitleBar.Instance.DragHandle.isVisible = true; }