Esempio n. 1
0
        // CONSTRUCTOR
        public QHierarchy()
        {
            componentDictionary = new Dictionary <int, QBaseComponent>();
            componentDictionary.Add((int)QHierarchyComponentEnum.LockComponent, new QLockComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.VisibilityComponent, new QVisibilityComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.StaticComponent, new QStaticComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.RendererComponent, new QRendererComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.TagAndLayerComponent, new QTagLayerComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.GameObjectIconComponent, new QGameObjectIconComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.ErrorComponent, new QErrorComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.TagIconComponent, new QTagIconComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.LayerIconComponent, new QLayerIconComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.ColorComponent, new QColorComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.ComponentsComponent, new QComponentsComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.ChildrenCountComponent, new QChildrenCountComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.PrefabComponent, new QPrefabComponent());
            componentDictionary.Add((int)QHierarchyComponentEnum.VerticesAndTrianglesCount, new QVerticesAndTrianglesCountComponent());

            preComponents = new List <QBaseComponent>();
            preComponents.Add(new QMonoBehaviorIconComponent());
            preComponents.Add(new QTreeMapComponent());
            preComponents.Add(new QSeparatorComponent());

            orderedComponents = new List <QBaseComponent>();

            trimIcon = QResources.getInstance().getTexture(QTexture.QTrimIcon);

            QSettings.getInstance().addEventListener(QSetting.AdditionalIdentation, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ComponentsOrder, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalHideIconsIfNotFit, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalBackgroundColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 2
0
        // CONSTRUCTOR
        public QTagIconComponent()
        {
            backgroundColor = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowTagIconComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowTagIconComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 3
0
        // CONSTRUCTOR
        public QColorComponent()
        {
            colorTexture    = QResources.getInstance().getTexture(QTexture.QColorButton);
            backgroundColor = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowColorComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowColorComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 4
0
        // CONSTRUCTOR
        public QColorPickerWindow(GameObject[] gameObjects, QColorSelectedHandler colorSelectedHandler, QColorRemovedHandler colorRemovedHandler)
        {
            this.gameObjects          = gameObjects;
            this.colorSelectedHandler = colorSelectedHandler;
            this.colorRemovedHandler  = colorRemovedHandler;

            colorPaletteTexture = QResources.getInstance().getTexture(QTexture.QColorPalette);
            paletteRect         = new Rect(0, 0, colorPaletteTexture.width, colorPaletteTexture.height);
        }
Esempio n. 5
0
        // CONSTRUCTOR
        public QTreeMapComponent()
        {
            treeMapTexture       = QResources.getInstance().getTexture(QTexture.QTreeMap);
            treeMapParentTexture = QResources.getInstance().getTexture(QTexture.QTreeMapParent);

            showComponentDuringPlayMode = true;

            QSettings.getInstance().addEventListener(QSetting.ShowTreeMapComponent, settingsChanged);
            settingsChanged();
        }
Esempio n. 6
0
        // CONSTRUCTOR
        public QStaticComponent()
        {
            staticButtonOn   = QResources.getInstance().getTexture(QTexture.QStaticOnButton);
            staticButtonHalf = QResources.getInstance().getTexture(QTexture.QStaticHalfButton);
            staticButtonOff  = QResources.getInstance().getTexture(QTexture.QStaticOffButton);

            QSettings.getInstance().addEventListener(QSetting.ShowStaticComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowStaticComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
        // CONSTRUCTOR
        public QMonoBehaviorIconComponent()
        {
            monoBehaviourIconTexture       = QResources.getInstance().getTexture(QTexture.QMonoBehaviourIcon);
            monoBehaviourIconParentTexture = QResources.getInstance().getTexture(QTexture.QMonoBehaviourIconParent);

            QSettings.getInstance().addEventListener(QSetting.IgnoreUnityMonobehaviour, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowMonoBehaviourIconComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowMonoBehaviourIconComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
        // CONSTRUCTOR
        public QPrefabComponent()
        {
            prefabConnectedTexture    = QResources.getInstance().getTexture(QTexture.QPrefabConnectedIcon);
            prefabDisconnectedTexture = QResources.getInstance().getTexture(QTexture.QPrefabDisconnectedIcon);
            backgroundColor           = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowBreakedPrefabsOnly, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowPrefabComponent, settingsChanged);
            settingsChanged();
        }
        // CONSTRUCTOR
        public QLockComponent()
        {
            buttonLockOn  = QResources.getInstance().getTexture(QTexture.QLockOnButton);
            buttonLockOff = QResources.getInstance().getTexture(QTexture.QLockOffButton);

            QSettings.getInstance().addEventListener(QSetting.ShowModifierWarning, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowLockComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowLockComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
 // INIT
 private void init()
 {
     inited               = true;
     isProSkin            = EditorGUIUtility.isProSkin;
     separatorColor       = isProSkin ? new Color(0.18f, 0.18f, 0.18f) : new Color(0.59f, 0.59f, 0.59f);
     yellowColor          = isProSkin ? new Color(1.00f, 0.90f, 0.40f) : new Color(0.31f, 0.31f, 0.31f);
     checkBoxChecked      = QResources.getInstance().getTexture(QTexture.QCheckBoxChecked);
     checkBoxUnchecked    = QResources.getInstance().getTexture(QTexture.QCheckBoxUnchecked);
     restoreButtonTexture = QResources.getInstance().getTexture(QTexture.QRestoreButton);
     componentsOrderList  = new QComponentsOrderList(this);
 }
        // CONSTRUCTOR
        public QGameObjectIconComponent()
        {
            getIconMethodInfo   = typeof(EditorGUIUtility).GetMethod("GetIconForObject", BindingFlags.NonPublic | BindingFlags.Static);
            getIconMethodParams = new object[1];

            backgroundColor = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowGameObjectIconComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowGameObjectIconComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 12
0
        // CONSTRUCTOR
        public QRendererComponent()
        {
            rendererWireframe = QResources.getInstance().getTexture(QTexture.QRendererWireframeButton);
            rendererOn        = QResources.getInstance().getTexture(QTexture.QRendererOnButton);
            rendererOff       = QResources.getInstance().getTexture(QTexture.QRendererOffButton);
            backgroundColor   = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowRendererComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowRendererComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
 // INIT
 private void init()
 {
     inited            = true;
     isProSkin         = EditorGUIUtility.isProSkin;
     separatorColor    = isProSkin ? new Color(0.18f, 0.18f, 0.18f) : new Color(0.59f, 0.59f, 0.59f);
     yellowColor       = isProSkin ? new Color(1.00f, 0.90f, 0.40f) : new Color(0.31f, 0.31f, 0.31f);
     checkBoxChecked   = QResources.getInstance().getTexture(QTexture.QCheckBoxChecked);
     checkBoxUnchecked = QResources.getInstance().getTexture(QTexture.QCheckBoxUnchecked);
     orderUp           = QResources.getInstance().getTexture(QTexture.QArrowUpButton);
     orderDown         = QResources.getInstance().getTexture(QTexture.QArrowDownButton);
 }
Esempio n. 14
0
        // CONSTRUCTOR
        public QColorComponent()
        {
            colorTexture = QResources.getInstance().getTexture(QTexture.QColorButton);

            rect.width  = 8;
            rect.height = 16;

            QSettings.getInstance().addEventListener(QSetting.ColorShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ColorShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 15
0
        // CONSTRUCTOR
        public QPrefabComponent()
        {
            rect.width = 9;

            prefabTexture = QResources.getInstance().getTexture(QTexture.QPrefabIcon);

            QSettings.getInstance().addEventListener(QSetting.PrefabShowBreakedPrefabsOnly, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.PrefabShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalActiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 16
0
        // CONSTRUCTOR
        public QRendererComponent()
        {
            rect.width = 12;

            rendererButtonTexture = QResources.getInstance().getTexture(QTexture.QRendererButton);

            QSettings.getInstance().addEventListener(QSetting.RendererShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.RendererShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalActiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalSpecialColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 17
0
        // CONSTRUCTOR
        public QVisibilityComponent()
        {
            visibilityOn            = QResources.getInstance().getTexture(QTexture.QVisibilityOnButton);
            visibilityOnEdit        = QResources.getInstance().getTexture(QTexture.QVisibilityOnEditButton);
            visibilityOff           = QResources.getInstance().getTexture(QTexture.QVisibilityOffButton);
            visibilityOffEdit       = QResources.getInstance().getTexture(QTexture.QVisibilityOffEditButton);
            visibilityOffParent     = QResources.getInstance().getTexture(QTexture.QVisibilityOffParentButton);
            visibilityOffParentEdit = QResources.getInstance().getTexture(QTexture.QVisibilityOffParentEditButton);

            QSettings.getInstance().addEventListener(QSetting.ShowVisibilityComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowVisibilityComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 18
0
        // CONSTRUCTOR
        public QLockComponent()
        {
            rect.width = 13;

            lockButtonTexture = QResources.getInstance().getTexture(QTexture.QLockButton);

            QSettings.getInstance().addEventListener(QSetting.AdditionalShowModifierWarning, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.LockShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.LockShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalActiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            settingsChanged();
        }
        // CONSTRUCTOR
        public QChildrenCountComponent()
        {
            backgroundColor = QResources.getInstance().getColor(QColor.Background);

            labelStyle = new GUIStyle();
            labelStyle.normal.textColor = QResources.getInstance().getColor(QColor.Gray);
            labelStyle.fontSize         = 9;
            labelStyle.clipping         = TextClipping.Clip;
            labelStyle.alignment        = TextAnchor.MiddleRight;

            QSettings.getInstance().addEventListener(QSetting.ShowChildrenCountComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowChildrenCountComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 20
0
        // CONSTRUCTOR
        public QVisibilityComponent()
        {
            rect.width = 18;

            visibilityButtonTexture    = QResources.getInstance().getTexture(QTexture.QVisibilityButton);
            visibilityOffButtonTexture = QResources.getInstance().getTexture(QTexture.QVisibilityOffButton);

            QSettings.getInstance().addEventListener(QSetting.VisibilityShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.VisibilityShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalActiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalSpecialColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 21
0
 private static GUIStyle GetSideButtonSelectedStyle(string styleName, QTexture qTexture, Color normalTextColor, RectOffset border, RectOffset padding)
 {
     return(new GUIStyle()
     {
         name = styleName.ToString(),
         normal = { background = qTexture.normal2D, textColor = normalTextColor },
         onNormal = { background = qTexture.normal2D, textColor = normalTextColor },
         border = border,
         padding = padding,
         fontSize = 20,
         alignment = TextAnchor.MiddleLeft,
         font = QResources.GetFont(FontName.Sansation.Regular)
     });
 }
Esempio n. 22
0
        // CONSTRUCTOR
        public QMonoBehaviorIconComponent()
        {
            rect.width  = 14;
            rect.height = 16;

            monoBehaviourIconTexture       = QResources.getInstance().getTexture(QTexture.QMonoBehaviourIcon);
            monoBehaviourIconObjectTexture = QResources.getInstance().getTexture(QTexture.QTreeMapObject);

            QSettings.getInstance().addEventListener(QSetting.MonoBehaviourIconIgnoreUnityMonobehaviour, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.MonoBehaviourIconShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.MonoBehaviourIconShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.MonoBehaviourIconColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TreeMapShow, settingsChanged);
            settingsChanged();
        }
Esempio n. 23
0
        // CONSTRUCTOR
        public QComponentsComponent()
        {
            this.backgroundColor     = QResources.getInstance().getColor(QColor.Background);
            this.backgroundDarkColor = QResources.getInstance().getColor(QColor.BackgroundDark);
            this.grayColor           = QResources.getInstance().getColor(QColor.Gray);
            this.componentIcon       = QResources.getInstance().getTexture(QTexture.QComponentUnknownIcon);

            hintLabelStyle = new GUIStyle();
            hintLabelStyle.normal.textColor = grayColor;
            hintLabelStyle.fontSize         = 11;
            hintLabelStyle.clipping         = TextClipping.Clip;

            QSettings.getInstance().addEventListener(QSetting.ShowComponentsComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowComponentsComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 24
0
 private static GUIStyle GetSideButtonStyle(string styleName, QTexture qTexture, Color normalTextColor, Color hoverTextColor, Color activeTextColor, RectOffset border, RectOffset padding, int fontSize = 20)
 {
     return(new GUIStyle()
     {
         name = styleName,
         normal = { background = qTexture.normal2D, textColor = normalTextColor },
         onNormal = { background = qTexture.normal2D, textColor = normalTextColor },
         hover = { background = qTexture.hover2D, textColor = hoverTextColor },
         onHover = { background = qTexture.hover2D, textColor = hoverTextColor },
         active = { background = qTexture.active2D, textColor = activeTextColor },
         onActive = { background = qTexture.active2D, textColor = activeTextColor },
         border = border,
         padding = padding,
         fontSize = fontSize,
         alignment = TextAnchor.MiddleLeft,
         font = QResources.GetFont(FontName.Sansation.Regular)
     });
 }
        // CONSTRUCTOR
        public QErrorComponent()
        {
            errorIconTexture      = QResources.getInstance().getTexture(QTexture.QErrorIcon);
            errorChildIconTexture = QResources.getInstance().getTexture(QTexture.QErrorChildIcon);
            backgroundColor       = QResources.getInstance().getColor(QColor.Background);

            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconParent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconReferenceIsNull, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconStringIsEmpty, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconScriptIsMissing, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorForDisabledComponents, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconMissingEventMethod, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorIconWhenTagOrLayerIsUndefined, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowErrorComponentDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.IgnoreErrorOfMonoBehaviours, settingsChanged);
            settingsChanged();
        }
Esempio n. 26
0
        // CONSTRUCTOR
        public QTreeMapComponent()
        {
            treeMapLevelTexture   = QResources.getInstance().getTexture(QTexture.QTreeMapLevel);
            treeMapLevel4Texture  = QResources.getInstance().getTexture(QTexture.QTreeMapLevel4);
            treeMapCurrentTexture = QResources.getInstance().getTexture(QTexture.QTreeMapCurrent);
            treeMapObjectTexture  = QResources.getInstance().getTexture(QTexture.QTreeMapObject);
            treeMapLastTexture    = QResources.getInstance().getTexture(QTexture.QTreeMapLast);

            rect.width  = 14;
            rect.height = 16;

            showComponentDuringPlayMode = true;

            QSettings.getInstance().addEventListener(QSetting.AdditionalBackgroundColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TreeMapShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TreeMapColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TreeMapEnhanced, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TreeMapTransparentBackground, settingsChanged);
            settingsChanged();
        }
Esempio n. 27
0
        // CONSTRUCTOR
        public QTagLayerComponent()
        {
            backgroundColor = QResources.getInstance().getColor(QColor.Background);
            greyColor       = QResources.getInstance().getColor(QColor.GrayDark);
            greyLightColor  = QResources.getInstance().getColor(QColor.GrayLight);

            labelStyle = new GUIStyle();
            labelStyle.normal.textColor = greyColor;
            labelStyle.fontSize         = 8;
            labelStyle.clipping         = TextClipping.Clip;

            QSettings.getInstance().addEventListener(QSetting.TagAndLayerType, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TagAndLayerSizeValueType, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TagAndLayerSizeValuePixel, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TagAndLayerSizeValuePercent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.TagAndLayerLabelSize, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowTagLayerComponent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ShowTagLayerComponentDuringPlayMode, settingsChanged);
            settingsChanged();
        }
Esempio n. 28
0
        // EVENTS
        public override void eventHandler(GameObject gameObject, Event currentEvent, Rect curRect)
        {
            if (currentEvent.isMouse && currentEvent.type == EventType.MouseDown && currentEvent.button == 0 && curRect.Contains(currentEvent.mousePosition))
            {
                if (currentEvent.type == EventType.MouseDown)
                {
                    Color color = QResources.getInstance().getColor(QColor.Background);
                    color.a = 0.1f;



                    try
                    {
                        PopupWindow.Show(curRect, new QColorPickerWindow(Selection.Contains(gameObject) ? Selection.gameObjects : new GameObject[] { gameObject }, colorSelectedHandler, colorRemovedHandler));
                    }
                    catch
                    {}
                }
                currentEvent.Use();
            }
        }
Esempio n. 29
0
        // CONSTRUCTOR
        public QErrorComponent()
        {
            rect.width = 7;

            errorIconTexture = QResources.getInstance().getTexture(QTexture.QErrorIcon);

            QSettings.getInstance().addEventListener(QSetting.ErrorShowIconOnParent, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowReferenceIsNull, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowReferenceIsMissing, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowStringIsEmpty, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowScriptIsMissing, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowForDisabledComponents, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowForDisabledGameObjects, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowMissingEventMethod, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowWhenTagOrLayerIsUndefined, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShow, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorShowDuringPlayMode, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.ErrorIgnoreString, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalActiveColor, settingsChanged);
            QSettings.getInstance().addEventListener(QSetting.AdditionalInactiveColor, settingsChanged);
            settingsChanged();
        }
Esempio n. 30
0
 // CONSTRUCTOR
 public QComponentsOrderList(EditorWindow window)
 {
     this.window     = window;
     dragButton      = QResources.getInstance().getTexture(QTexture.QDragButton);
     backgroundColor = QResources.getInstance().getColor(QColor.BackgroundDark);
 }