finally working floating head on the minimap

This commit is contained in:
minjaesong
2021-12-22 16:00:21 +09:00
parent 782581a61b
commit c6bc628165
3 changed files with 51 additions and 45 deletions

View File

@@ -9,6 +9,7 @@ import com.badlogic.gdx.utils.Disposable
import net.torvald.random.HQRNG
import net.torvald.terrarum.*
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
import kotlin.math.roundToInt
/**
@@ -119,6 +120,9 @@ object Toolkit : Disposable {
fillArea(batch, x, y, thickness, otherEnd - y)
}
fun drawBoxBorder(batch: SpriteBatch, x: Float, y: Float, w: Float, h: Float) =
drawBoxBorder(batch, x.roundToInt(), y.roundToInt(), w.roundToInt(), h.roundToInt())
/**
* Parameters are THAT OF THE BOX, the border will be drawn OUTSIDE of the params you specified!
*/