less fancy inventory transition WIP

This commit is contained in:
minjaesong
2020-08-22 18:23:17 +09:00
parent ba424accf2
commit dd1989320d
24 changed files with 153 additions and 132 deletions

View File

@@ -11,13 +11,12 @@ import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
class UIBuildingMakerToolbox : UICanvas() {
val toolsTexture = TextureRegionPack(ModMgr.getGdxFile("basegame", "gui/building_maker_toolbox.tga"), 16, 16)
val tools = Array(toolsTexture.verticalCount, { UIItemImageButton(
val tools = Array(toolsTexture.verticalCount) { UIItemImageButton(
this, toolsTexture.get(0, it),
posX = 0,
posY = 20 * it,
initialX = 0,
initialY = 20 * it,
highlightable = true
) })
) }
override var width = 16
override var height = 20 * tools.size - 4