i was dealing with wrong function xD

This commit is contained in:
minjaesong
2021-03-16 10:35:35 +09:00
parent 00298190a4
commit 8f5a89e415
3 changed files with 7 additions and 7 deletions

View File

@@ -23,8 +23,8 @@ class UIItemInventoryCatBar(
initialY: Int,
uiInternalWidth: Int,
override val width: Int,
val transitionReqFun: (Int) -> Unit,
val showSideButtons: Boolean
val showSideButtons: Boolean = false,
val panelTransitionReqFun: (Int) -> Unit = {} // for side buttons; for the selection change, override selectionChangeListener
) : UIItem(parentUI, initialX, initialY) {
companion object {
@@ -242,7 +242,7 @@ class UIItemInventoryCatBar(
if (transitionFired) {
transitionFired = false
transitionReqFun(selectedPanel)
panelTransitionReqFun(selectedPanel)
}
}
}