mixin: Add setter for widget padding

This commit is contained in:
Sundar-Gandu
2021-12-30 00:17:34 -05:00
parent e466a689f8
commit beffea2b18
2 changed files with 19 additions and 0 deletions

View File

@@ -1085,4 +1085,14 @@ public interface Widget
* Gets the image which is (or should be) drawn on this widget
*/
SpritePixels getSprite();
/**
* Sets the X padding between widgets, mainly for inventory items
*/
void setPaddingX(int val);
/**
* Sets the Y padding between widgets, mainly for inventory items
*/
void setPaddingY(int val);
}

View File

@@ -345,6 +345,15 @@ public interface RSWidget extends Widget
@Import("paddingY")
int getYPitch();
@Import("paddingX")
@Override
void setPaddingX(int paddingX);
@Import("paddingY")
@Override
void setPaddingY(int paddingY);
@Import("onOp")
@Override
void setOnOpListener(Object... args);