コード例 #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
    //--------------------------------------------------------------------------------------
    // Methods:
    //--------------------------------------------------------------------------------------

    /// <summary>
    /// Initializes the state.
    /// </summary>
    public override void Initialize()
    {
        background = core.LoadMenuTexture("BlackBackground");
        backTexPos = new Rect(0, 0, Screen.width, Screen.height);

        var height = GuiUtil.GetScaledValue(30);

        msgLblPos = new Rect(0, Screen.height - height, 500, height);

        core.LoadLevelScene(true);
        core.HideMenuBackground();

        textStyle = GuiUtil.MakeLabelStyle(FONT_SIZE_X1, AtariPalette.Hue00Lum14);
    }
コード例 #3
0
 /// <summary>
 /// Gets a scaled value.
 /// </summary>
 /// <param name="victim">The value to scale.</param>
 /// <returns>The scaled value.</returns>
 protected Rect getScaledValue(Rect victim)
 {
     return(GuiUtil.GetScaledValue(victim));
 }
コード例 #4
0
 /// <summary>
 /// Gets a scaled value.
 /// </summary>
 /// <param name="victim">The value to scale.</param>
 /// <returns>The scaled value.</returns>
 protected float getScaledValue(float victim)
 {
     return(GuiUtil.GetScaledValue(victim));
 }
コード例 #5
0
    //--------------------------------------------------------------------------------------
    // Methods (Scale):
    //--------------------------------------------------------------------------------------

    /// <summary>
    /// Gets a scaled value.
    /// </summary>
    /// <param name="victim">The value to scale.</param>
    /// <returns>The scaled value.</returns>
    protected int getScaledValue(int victim)
    {
        return(GuiUtil.GetScaledValue(victim));
    }