rl-api/Widget: export animation and sprite tiling
This commit is contained in:
@@ -242,16 +242,18 @@ public interface Widget
|
|||||||
void setName(String name);
|
void setName(String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the model ID displayed in the widget.
|
* Gets the Model/NPC/Item ID displayed in the widget.
|
||||||
|
*
|
||||||
|
* @see WidgetModelType
|
||||||
*/
|
*/
|
||||||
int getModelId();
|
int getModelId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the model ID displayed in the widget.
|
* Sets the Model/NPC/Item ID displayed in the widget.
|
||||||
*
|
*
|
||||||
* @param modelId the new model ID
|
* @see WidgetModelType
|
||||||
*/
|
*/
|
||||||
void setModelId(int modelId);
|
void setModelId(int id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the model type of the widget.
|
* Gets the model type of the widget.
|
||||||
@@ -268,6 +270,20 @@ public interface Widget
|
|||||||
*/
|
*/
|
||||||
void setModelType(int type);
|
void setModelType(int type);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the sequence ID used to animate the model in the widget
|
||||||
|
*
|
||||||
|
* @see net.runelite.api.AnimationID
|
||||||
|
*/
|
||||||
|
int getAnimationId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the sequence ID used to animate the model in the widget
|
||||||
|
*
|
||||||
|
* @see net.runelite.api.AnimationID
|
||||||
|
*/
|
||||||
|
void setAnimationId(int animationId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the x rotation of the model displayed in the widget.
|
* Gets the x rotation of the model displayed in the widget.
|
||||||
* 0 = no rotation, 2047 = full rotation
|
* 0 = no rotation, 2047 = full rotation
|
||||||
@@ -336,6 +352,16 @@ public interface Widget
|
|||||||
*/
|
*/
|
||||||
int getSpriteId();
|
int getSpriteId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets if sprites are repeated or stretched
|
||||||
|
*/
|
||||||
|
boolean getSpriteTiling();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets if sprites are repeated or stretched
|
||||||
|
*/
|
||||||
|
void setSpriteTiling(boolean tiling);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the sprite ID displayed in the widget.
|
* Sets the sprite ID displayed in the widget.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -157,11 +157,13 @@ public class WidgetInfoTableModel extends AbstractTableModel
|
|||||||
out.add(new WidgetField<>("ItemQuantityMode", Widget::getItemQuantityMode, Widget::setItemQuantityMode, Integer.class));
|
out.add(new WidgetField<>("ItemQuantityMode", Widget::getItemQuantityMode, Widget::setItemQuantityMode, Integer.class));
|
||||||
out.add(new WidgetField<>("ModelId", Widget::getModelId, Widget::setModelId, Integer.class));
|
out.add(new WidgetField<>("ModelId", Widget::getModelId, Widget::setModelId, Integer.class));
|
||||||
out.add(new WidgetField<>("ModelType", Widget::getModelType, Widget::setModelType, Integer.class));
|
out.add(new WidgetField<>("ModelType", Widget::getModelType, Widget::setModelType, Integer.class));
|
||||||
|
out.add(new WidgetField<>("AnimationId", Widget::getAnimationId, Widget::setAnimationId, Integer.class));
|
||||||
out.add(new WidgetField<>("RotationX", Widget::getRotationX, Widget::setRotationX, Integer.class));
|
out.add(new WidgetField<>("RotationX", Widget::getRotationX, Widget::setRotationX, Integer.class));
|
||||||
out.add(new WidgetField<>("RotationY", Widget::getRotationY, Widget::setRotationY, Integer.class));
|
out.add(new WidgetField<>("RotationY", Widget::getRotationY, Widget::setRotationY, Integer.class));
|
||||||
out.add(new WidgetField<>("RotationZ", Widget::getRotationZ, Widget::setRotationZ, Integer.class));
|
out.add(new WidgetField<>("RotationZ", Widget::getRotationZ, Widget::setRotationZ, Integer.class));
|
||||||
out.add(new WidgetField<>("ModelZoom", Widget::getModelZoom, Widget::setModelZoom, Integer.class));
|
out.add(new WidgetField<>("ModelZoom", Widget::getModelZoom, Widget::setModelZoom, Integer.class));
|
||||||
out.add(new WidgetField<>("SpriteId", Widget::getSpriteId, Widget::setSpriteId, Integer.class));
|
out.add(new WidgetField<>("SpriteId", Widget::getSpriteId, Widget::setSpriteId, Integer.class));
|
||||||
|
out.add(new WidgetField<>("SpriteTiling", Widget::getSpriteTiling, Widget::setSpriteTiling, Boolean.class));
|
||||||
out.add(new WidgetField<>("BorderType", Widget::getBorderType, Widget::setBorderType, Integer.class));
|
out.add(new WidgetField<>("BorderType", Widget::getBorderType, Widget::setBorderType, Integer.class));
|
||||||
out.add(new WidgetField<>("IsIf3", Widget::isIf3));
|
out.add(new WidgetField<>("IsIf3", Widget::isIf3));
|
||||||
out.add(new WidgetField<>("HasListener", Widget::hasListener, Widget::setHasListener, Boolean.class));
|
out.add(new WidgetField<>("HasListener", Widget::hasListener, Widget::setHasListener, Boolean.class));
|
||||||
|
|||||||
Reference in New Issue
Block a user