Exemplo n.º 1
0
        public static void UpdateBlockTheme()
        {
            if (BloxEdGlobal.BlockTheme < 0 || BloxEdGlobal.BlockTheme >= BloxEdGUI.BlockThemeNames.Length)
            {
                BloxEdGlobal.BlockTheme = 0;
            }
            BloxEdGUI.themeName = BloxEdGUI.BlockThemeNames[BloxEdGlobal.BlockTheme].text;
            BloxEdGUI.Styles.ActionLabel.normal.textColor     = BloxEdGUI.BlockFontColour();
            BloxEdGUI.Styles.ActionBoldLabel.normal.textColor = BloxEdGUI.BlockFontColour();
            BloxEdGUI.Styles.FieldLabel.normal.textColor      = BloxEdGUI.BlockFontColour();
            BloxEdGUI.Styles.ValueLabel.normal.textColor      = BloxEdGUI.BlockFontColour();
            BloxEdGUI.Styles.IconLabel.normal.textColor       = BloxEdGUI.BlockFontColour();
            for (int i = 0; i < BloxEdGUI.Styles.Event.Length; i++)
            {
                BloxEdGUI.Styles.Event[i].normal.background   = BloxEdGUI.LoadBlockTexture("event" + i);
                BloxEdGUI.Styles.Event[i].onNormal.background = BloxEdGUI.LoadBlockTexture("event" + i);
                BloxEdGUI.Styles.Event[i].normal.textColor    = BloxEdGUI.BlockFontColour();
                BloxEdGUI.Styles.Event[i].onNormal.textColor  = BloxEdGUI.BlockFontColour();
            }
            for (int j = 0; j < BloxEdGUI.Styles.Value.Length; j++)
            {
                BloxEdGUI.Styles.Value[j].normal.background = BloxEdGUI.LoadBlockTexture("value" + j);
                BloxEdGUI.Styles.Value[j].normal.textColor  = BloxEdGUI.BlockFontColour();
            }
            foreach (KeyValuePair <string, GUIStyle[]> item in BloxEdGUI.Styles.Action)
            {
                for (int k = 0; k < item.Value.Length; k++)
                {
                    item.Value[k].normal.background = BloxEdGUI.LoadBlockTexture("act_" + item.Key + ".action" + k);
                    item.Value[k].normal.textColor  = BloxEdGUI.BlockFontColour();
                }
            }
            for (int l = 0; l < BloxEdGUI.Styles.Container.Length; l++)
            {
                BloxEdGUI.Styles.Container[l].normal.background = BloxEdGUI.LoadBlockTexture("container" + l);
                BloxEdGUI.Styles.Container[l].normal.textColor  = BloxEdGUI.BlockFontColour();
            }
            for (int m = 0; m < BloxEdGUI.Styles.Select.Length; m++)
            {
                BloxEdGUI.Styles.Select[m].normal.background = BloxEdGUI.LoadBlockTexture("select" + m);
                BloxEdGUI.Styles.Select[m].normal.textColor  = BloxEdGUI.BlockFontColour();
            }
            BloxEdGUI.Styles.Error.normal.background = BloxEdGUI.LoadBlockTexture("error0");
            BloxEditorWindow instance = BloxEditorWindow.Instance;

            if ((object)instance != null)
            {
                instance.Repaint();
            }
        }
