Merge pull request #5300 from raiyni/set-itemquant
widget: add setItemQuantity
This commit is contained in:
@@ -357,6 +357,13 @@ public interface Widget
|
||||
*/
|
||||
int getItemQuantity();
|
||||
|
||||
/**
|
||||
* Sets the item quantity displayed by the widget.
|
||||
*
|
||||
* @param quantity the quantity of the item
|
||||
*/
|
||||
void setItemQuantity(int quantity);
|
||||
|
||||
/**
|
||||
* Checks whether or not the drawn area of this widget contains
|
||||
* a point on the canvas.
|
||||
|
||||
@@ -126,7 +126,7 @@ public class WidgetInfoTableModel extends AbstractTableModel
|
||||
out.add(new WidgetField<>("FontId", Widget::getFontId, Widget::setFontId, Integer.class));
|
||||
out.add(new WidgetField<>("Name", w -> w.getName().trim(), Widget::setName, String.class));
|
||||
out.add(new WidgetField<>("ItemId", Widget::getItemId, Widget::setItemId, Integer.class));
|
||||
out.add(new WidgetField<>("ItemQuantity", Widget::getItemQuantity));
|
||||
out.add(new WidgetField<>("ItemQuantity", Widget::getItemQuantity, Widget::setItemQuantity, Integer.class));
|
||||
out.add(new WidgetField<>("ModelId", Widget::getModelId));
|
||||
out.add(new WidgetField<>("SpriteId", Widget::getSpriteId, Widget::setSpriteId, Integer.class));
|
||||
out.add(new WidgetField<>("Width", Widget::getWidth, Widget::setWidth, Integer.class));
|
||||
|
||||
@@ -233,6 +233,10 @@ public interface RSWidget extends Widget
|
||||
@Override
|
||||
int getItemQuantity();
|
||||
|
||||
@Import("itemQuantity")
|
||||
@Override
|
||||
void setItemQuantity(int quantity);
|
||||
|
||||
@Import("originalX")
|
||||
@Override
|
||||
int getOriginalX();
|
||||
|
||||
Reference in New Issue
Block a user