mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-14 10:30:22 -07:00
Move nametag up as to not cover the health bar
This commit is contained in:
parent
c0928d10c0
commit
3f2eaa2eac
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ class plugin : Plugin() {
|
||||||
override fun PlayerOverheadDraw(player: Player?, screenX: Int, screenY: Int) {
|
override fun PlayerOverheadDraw(player: Player?, screenX: Int, screenY: Int) {
|
||||||
if (player == null) return
|
if (player == null) return
|
||||||
val width = Fonts.p11Full.getStringWidth(player.username)
|
val width = Fonts.p11Full.getStringWidth(player.username)
|
||||||
API.FillRect((screenX - width / 2) - 2, screenY - 12, width + 4, 14, FontColor.fromColor(Color.BLACK).colorCode, 125)
|
API.FillRect((screenX - width / 2) - 2, screenY - 20, width + 4, 14, FontColor.fromColor(Color.BLACK).colorCode, 125)
|
||||||
API.DrawText(FontType.SMALL, FontColor.fromColor(Color.WHITE), TextModifier.CENTER, player.username.toString(), screenX, screenY)
|
API.DrawText(FontType.SMALL, FontColor.fromColor(Color.WHITE), TextModifier.CENTER, player.username.toString(), screenX, screenY - 8)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue