devtools: add transform command
This commit is contained in:
@@ -99,6 +99,12 @@ public interface Actor extends Renderable
|
|||||||
*/
|
*/
|
||||||
LocalPoint getLocalLocation();
|
LocalPoint getLocalLocation();
|
||||||
|
|
||||||
|
@VisibleForDevtools
|
||||||
|
void setIdlePoseAnimation(int animation);
|
||||||
|
|
||||||
|
@VisibleForDevtools
|
||||||
|
void setPoseAnimation(int animation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the orientation of the actor.
|
* Gets the orientation of the actor.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.api;
|
package net.runelite.api;
|
||||||
|
|
||||||
|
import net.runelite.api.annotations.VisibleForDevtools;
|
||||||
import net.runelite.api.kit.KitType;
|
import net.runelite.api.kit.KitType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -57,4 +58,7 @@ public interface PlayerComposition
|
|||||||
* @return the kit ID
|
* @return the kit ID
|
||||||
*/
|
*/
|
||||||
int getKitId(KitType type);
|
int getKitId(KitType type);
|
||||||
|
|
||||||
|
@VisibleForDevtools
|
||||||
|
void setTransformedNpcId(int id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -240,6 +240,15 @@ public class DevToolsPlugin extends Plugin
|
|||||||
localPlayer.setSpotAnimFrame(0);
|
localPlayer.setSpotAnimFrame(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "transform":
|
||||||
|
{
|
||||||
|
int id = Integer.parseInt(args[0]);
|
||||||
|
Player player = client.getLocalPlayer();
|
||||||
|
player.getPlayerComposition().setTransformedNpcId(id);
|
||||||
|
player.setIdlePoseAnimation(-1);
|
||||||
|
player.setPoseAnimation(-1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,14 @@ public interface RSActor extends RSRenderable, Actor
|
|||||||
@Override
|
@Override
|
||||||
int getLogicalHeight();
|
int getLogicalHeight();
|
||||||
|
|
||||||
|
@Import("idlePoseAnimation")
|
||||||
|
@Override
|
||||||
|
void setIdlePoseAnimation(int animation);
|
||||||
|
|
||||||
|
@Import("poseAnimation")
|
||||||
|
@Override
|
||||||
|
void setPoseAnimation(int animation);
|
||||||
|
|
||||||
@Import("actionFrame")
|
@Import("actionFrame")
|
||||||
int getActionFrame();
|
int getActionFrame();
|
||||||
|
|
||||||
|
|||||||
@@ -38,4 +38,8 @@ public interface RSPlayerComposition extends PlayerComposition
|
|||||||
@Import("equipmentIds")
|
@Import("equipmentIds")
|
||||||
@Override
|
@Override
|
||||||
int[] getEquipmentIds();
|
int[] getEquipmentIds();
|
||||||
|
|
||||||
|
@Import("transformedNpcId")
|
||||||
|
@Override
|
||||||
|
void setTransformedNpcId(int id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user