コード例 #1
0
        private void InitializeInterface()
        {
            _widgets         = WidgetContainer.Create(this);
            _widgets.MinSize = _currentWindow.minSize;

            _widgets.AddSkin(ThemeHelper.MainColorName, Resources.Load <GUISkin>("PatchMainGUISkin"));
            _widgets.AddSkin(ThemeHelper.SecondaryColorName, Resources.Load <GUISkin>("PatchSecondaryGUISkin"));
            _widgets.AddSkin(ThemeHelper.DarkColorName, Resources.Load <GUISkin>("PatchDarkGUISkin"));
            _widgets.AddSkin(ThemeHelper.PopupColorName, Resources.Load <GUISkin>("PatchPopupGUISkin"));

            ThemeHelper.InitializeContent(_widgets);

            SetContainerComponents(_widgets);
        }