mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
reconfiguring docs and libs
- Targeting Java 10 - Gdx nightly 20181111 (1.9.9)
This commit is contained in:
@@ -38,7 +38,7 @@ class UIItemInventoryCatBar(
|
||||
// set up all the buttons
|
||||
init {
|
||||
// place sub UIs: Image Buttons
|
||||
mainButtons = Array(catArrangement.size, { index ->
|
||||
mainButtons = Array(catArrangement.size) { index ->
|
||||
val iconPosX = ((buttonGapSize / 2) + index * (catIcons.tileW + buttonGapSize)).roundInt()
|
||||
val iconPosY = 0
|
||||
|
||||
@@ -51,7 +51,7 @@ class UIItemInventoryCatBar(
|
||||
posY = posY + iconPosY,
|
||||
highlightable = true
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// side buttons
|
||||
@@ -65,7 +65,7 @@ class UIItemInventoryCatBar(
|
||||
println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
|
||||
println("[UIItemInventoryCatBar] posX: $posX")
|
||||
|
||||
sideButtons = Array(iconIndex.size, { index ->
|
||||
sideButtons = Array(iconIndex.size) { index ->
|
||||
val iconPosX = if (index < 2)
|
||||
(relativeStartX + sideButtonsGap + (sideButtonsGap + catIcons.tileW) * index).roundInt()
|
||||
else
|
||||
@@ -83,7 +83,7 @@ class UIItemInventoryCatBar(
|
||||
activeCol = if (index == 0 || index == 3) Color(0xfff066_ff.toInt()) else Color(0xffffff7f.toInt()),
|
||||
highlightable = (index == 0 || index == 3)
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user