Merge pull request #43 from KronosDesign/api-updates
Hooked paddingX/Y in Widget
This commit is contained in:
@@ -109,8 +109,8 @@ public class InterfaceDefinition
|
||||
public int[][] dynamicValues;
|
||||
public int[] itemIds;
|
||||
public int[] itemQuantities;
|
||||
public int field2285;
|
||||
public int field2286;
|
||||
public int paddingX;
|
||||
public int paddingY;
|
||||
public int[] field2340;
|
||||
public int[] field2288;
|
||||
public int[] field2289;
|
||||
|
||||
@@ -150,8 +150,8 @@ public class InterfaceLoader
|
||||
iface.field2291 |= 536870912;
|
||||
}
|
||||
|
||||
iface.field2285 = var1.readUnsignedByte();
|
||||
iface.field2286 = var1.readUnsignedByte();
|
||||
iface.paddingX = var1.readUnsignedByte();
|
||||
iface.paddingY = var1.readUnsignedByte();
|
||||
iface.field2340 = new int[20];
|
||||
iface.field2288 = new int[20];
|
||||
iface.field2289 = new int[20];
|
||||
@@ -274,8 +274,8 @@ public class InterfaceLoader
|
||||
|
||||
iface.field2298 = var1.readUnsignedByte() == 1;
|
||||
iface.textColor = var1.readInt();
|
||||
iface.field2285 = var1.readShort();
|
||||
iface.field2286 = var1.readShort();
|
||||
iface.paddingX = var1.readShort();
|
||||
iface.paddingY = var1.readShort();
|
||||
var4 = var1.readUnsignedByte();
|
||||
if (var4 == 1)
|
||||
{
|
||||
|
||||
@@ -234,4 +234,14 @@ public class Widget
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
public int getPaddingX()
|
||||
{
|
||||
return widget.getPaddingX();
|
||||
}
|
||||
|
||||
public int getPaddingY()
|
||||
{
|
||||
return widget.getPaddingY();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package net.runelite.rs.api;
|
||||
|
||||
import net.runelite.mapping.Import;
|
||||
@@ -124,4 +123,10 @@ public interface Widget
|
||||
|
||||
@Import("originalY")
|
||||
int getOriginalY();
|
||||
|
||||
@Import("paddingX")
|
||||
int getPaddingX();
|
||||
|
||||
@Import("paddingY")
|
||||
int getPaddingY();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user