Add gfx command to developer tools
Setting the spotAnimFrame to 0 is required to play the graphic from the start
This commit is contained in:
@@ -65,8 +65,10 @@ public interface Actor extends Renderable
|
||||
|
||||
int getGraphic();
|
||||
|
||||
@VisibleForDevtools
|
||||
void setGraphic(int graphic);
|
||||
|
||||
@VisibleForDevtools
|
||||
void setSpotAnimFrame(int spotAnimFrame);
|
||||
|
||||
int getModelHeight();
|
||||
|
||||
@@ -187,6 +187,14 @@ public class DevToolsPlugin extends Plugin
|
||||
localPlayer.setActionFrame(0);
|
||||
break;
|
||||
}
|
||||
case "gfx":
|
||||
{
|
||||
int id = Integer.parseInt(args[0]);
|
||||
Player localPlayer = client.getLocalPlayer();
|
||||
localPlayer.setGraphic(id);
|
||||
localPlayer.setSpotAnimFrame(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user