Exemplo n.º 1
0
        public override void Start()
        {
            base.Start();

            Instance = this;
            Setup();
        }
        private void SetupWarehousePanel(float widestWidth, ref UIWarehousePanelWrapper panelWrapper)
        {
            width = panelWrapper.width =
                UiWarehouseTitleBar.Instance.width = UiWarehouseTitleBar.Instance.DragHandle.width = widestWidth;
            UiWarehouseTitleBar.Instance.RecenterElements();
            Align();
            height = Inputs.Count * (UiUtils.FieldHeight + UiUtils.FieldMargin) + UiUtils.FieldMargin * 3;

            panelWrapper.height = height + UiWarehouseTitleBar.Instance.height;


            panelWrapper.relativePosition = new Vector3(CustomizeItExtendedMod.Settings.PanelX,
                                                        CustomizeItExtendedMod.Settings.PanelY);
            isVisible = panelWrapper.isVisible =
                UiWarehouseTitleBar.Instance.isVisible = UiWarehouseTitleBar.Instance.DragHandle.isVisible = true;
        }