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