devtools: Show actor pose animation

This commit is contained in:
Max Weber
2020-06-17 11:15:03 -06:00
parent b0cb875c62
commit bab6fce9d5

View File

@@ -146,12 +146,12 @@ class DevToolsOverlay extends Overlay
{ {
if (p != local) if (p != local)
{ {
String text = p.getName() + " (A: " + p.getAnimation() + ") (G: " + p.getGraphic() + ")"; String text = p.getName() + " (A: " + p.getAnimation() + ") (P: " + p.getPoseAnimation() + ") (G: " + p.getGraphic() + ")";
OverlayUtil.renderActorOverlay(graphics, p, text, BLUE); OverlayUtil.renderActorOverlay(graphics, p, text, BLUE);
} }
} }
String text = local.getName() + " (A: " + local.getAnimation() + ") (G: " + local.getGraphic() + ")"; String text = local.getName() + " (A: " + local.getAnimation() + ") (P: " + local.getPoseAnimation() + ") (G: " + local.getGraphic() + ")";
OverlayUtil.renderActorOverlay(graphics, local, text, CYAN); OverlayUtil.renderActorOverlay(graphics, local, text, CYAN);
renderPlayerWireframe(graphics, local, CYAN); renderPlayerWireframe(graphics, local, CYAN);
} }
@@ -176,12 +176,8 @@ class DevToolsOverlay extends Overlay
} }
} }
String text = String.format("%s (ID: %d) (A: %d) (G: %d)", String text = composition.getName() + " (ID:" + composition.getId() + ")" +
composition.getName(), " (A: " + npc.getAnimation() + ") (P: " + npc.getPoseAnimation() + ") (G: " + npc.getGraphic() + ")";
composition.getId(),
npc.getAnimation(),
npc.getGraphic());
OverlayUtil.renderActorOverlay(graphics, npc, text, color); OverlayUtil.renderActorOverlay(graphics, npc, text, color);
} }
} }