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 } }); }
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); }
public static GUIStyle GetStyle(NotificationWindow styleName) { return(Skin.GetStyle(styleName.ToString())); }