re-draw floater gui texture

This commit is contained in:
minjaesong
2020-01-05 21:44:44 +09:00
parent f36209e3bf
commit 697424efc4
10 changed files with 16 additions and 24 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -10,7 +10,7 @@ import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
*/
object FloatDrawer : Disposable {
val tile = TextureRegionPack("assets/graphics/gui/message_black_tileable.tga", 8, 8)
val tile = TextureRegionPack("assets/graphics/gui/message_white_tileable.tga", 16, 16)
init {
AppLoader.disposableSingletonsPool.add(this)

View File

@@ -15,6 +15,9 @@ class UITooltip : UICanvas() {
override var openCloseTime: Second = 0f
private val tooltipBackCol = Color(0xd5d4d3ff.toInt())
private val tooltipForeCol = Color(0x404040ff)
var message: String = ""
set(value) {
field = value
@@ -37,16 +40,17 @@ class UITooltip : UICanvas() {
val mouseX = 4f
val mouseY = 6f
val tooltipY = mouseY - height
val tooltipYoff = 12
val tooltipY = mouseY - height + tooltipYoff
val txtW = msgWidth + 2f * textMarginX
batch.color = Color.WHITE
batch.color = tooltipBackCol
FloatDrawer(batch, mouseX - textMarginX, tooltipY, txtW, font.lineHeight)
batch.color = tooltipForeCol
font.draw(batch, message,
mouseX,
mouseY - height
mouseY - height + tooltipYoff
)
}

BIN
work_files/graphics/gui/message.psd LFS Normal file → Executable file

Binary file not shown.