mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
finally working floating head on the minimap
This commit is contained in:
@@ -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!
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user