mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
changes in fade-slide transition container
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -64,7 +64,9 @@ class UIWorldPortal : UICanvas(
|
||||
width,
|
||||
App.scr.height,
|
||||
0f,
|
||||
transitionalListing, transitionalSearch
|
||||
listOf(transitionalListing),
|
||||
listOf(),
|
||||
listOf()
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user