working "equipped" view with unequip

This commit is contained in:
minjaesong
2017-10-28 15:07:58 +09:00
parent 4e69f21c8b
commit 341d5e696c
7 changed files with 212 additions and 14 deletions

View File

@@ -4,6 +4,7 @@ import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.g2d.Batch
import com.badlogic.gdx.graphics.g2d.BitmapFont
import com.badlogic.gdx.graphics.g2d.GlyphLayout
import net.torvald.terrarum.round
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
/**
@@ -32,6 +33,9 @@ object TinyAlphNum : BitmapFont() {
val originalColour = batch.color
colourHolder = batch.color
val x = x.round()
val y = y.round()
var charsPrinted = 0
text.forEachIndexed { index, c ->
if (isColourCodeHigh(c)) {