Exemplo n.º 1
0
 private static GUIStyle GetSideButtonSelectedStyle(string styleName, QTexture qTexture, Color normalTextColor, RectOffset border, RectOffset padding)
 {
     return(new GUIStyle()
     {
         name = styleName.ToString(),
         normal = { background = qTexture.normal2D, textColor = normalTextColor },
         onNormal = { background = qTexture.normal2D, textColor = normalTextColor },
         border = border,
         padding = padding,
         fontSize = 20,
         alignment = TextAnchor.MiddleLeft,
         font = QResources.GetFont(FontName.Sansation.Regular)
     });
 }
Exemplo n.º 2
0
 private static GUIStyle GetSideButtonStyle(string styleName, QTexture qTexture, Color normalTextColor, Color hoverTextColor, Color activeTextColor, RectOffset border, RectOffset padding, int fontSize = 20)
 {
     return(new GUIStyle()
     {
         name = styleName,
         normal = { background = qTexture.normal2D, textColor = normalTextColor },
         onNormal = { background = qTexture.normal2D, textColor = normalTextColor },
         hover = { background = qTexture.hover2D, textColor = hoverTextColor },
         onHover = { background = qTexture.hover2D, textColor = hoverTextColor },
         active = { background = qTexture.active2D, textColor = activeTextColor },
         onActive = { background = qTexture.active2D, textColor = activeTextColor },
         border = border,
         padding = padding,
         fontSize = fontSize,
         alignment = TextAnchor.MiddleLeft,
         font = QResources.GetFont(FontName.Sansation.Regular)
     });
 }