crafting ui is on the inventory menu now

This commit is contained in:
minjaesong
2022-03-11 11:34:33 +09:00
parent d09befee6f
commit f9f9aa414a
10 changed files with 132 additions and 50 deletions

View File

@@ -204,7 +204,7 @@ void main() {
toggleKeyExtra.forEachIndexed { index, getKey ->
if (Gdx.input.isKeyJustPressed(getKey())) {
toggleKeyExtraAction[0].invoke(this)
toggleKeyExtraAction[index].invoke(this)
}
}

View File

@@ -1,6 +1,7 @@
package net.torvald.terrarum.ui
import com.jme3.math.FastMath
import net.torvald.terrarum.INGAME
import kotlin.math.absoluteValue
import kotlin.math.roundToInt
@@ -40,5 +41,6 @@ class UIItemHorizontalFadeSlide(
it.posY = it.initialY
it.opacity = getOpacity(index)
}
INGAME.setTooltipMessage(null)
}
}