mixin: change widget getPitch to getPadding
This commit is contained in:
@@ -323,8 +323,8 @@ public abstract class RSWidgetMixin implements RSWidget
|
||||
}
|
||||
|
||||
int columns = getWidth(); // the number of item slot columns is stored here
|
||||
int xPitch = getXPitch();
|
||||
int yPitch = getYPitch();
|
||||
int xPadding = getPaddingX();
|
||||
int yPadding = getPaddingY();
|
||||
int itemId = itemIds[index];
|
||||
int itemQuantity = itemQuantities[index];
|
||||
|
||||
@@ -335,8 +335,8 @@ public abstract class RSWidgetMixin implements RSWidget
|
||||
|
||||
int row = index / columns;
|
||||
int col = index % columns;
|
||||
int itemX = rl$x + ((ITEM_SLOT_SIZE + xPitch) * col);
|
||||
int itemY = rl$y + ((ITEM_SLOT_SIZE + yPitch) * row);
|
||||
int itemX = rl$x + ((ITEM_SLOT_SIZE + xPadding) * col);
|
||||
int itemY = rl$y + ((ITEM_SLOT_SIZE + yPadding) * row);
|
||||
|
||||
boolean isDragged = isWidgetItemDragged(index);
|
||||
int dragOffsetX = 0;
|
||||
|
||||
@@ -340,10 +340,10 @@ public interface RSWidget extends Widget
|
||||
void setOriginalWidth(int originalWidth);
|
||||
|
||||
@Import("paddingX")
|
||||
int getXPitch();
|
||||
int getPaddingX();
|
||||
|
||||
@Import("paddingY")
|
||||
int getYPitch();
|
||||
int getPaddingY();
|
||||
|
||||
@Import("paddingX")
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user