widget: Expose widget model getters and setters

This commit also adds these widget properties to the widget inspector
dev tool.
This commit is contained in:
Jordan Atwood
2020-03-18 17:53:34 -07:00
parent 023860f928
commit 95556aadc7
3 changed files with 123 additions and 3 deletions

View File

@@ -155,7 +155,12 @@ public class WidgetInfoTableModel extends AbstractTableModel
out.add(new WidgetField<>("ItemId", Widget::getItemId, Widget::setItemId, Integer.class));
out.add(new WidgetField<>("ItemQuantity", Widget::getItemQuantity, Widget::setItemQuantity, Integer.class));
out.add(new WidgetField<>("ItemQuantityMode", Widget::getItemQuantityMode, Widget::setItemQuantityMode, Integer.class));
out.add(new WidgetField<>("ModelId", Widget::getModelId));
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<>("RotationX", Widget::getRotationX, Widget::setRotationX, 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<>("ModelZoom", Widget::getModelZoom, Widget::setModelZoom, Integer.class));
out.add(new WidgetField<>("SpriteId", Widget::getSpriteId, Widget::setSpriteId, Integer.class));
out.add(new WidgetField<>("BorderType", Widget::getBorderType, Widget::setBorderType, Integer.class));
out.add(new WidgetField<>("IsIf3", Widget::isIf3));