Beispiel #1
0
 private static GUIStyle GetButtonStyle(NotificationWindow styleName, QTexture qTexture)
 {
     return(new GUIStyle()
     {
         name = styleName.ToString(),
         normal = { background = qTexture.normal2D },
         onNormal = { background = qTexture.normal2D },
         hover = { background = qTexture.hover2D },
         onHover = { background = qTexture.hover2D },
         active = { background = qTexture.active2D },
         onActive = { background = qTexture.active2D }
     });
 }
Beispiel #2
0
        private static GUIStyle GetBlackTextStyle(NotificationWindow styleName, TextAnchor alignment, FontStyle fontStyle, int fontSize, Font font = null)
        {
            GUIStyle style = new GUIStyle(GUI.skin.label);

            style.name             = styleName.ToString();
            style.normal.textColor = QuickEngine.Extensions.ColorExtensions.ColorFrom256(29, 24, 25);
            style.alignment        = alignment;
            style.fontStyle        = fontStyle;
            style.fontSize         = fontSize;
            style.font             = font;
            style.wordWrap         = true;
            style.richText         = true;
            return(style);
        }
Beispiel #3
0
 public static GUIStyle GetStyle(NotificationWindow styleName)
 {
     return(Skin.GetStyle(styleName.ToString()));
 }