Exemplo n.º 2
0
 public StyleDefs()
 {
     plyEdGUI.UseLightText(GUI.skin.label.normal.textColor);
     this._fontSize       = EditorPrefs.GetInt("Blox.BlocksFontSize", this._fontSize);
     this.ToolbarBloxName = new GUIStyle(plyEdGUI.Styles.GUIToolbarLabel)
     {
         fontSize  = 11,
         fontStyle = FontStyle.Bold,
         padding   = new RectOffset(0, 10, 1, 0)
     };
     this.EventListElement = new GUIStyle(plyEdGUI.Styles.ListElement)
     {
         font     = null,
         fontSize = 13
     };
     this.PropsPanel = new GUIStyle(GUI.skin.FindStyle("WindowBackground"))
     {
         padding = new RectOffset(0, 0, 0, 0)
     };
     this.PropsHead = new GUIStyle(GUI.skin.label)
     {
         fontSize  = 12,
         alignment = TextAnchor.MiddleLeft,
         padding   = new RectOffset(6, 6, 0, 0)
     };
     this.PropsHead.normal.textColor = this.PropsHead.normal.textColor - new Color(0f, 0f, 0f, 0.3f);
     this.ActionLabel = new GUIStyle(GUI.skin.label)
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(0, 0, 0, 0),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(5, 0, 0, 0),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor = BloxEdGUI.BlockFontColour()
         }
     };
     this.ActionBoldLabel = new GUIStyle(this.ActionLabel)
     {
         fontStyle = FontStyle.Bold
     };
     this.FieldLabel = new GUIStyle(this.ActionLabel)
     {
         padding = new RectOffset(5, 3, 0, 0)
     };
     this.ValueLabel = new GUIStyle(this.ActionLabel)
     {
         padding = new RectOffset(0, 0, 0, 0)
     };
     this.IconLabel = new GUIStyle(this.ActionLabel)
     {
         font     = plyEdGUI.Styles.icoFont,
         fontSize = this._fontSize + 1
     };
     this.Event[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = false,
         alignment     = TextAnchor.UpperLeft,
         fontSize      = 14,
         fontStyle     = FontStyle.Bold,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(27, 3, 32, 11),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(5, 6, 29, 8),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(10f, -21f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("event0")
         },
         onNormal =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("event0")
         }
     };
     this.Event[1] = new GUIStyle(this.Event[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("event1")
         },
         onNormal =
         {
             background = BloxEdGUI.LoadBlockTexture("event1")
         }
     };
     this.Value[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(3, 2, 2, 2),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(4, 4, 3, 3),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("value0")
         }
     };
     this.Value[1] = new GUIStyle(this.Value[0])
     {
         padding = new RectOffset(2, 4, 3, 3),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("value1")
         }
     };
     this.Value[2] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value2")
         }
     };
     this.Value[3] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value3")
         }
     };
     this.Value[4] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value4")
         }
     };
     GUIStyle[] array = new GUIStyle[3];
     this.Action.Add("default", array);
     array[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(20, 5, 5, 5),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(6, 14, 7, 5),
         margin        = new RectOffset(0, 0, -3, -3),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("act_default.action0")
         }
     };
     array[1] = new GUIStyle(array[0])
     {
         padding = new RectOffset(6, 14, 7, 5),
         border  = new RectOffset(20, 0, 5, 5),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("act_default.action1")
         }
     };
     array[2] = new GUIStyle(array[0])
     {
         padding = new RectOffset(3, 6, 7, 4),
         border  = new RectOffset(2, 3, 5, 5),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("act_default.action2")
         }
     };
     this.Action.Add("grey", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action2")
             }
         }
     });
     this.Action.Add("red", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action2")
             }
         }
     });
     this.Action.Add("orange", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action2")
             }
         }
     });
     this.Action.Add("debug", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action2")
             }
         }
     });
     this.Container[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = false,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(24, 5, 5, 5),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(6, 14, 7, 5),
         margin        = new RectOffset(0, 0, -3, -3),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("container0")
         }
     };
     this.Container[1] = new GUIStyle(this.Container[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("container1")
         }
     };
     this.Container[2] = new GUIStyle(this.Container[0])
     {
         border   = new RectOffset(27, 5, 3, 11),
         overflow = new RectOffset(0, 0, 0, 0),
         padding  = new RectOffset(5, 0, 0, 8),
         margin   = new RectOffset(0, 0, -3, -3),
         normal   =
         {
             background = BloxEdGUI.LoadBlockTexture("container2")
         }
     };
     this.Select[0] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select0")
         }
     };
     this.Select[1] = new GUIStyle(array[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select1")
         }
     };
     this.Select[2] = new GUIStyle(this.Container[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select2")
         }
     };
     this.Select[3] = new GUIStyle(this.Container[2])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select3")
         }
     };
     this.Error = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("error0")
         }
     };
     this.Horizontal = new GUIStyle
     {
         stretchHeight = false,
         stretchWidth  = false,
         richText      = false,
         wordWrap      = false,
         clipping      = TextClipping.Clip,
         margin        = new RectOffset(0, 0, -3, -3)
     };
     this.DocParamBold = new GUIStyle(GUI.skin.FindStyle("ProjectBrowserHeaderBgTop"))
     {
         font          = GUI.skin.label.font,
         fontSize      = GUI.skin.label.fontSize,
         fontStyle     = FontStyle.Bold,
         alignment     = TextAnchor.MiddleLeft,
         richText      = false,
         wordWrap      = true,
         margin        = new RectOffset(0, 0, 1, 0),
         padding       = new RectOffset(5, 5, 2, 2),
         stretchHeight = false,
         stretchWidth  = true,
         fixedHeight   = 0f,
         fixedWidth    = 0f,
         normal        =
         {
             textColor = GUI.skin.label.normal.textColor
         }
     };
     this.DocParamNormal = new GUIStyle(this.DocParamBold)
     {
         fontStyle = FontStyle.Normal,
         richText  = true,
         margin    = new RectOffset(0, 0, 0, 0),
         padding   = new RectOffset(5, 5, 5, 5)
     };
     this.EventsPopupDocsHead = new GUIStyle(plyEdGUI.Styles.TreeViewListButtons);
     this.CanvasBlock         = new GUIStyle();
 }
