Beispiel #1
0
        public static void InitializeStyles()
        {
            _titleStyle = new GUIStyle();
            _titleStyle.normal.textColor = _TXTColor;
            _titleStyle.alignment        = TextAnchor.MiddleCenter;

            _inputStyle = new GUIStyle();
            _inputStyle.normal.textColor = _TXTColor;
            _inputStyle.alignment        = TextAnchor.MiddleLeft;

            _inputTypeStyle = new GUIStyle();
            _inputTypeStyle.normal.textColor = _TXTAltColor;
            _inputTypeStyle.alignment        = TextAnchor.MiddleLeft;

            _outputStyle = new GUIStyle();
            _outputStyle.normal.textColor = _TXTColor;
            _outputStyle.alignment        = TextAnchor.MiddleRight;

            _outputTypeStyle = new GUIStyle();
            _outputTypeStyle.normal.textColor = _TXTAltColor;
            _outputTypeStyle.alignment        = TextAnchor.MiddleRight;

            if (_BGTex == null)
            {
                _BGTex           = new Texture2D(1, 1);
                _BGTex.hideFlags = HideFlags.HideAndDontSave;
                _BGTex.SetPixel(0, 0, _BGColor);
                _BGTex.Apply();
            }

            if (_BGAltTex == null)
            {
                _BGAltTex           = new Texture2D(1, 1);
                _BGAltTex.hideFlags = HideFlags.HideAndDontSave;
                _BGAltTex.SetPixel(0, 0, _BGAltColor);
                _BGAltTex.Apply();
            }

            // Outlets
            _outletRenderer = new OutletRenderer();
        }
Beispiel #2
0
        public static void InitializeStyles()
        {
            _titleStyle = new GUIStyle();
            _titleStyle.normal.textColor = _TXTColor;
            _titleStyle.alignment = TextAnchor.MiddleCenter;

            _inputStyle = new GUIStyle();
            _inputStyle.normal.textColor = _TXTColor;
            _inputStyle.alignment = TextAnchor.MiddleLeft;

            _inputTypeStyle = new GUIStyle();
            _inputTypeStyle.normal.textColor = _TXTAltColor;
            _inputTypeStyle.alignment = TextAnchor.MiddleLeft;

            _outputStyle = new GUIStyle();
            _outputStyle.normal.textColor = _TXTColor;
            _outputStyle.alignment = TextAnchor.MiddleRight;

            _outputTypeStyle = new GUIStyle();
            _outputTypeStyle.normal.textColor = _TXTAltColor;
            _outputTypeStyle.alignment = TextAnchor.MiddleRight;

            if (_BGTex == null) {
                _BGTex = new Texture2D(1, 1);
                _BGTex.hideFlags = HideFlags.HideAndDontSave;
                _BGTex.SetPixel(0, 0, _BGColor);
                _BGTex.Apply();
            }

            if (_BGAltTex == null) {
                _BGAltTex = new Texture2D(1, 1);
                _BGAltTex.hideFlags = HideFlags.HideAndDontSave;
                _BGAltTex.SetPixel(0, 0, _BGAltColor);
                _BGAltTex.Apply();
            }

            // Outlets
            _outletRenderer = new OutletRenderer();
        }