예제 #1
0
파일: DUIStyles.cs 프로젝트: ZaK14120/ARS
 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 }
     });
 }
예제 #2
0
파일: DUIStyles.cs 프로젝트: ZaK14120/ARS
        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);
        }
예제 #3
0
파일: DUIStyles.cs 프로젝트: ZaK14120/ARS
 public static GUIStyle GetStyle(NotificationWindow styleName)
 {
     return(Skin.GetStyle(styleName.ToString()));
 }