Exemplo n.º 3
0
 public StyleDefs()
 {
     this._fontSize       = EditorPrefs.GetInt("Blox.BlocksFontSize", this._fontSize);
     this.ToolbarBloxName = new GUIStyle(GUI.skin.label)
     {
         fontSize  = 11,
         fontStyle = FontStyle.Bold,
         padding   = new RectOffset(0, 10, 1, 0)
     };
     this.EventListElement = new GUIStyle(plyEdGUI.Styles.ListElement)
     {
         font     = null,
         fontSize = 13
     };
     this.PropsPanel = new GUIStyle(GUI.skin.FindStyle("WindowBackground"))
     {
         padding = new RectOffset(0, 0, 0, 0)
     };
     this.PropsHead = new GUIStyle(GUI.skin.label)
     {
         fontSize  = 12,
         alignment = TextAnchor.MiddleLeft,
         padding   = new RectOffset(6, 6, 0, 0)
     };
     this.PropsHead.normal.textColor = this.PropsHead.normal.textColor - new Color(0f, 0f, 0f, 0.3f);
     this.ActionLabel = new GUIStyle(GUI.skin.label)
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(0, 0, 0, 0),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(5, 0, 0, 0),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor = BloxEdGUI.BlockFontColour()
         }
     };
     this.ActionBoldLabel = new GUIStyle(this.ActionLabel)
     {
         fontStyle = FontStyle.Bold
     };
     this.FieldLabel = new GUIStyle(this.ActionLabel)
     {
         padding = new RectOffset(5, 3, 0, 0)
     };
     this.ValueLabel = new GUIStyle(this.ActionLabel)
     {
         padding = new RectOffset(0, 0, 0, 0)
     };
     this.IconLabel = new GUIStyle(this.ActionLabel)
     {
         font     = plyEdGUI.Styles.icoFont,
         fontSize = this._fontSize + 1
     };
     this.Event[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = false,
         alignment     = TextAnchor.UpperLeft,
         fontSize      = 14,
         fontStyle     = FontStyle.Bold,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(27, 3, 32, 11),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(5, 6, 29, 8),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(10f, -21f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("event0")
         },
         onNormal =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("event0")
         }
     };
     this.Event[1] = new GUIStyle(this.Event[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("event1")
         },
         onNormal =
         {
             background = BloxEdGUI.LoadBlockTexture("event1")
         }
     };
     this.Value[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(3, 2, 2, 2),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(4, 4, 3, 3),
         margin        = new RectOffset(0, 0, 0, 0),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("value0")
         }
     };
     this.Value[1] = new GUIStyle(this.Value[0])
     {
         padding = new RectOffset(2, 4, 3, 3),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("value1")
         }
     };
     this.Value[2] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value2")
         }
     };
     this.Value[3] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value3")
         }
     };
     this.Value[4] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("value4")
         }
     };
     GUIStyle[] array = new GUIStyle[3];
     this.Action.Add("default", array);
     array[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = true,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(20, 5, 5, 5),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(6, 14, 7, 5),
         margin        = new RectOffset(0, 0, -3, -3),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("act_default.action0")
         }
     };
     array[1] = new GUIStyle(array[0])
     {
         padding = new RectOffset(6, 14, 7, 5),
         border  = new RectOffset(20, 0, 5, 5),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("act_default.action1")
         }
     };
     array[2] = new GUIStyle(array[0])
     {
         padding = new RectOffset(3, 6, 7, 4),
         border  = new RectOffset(2, 3, 5, 5),
         normal  =
         {
             background = BloxEdGUI.LoadBlockTexture("act_default.action2")
         }
     };
     this.Action.Add("grey", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_grey.action2")
             }
         }
     });
     this.Action.Add("red", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_red.action2")
             }
         }
     });
     this.Action.Add("orange", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_orange.action2")
             }
         }
     });
     this.Action.Add("debug", new GUIStyle[3]
     {
         new GUIStyle(array[0])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action0")
             }
         },
         new GUIStyle(array[1])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action1")
             }
         },
         new GUIStyle(array[2])
         {
             normal =
             {
                 background = BloxEdGUI.LoadBlockTexture("act_debug.action2")
             }
         }
     });
     this.Container[0] = new GUIStyle
     {
         richText      = false,
         stretchWidth  = false,
         stretchHeight = false,
         alignment     = TextAnchor.MiddleLeft,
         fontSize      = this._fontSize,
         fontStyle     = FontStyle.Normal,
         clipping      = TextClipping.Clip,
         wordWrap      = false,
         imagePosition = ImagePosition.ImageLeft,
         border        = new RectOffset(24, 5, 5, 5),
         overflow      = new RectOffset(0, 0, 0, 0),
         padding       = new RectOffset(6, 14, 7, 5),
         margin        = new RectOffset(0, 0, -3, -3),
         contentOffset = new Vector2(0f, 0f),
         normal        =
         {
             textColor  = BloxEdGUI.BlockFontColour(),
             background = BloxEdGUI.LoadBlockTexture("container0")
         }
     };
     this.Container[1] = new GUIStyle(this.Container[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("container1")
         }
     };
     this.Container[2] = new GUIStyle(this.Container[0])
     {
         border   = new RectOffset(27, 5, 3, 11),
         overflow = new RectOffset(0, 0, 0, 0),
         padding  = new RectOffset(5, 0, 0, 8),
         margin   = new RectOffset(0, 0, -3, -3),
         normal   =
         {
             background = BloxEdGUI.LoadBlockTexture("container2")
         }
     };
     this.Select[0] = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select0")
         }
     };
     this.Select[1] = new GUIStyle(array[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select1")
         }
     };
     this.Select[2] = new GUIStyle(this.Container[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select2")
         }
     };
     this.Select[3] = new GUIStyle(this.Container[2])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("select3")
         }
     };
     this.Error = new GUIStyle(this.Value[0])
     {
         normal =
         {
             background = BloxEdGUI.LoadBlockTexture("error0")
         }
     };
     this.Horizontal = new GUIStyle
     {
         stretchHeight = false,
         stretchWidth  = false,
         richText      = false,
         wordWrap      = false,
         clipping      = TextClipping.Clip,
         margin        = new RectOffset(0, 0, -3, -3)
     };
     this.DocReturn = new GUIStyle(GUI.skin.label)
     {
         richText  = false,
         wordWrap  = true,
         fontStyle = FontStyle.Bold,
         margin    = new RectOffset(0, 0, 1, 0),
         border    = new RectOffset(4, 0, 4, 0),
         padding   = new RectOffset(5, 5, 2, 2),
         normal    =
         {
             background = plyEdGUI.LoadTextureResource("BloxEditor.res.skin.doc_return" + (EditorGUIUtility.isProSkin ? "_p" : "") + ".png", typeof(BloxEditorWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp)
         }
     };
     this.DocParam = new GUIStyle(GUI.skin.label)
     {
         richText = true,
         wordWrap = true,
         margin   = new RectOffset(0, 0, 0, 0),
         border   = new RectOffset(1, 1, 0, 2),
         padding  = new RectOffset(5, 5, 5, 5),
         normal   =
         {
             background = plyEdGUI.LoadTextureResource("BloxEditor.res.skin.doc_param" + (EditorGUIUtility.isProSkin ? "_p" : "") + ".png", typeof(BloxEditorWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp)
         }
     };
 }