Esempio n. 1
0
 internal void Init()
 {
     this.def         = new GUIStyle(GUI.skin.box).Padding(6, 6, 6, 6);
     this.flat        = new GUIStyle(this.def).Background(DeStylePalette.whiteSquare);
     this.flatAlpha10 = new GUIStyle(this.def).Background(DeStylePalette.whiteSquareAlpha10);
     this.flatAlpha25 = new GUIStyle(this.def).Background(DeStylePalette.whiteSquareAlpha25);
     this.sticky      = new DeSkinStyle(new GUIStyle(this.flatAlpha25).MarginTop(-2).MarginBottom(0));
     this.stickyTop   = new DeSkinStyle(new GUIStyle(this.flatAlpha25).MarginTop(-2).MarginBottom(7), new GUIStyle(this.flatAlpha10).MarginTop(-2).MarginBottom(7));
 }
Esempio n. 2
0
 internal void Init()
 {
     def            = new GUIStyle(GUI.skin.box).Padding(6, 6, 6, 6);
     flat           = new GUIStyle(def).Background(DeStylePalette.whiteSquare);
     flatAlpha10    = new GUIStyle(def).Background(DeStylePalette.whiteSquareAlpha10);
     flatAlpha25    = new GUIStyle(def).Background(DeStylePalette.whiteSquareAlpha25);
     sticky         = new DeSkinStyle(new GUIStyle(flatAlpha25).MarginTop(-2).MarginBottom(0), new GUIStyle(flatAlpha10).MarginTop(-2).MarginBottom(0));
     stickyTop      = new DeSkinStyle(new GUIStyle(flatAlpha25).MarginTop(-2).MarginBottom(7), new GUIStyle(flatAlpha10).MarginTop(-2).MarginBottom(7));
     outline01      = DeGUI.styles.box.flat.Clone().Background(DeStylePalette.squareBorderEmpty01);
     outline02      = outline01.Clone().Border(new RectOffset(5, 5, 5, 5)).Background(DeStylePalette.squareBorderEmpty02);
     outline03      = outline01.Clone().Border(new RectOffset(7, 7, 7, 7)).Background(DeStylePalette.squareBorderEmpty03);
     roundOutline01 = outline02.Clone().Background(DeStylePalette.squareBorderCurvedEmpty);
     roundOutline02 = outline02.Clone().Background(DeStylePalette.squareBorderCurvedEmptyThick);
 }
Esempio n. 3
0
 public DeSkinStyle(GUIStyle style)
 {
     this      = new DeSkinStyle();
     this.free = style;
     this.pro  = new GUIStyle(style);
 }