mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
watch is semitransparent when EL is off
This commit is contained in:
@@ -65,7 +65,12 @@ class UIBasicNotifier(private val player: ActorHumanoid?) : UICanvas() {
|
||||
private val mailCount: Int
|
||||
get() = 0
|
||||
|
||||
private val lcdLitCol = Color(0x141414_ff)
|
||||
private val drawCol = Color(1f,1f,1f,0.5f)
|
||||
private val lcdLitColELoff = Color(0x141414_aa)
|
||||
private val lcdLitColELon = Color(0x141414_ff)
|
||||
|
||||
private val lcdLitCol: Color
|
||||
get() = if (ELon) lcdLitColELon else lcdLitColELoff
|
||||
|
||||
fun getTempStr(): String {
|
||||
val sb = StringBuilder()
|
||||
@@ -114,7 +119,7 @@ class UIBasicNotifier(private val player: ActorHumanoid?) : UICanvas() {
|
||||
}
|
||||
else {
|
||||
// backplate
|
||||
batch.color = Color.WHITE
|
||||
batch.color = drawCol
|
||||
batch.draw(atlas.get(0, 0), 0f, 0f)
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,12 @@ class UITierOneWatch(private val player: ActorHumanoid?) : UICanvas() {
|
||||
private var moonDial = TextureRegionPack(ModMgr.getPath("basegame", "fonts/watch_17pxmoondial.tga"), 17, 17)
|
||||
private var moonDialCount = moonDial.horizontalCount
|
||||
|
||||
private val lcdLitCol = Color(0x141414_ff)
|
||||
private val drawCol = Color(1f,1f,1f,0.5f)
|
||||
private val lcdLitColELoff = Color(0x141414_aa)
|
||||
private val lcdLitColELon = Color(0x141414_ff)
|
||||
|
||||
private val lcdLitCol: Color
|
||||
get() = if (ELon) lcdLitColELon else lcdLitColELoff
|
||||
|
||||
private val worldTime: WorldTime
|
||||
get() = (Terrarum.ingame!!.world as GameWorldExtension).time
|
||||
@@ -63,7 +68,7 @@ class UITierOneWatch(private val player: ActorHumanoid?) : UICanvas() {
|
||||
}
|
||||
else {
|
||||
// backplate
|
||||
batch.color = Color.WHITE
|
||||
batch.color = drawCol
|
||||
batch.draw(atlas.get(0, 0), 0f, 0f)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user