public void onRepaint(final Graphics render) {
drawRect(render);
if (enabled[0]) {
for (final org.rsbot.script.wrappers.RSObject o : ctx.objects.getAll()) {
final RSModel model = o.getModel();
if (model != null) {
render.setColor(color_map.get(o.getType()));
model.drawWireFrame(render);
render.setColor(Color.GREEN);
final Point p = model.getPoint();
render.fillOval(p.x - 1, p.y - 1, 2, 2);
}
}
}
if (enabled[1]) {
for (final org.rsbot.script.wrappers.RSCharacter c : ctx.players.getAll()) {
final RSModel model = c.getModel();
if (model != null) {
render.setColor(Color.RED);
model.drawWireFrame(render);
}
}
}
if (enabled[2]) {
for (final org.rsbot.script.wrappers.RSCharacter c : ctx.npcs.getAll()) {
final RSModel model = c.getModel();
if (model != null) {
render.setColor(Color.MAGENTA);
model.drawWireFrame(render);
}
}
}
if (enabled[3]) {
for (final RSGroundItem item : ctx.groundItems.getAll()) {
final RSModel model = item.getModel();
if (model != null) {
render.setColor(Color.CYAN);
model.drawWireFrame(render);
}
}
}
}