コード例 #1
0
        /// <summary>
        /// Patches the width of the toolbar to contain more items at once.
        /// </summary>
        private void EnableToggleToolbarWidth(LoadMode mode)
        {
            // We only add our switch mode button if the toolbar width hasn't been changed by some other mod, in order to prevent incompatibility
            UITabContainer tsContainer = GameObject.Find(GameObjectDefs.ID_TSCONTAINER).GetComponent <UITabContainer>();

            Toolbar.CreateToolbarControlBox(mode);
            Toolbar.CreateToggleToolbarWidthButton(mode);
        }