示例#1
0
    /// <summary>
    /// Shows the version of the game.
    /// </summary>
    protected void showVersion()
    {
#if SHOW_VERSION
        var height = GuiUtil.GetScaledValue(30);
        GuiUtil.ChangeFont(GUI.skin.label, FONT_SIZE_X1, AtariPalette.Hue01Lum12, TextAnchor.UpperLeft);
        GUI.Label(new Rect(0, Screen.height - height, 500, height), Strings.VERSION);
#endif
    }
示例#2
0
 /// <summary>
 /// Changes the button skin font.
 /// </summary>
 /// <param name="fontSize">The size of the font.</param>
 /// <param name="color">The color of the font.</param>
 protected void changeButtonFont(int fontSize, Color color)
 {
     GuiUtil.ChangeFont(GUI.skin.button, fontSize, color);
 }
示例#3
0
 /// <summary>
 /// Changes the buton skin font & textures.
 /// </summary>
 /// <param name="fontSize">The size of the font.</param>
 /// <param name="color">The color of the font.</param>
 /// <param name="normal">The normal state texture.</param>
 /// <param name="hover">The hover state texture.</param>
 /// <param name="active">The active state texture.</param>
 protected void changeButtonTextures(int fontSize, Color color,
                                     Texture2D normal, Texture2D hover, Texture2D active)
 {
     GuiUtil.ChangeFont(GUI.skin.button, fontSize, color);
     GuiUtil.ChangeTextures(GUI.skin.button, normal, hover, active);
 }
示例#4
0
    //--------------------------------------------------------------------------------------
    // Methods (GUI):
    //--------------------------------------------------------------------------------------

    /// <summary>
    /// Changes the label skin font.
    /// </summary>
    /// <param name="fontSize">The size of the font.</param>
    /// <param name="color">The color of the font.</param>
    /// <param name="alignment">The text aligment.</param>
    protected void changeLabelFont(int fontSize, Color color,
                                   TextAnchor alignment = TextAnchor.UpperLeft)
    {
        GuiUtil.ChangeFont(GUI.skin.label, fontSize, color, alignment);
    }