changes in fade-slide transition container

This commit is contained in:
minjaesong
2023-07-07 00:19:56 +09:00
parent c0a3da1b66
commit c28b286553
5 changed files with 75 additions and 40 deletions

View File

@@ -214,13 +214,15 @@ class UIInventoryFull(
private val transitionalItemCells = UIInventoryCells(this)
private val transitionalEscMenu = UIInventoryEscMenu(this)
private val transitionPanel = UIItemHorizontalFadeSlide(
this,
(width - internalWidth) / 2,
INVENTORY_CELLS_OFFSET_Y(),
width,
App.scr.height,
1f,
transitionalCraftingUI, transitionalItemCells, transitionalEscMenu
this,
(width - internalWidth) / 2,
INVENTORY_CELLS_OFFSET_Y(),
width,
App.scr.height,
1f,
listOf(transitionalCraftingUI),
listOf(transitionalItemCells),
listOf(transitionalEscMenu)
)

View File

@@ -176,17 +176,12 @@ class UILoadSavegame(val remoCon: UIRemoCon) : Advanceable() {
width,
App.scr.height,
0f,
transitionalListing, transitionalManage
listOf(transitionalListing),
listOf(transitionalManage, transitionalAutosave, transitionalNewCharacter)
)
init {
listOf(transitionalAutosave, transitionalManage, transitionalNewCharacter).forEach {
it.posX = (-width / 2f).roundToInt()
it.initialX = (-width / 2f).roundToInt()
it.posY = 0
it.initialY = 0
it.opacity = 0f
}
}
private fun getDrawTextualInfoFun(disks: DiskPair): (UIItem, SpriteBatch) -> Unit {

View File

@@ -64,7 +64,9 @@ class UIWorldPortal : UICanvas(
width,
App.scr.height,
0f,
transitionalListing, transitionalSearch
listOf(transitionalListing),
listOf(),
listOf()
)
/**