mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
Commit start of plugin work
This commit is contained in:
parent
2bcf5c564d
commit
a6577064b0
18 changed files with 426 additions and 46 deletions
|
|
@ -0,0 +1,47 @@
|
|||
package OverheadDebugPlugin;
|
||||
|
||||
import plugin.Plugin;
|
||||
import plugin.api.API;
|
||||
import plugin.api.FontColor;
|
||||
import plugin.api.FontType;
|
||||
import plugin.api.TextModifier;
|
||||
import rt4.*;
|
||||
|
||||
public class plugin extends Plugin {
|
||||
@Override
|
||||
public void PlayerOverheadDraw(Player player, int screenX, int screenY) {
|
||||
API.DrawText(
|
||||
FontType.SMALL,
|
||||
FontColor.YELLOW,
|
||||
TextModifier.CENTER,
|
||||
player.username.toString(),
|
||||
screenX,
|
||||
screenY
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void NPCOverheadDraw(Npc npc, int screenX, int screenY) {
|
||||
String npcSb =
|
||||
(npc.type.name.strEquals(JagString.parse("null"))
|
||||
? npc.type.getMultiNpc() != null
|
||||
? "Wrapper [" + npc.type.getMultiNpc().name + " " + npc.type.getMultiNpc().id + "]"
|
||||
: "Wrapper"
|
||||
: npc.type.name) +
|
||||
" [Lvl: " +
|
||||
npc.type.combatLevel +
|
||||
"] [ID: " +
|
||||
npc.type.id +
|
||||
"] [Vb: " +
|
||||
npc.type.multiNpcVarbit + "]";
|
||||
|
||||
API.DrawText(
|
||||
FontType.SMALL,
|
||||
FontColor.YELLOW,
|
||||
TextModifier.CENTER,
|
||||
npcSb,
|
||||
screenX,
|
||||
screenY
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue