crafting ui nearly complete

This commit is contained in:
minjaesong
2022-07-02 23:28:33 +09:00
parent 4eb3ad07f3
commit 523dd458ce
12 changed files with 189 additions and 64 deletions

View File

@@ -37,6 +37,8 @@ open class UIItemTextButton(
/** Colour on normal status */
val inactiveCol: Color = Toolkit.Theme.COL_LIST_DEFAULT,
val disabledCol: Color = Toolkit.Theme.COL_INVENTORY_CELL_BORDER,
val hasBorder: Boolean = false,
val paddingLeft: Int = 0,
@@ -108,7 +110,8 @@ open class UIItemTextButton(
}
batch.color = if (highlighted) highlightCol
batch.color = if (!isActive) disabledCol
else if (highlighted) highlightCol
else if (mouseUp) activeCol
else inactiveCol