mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 21:31:51 +09:00
tiling placeholder actorblock (for future use)
This commit is contained in:
@@ -118,6 +118,7 @@ object Block {
|
||||
const val DAYLIGHT_CAPACITOR = "basegame:258"
|
||||
|
||||
|
||||
const val ACTORBLOCK_TILING_PLACEHOLDER = "basegame:4090"
|
||||
const val ACTORBLOCK_NO_COLLISION = "basegame:4091"
|
||||
const val ACTORBLOCK_FULL_COLLISION = "basegame:4092"
|
||||
const val ACTORBLOCK_ALLOW_MOVE_DOWN = "basegame:4093"
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.torvald.terrarum.*
|
||||
import net.torvald.terrarum.App.*
|
||||
import net.torvald.terrarum.blockstats.MinimapComposer
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
import net.torvald.terrarum.modulebasegame.TerrarumIngame
|
||||
import net.torvald.terrarum.modulebasegame.gameactors.ActorHumanoid
|
||||
import net.torvald.terrarum.ui.UICanvas
|
||||
import net.torvald.terrarum.ui.UIItemHorizontalFadeSlide
|
||||
@@ -199,6 +198,7 @@ class UIInventoryFull(
|
||||
this.handler.toggleKeyExtra.add { App.getConfigInt("control_key_gamemenu") }
|
||||
this.handler.toggleKeyExtraAction.add {
|
||||
if (it.isClosed) {
|
||||
INGAME.setTooltipMessage(null)
|
||||
transitionPanel.forcePosition(2)
|
||||
catBar.setSelectedPanel(2)
|
||||
it.setAsOpen()
|
||||
@@ -246,6 +246,8 @@ class UIInventoryFull(
|
||||
// UI items
|
||||
catBar.render(batch, camera)
|
||||
transitionPanel.render(batch, camera)
|
||||
|
||||
// if (transitionPanel.currentPosition != 1f) INGAME.setTooltipMessage(null)
|
||||
}
|
||||
|
||||
fun rebuildList() {
|
||||
|
||||
@@ -123,7 +123,12 @@ class CreateTileAtlas {
|
||||
System.err.println("Couldn't load file $filehandle from $modname, skipping...")
|
||||
}
|
||||
}
|
||||
|
||||
// hard-coding shits
|
||||
tags["basegame:4090"] = RenderTag(
|
||||
tags["basegame:4090"]!!.tileNumber,
|
||||
RenderTag.CONNECT_MUTUAL,
|
||||
RenderTag.MASK_NA
|
||||
)
|
||||
|
||||
// test print
|
||||
//PixmapIO2.writeTGA(Gdx.files.absolute("${AppLoader.defaultDir}/atlas.tga"), atlas, false)
|
||||
|
||||
Reference in New Issue
Block a user