Class ShopUtils

java.lang.Object
com.deco2800.game.components.shop.ShopUtils

public class ShopUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.badlogic.gdx.scenes.scene2d.ui.TextButton
    createImageTextButton(String text, com.badlogic.gdx.graphics.Color color, String textString, float scale, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable up, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable down, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, Boolean isDisabled)
     
    static com.badlogic.gdx.scenes.scene2d.ui.TextButton
    createInventoryButton(String text, com.badlogic.gdx.graphics.Color color, String textString, float scale, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable down, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable up, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, Boolean isDisabled)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShopUtils

      public ShopUtils()
  • Method Details

    • createImageTextButton

      public static com.badlogic.gdx.scenes.scene2d.ui.TextButton createImageTextButton(String text, com.badlogic.gdx.graphics.Color color, String textString, float scale, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable up, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable down, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, Boolean isDisabled)
      Parameters:
      text - : The text to display in the button
      color - : The color for the font
      down - : TextureRegionDrawable for when button is clicked
      up - : TextureRegionDrawable for when button is not clicked
      skin - : the default skin to set the font
      isDisabled - : true if you want the button to act as an image with text
      Returns:
      TextButton with image
    • createInventoryButton

      public static com.badlogic.gdx.scenes.scene2d.ui.TextButton createInventoryButton(String text, com.badlogic.gdx.graphics.Color color, String textString, float scale, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable down, com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable up, com.badlogic.gdx.scenes.scene2d.ui.Skin skin, Boolean isDisabled)