Class ShopUtils
java.lang.Object
com.deco2800.game.components.shop.ShopUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.badlogic.gdx.scenes.scene2d.ui.TextButtoncreateImageTextButton(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.TextButtoncreateInventoryButton(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)
-
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 buttoncolor- : The color for the fontdown- : TextureRegionDrawable for when button is clickedup- : TextureRegionDrawable for when button is not clickedskin- : the default skin to set the fontisDisabled- : 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)
-