/// <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 }
//-------------------------------------------------------------------------------------- // 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); }
/// <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)); }
/// <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)); }
//-------------------------------------------------------------------------------------- // 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)); }