Beispiel #1
0
 void MakeWndStyle()
 {
     _wndStyle                    = new GUIStyle();
     _wndStyle.border             = new RectOffset(6, 6, 34, 1);
     _wndStyle.padding            = new RectOffset(5, 5, 5, 5);
     _wndStyle.richText           = true;
     _wndStyle.alignment          = TextAnchor.UpperCenter;
     _wndStyle.normal.background  = NodeBackgroundTex;
     _wndStyle.normal.textColor   = ColorHelper.ByWeb("#222");
     _wndStyle.focused.background = NodeBackgroundTex;
     _wndStyle.hover.background   = NodeBackgroundTex;
     _wndStyle.active.background  = NodeBackgroundTex;
     _wndStyle.fontSize           = Mathf.RoundToInt(12 * _scale);
 }