Gazivodag master (#10)
* Transform objects now use an interface * Plugins can now accept colors (not my code) * mixins: renderWidgetLayer: skip hidden widgets * World Map: Identify Both Shield of Arrav Quest Start Points (#8442) Closes #8437 * widgetitem: associate Widget with WidgetItem * widgetitem overlay: allow configuring which interfaces to overlay Update overlays to behave consistent with how they behaved before removal of query api, with the exception of adding the rune pouch overlay to the bank. * Update .gitignore * Revert "Adding external plugin support (#4)" This reverts commitbfe1482* Update QuestStartLocation.java * Revert "Plugins update (#7)" This reverts commit216f7d9* Adding external plugin support (#4) * Adding archetype * Update RuneLiteConfig.java * Update Plugin.java * Update PluginManager.java * Adding pluginwatcher & classloader * Update RuneLite.java * Update pom.xml * Update settings.xml * Update pom.xml * Update pom.xml * Removing old example plugin * Fixing the fix of the fix for plugin archetype. (cherry picked from commitbfe1482705) * Plugins can now accept colors (not my code) (cherry picked from commit8e094f7386) * Update MenuEntrySwapperConfig.java
This commit is contained in:
@@ -26,6 +26,7 @@ package net.runelite.api.widgets;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.ToString;
|
||||
import net.runelite.api.Point;
|
||||
|
||||
@@ -34,55 +35,34 @@ import net.runelite.api.Point;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@ToString
|
||||
@Getter
|
||||
public class WidgetItem
|
||||
{
|
||||
private final int id;
|
||||
private final int quantity;
|
||||
private final int index;
|
||||
private final Rectangle canvasBounds;
|
||||
|
||||
/**
|
||||
* Gets the ID of the item represented.
|
||||
* The ID of the item represented.
|
||||
*
|
||||
* @return the items ID
|
||||
* @see net.runelite.api.ItemID
|
||||
*/
|
||||
public int getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
private final int id;
|
||||
/**
|
||||
* Gets the quantity of the represented item.
|
||||
*
|
||||
* @return the items quantity
|
||||
* The quantity of the represented item.
|
||||
*/
|
||||
public int getQuantity()
|
||||
{
|
||||
return quantity;
|
||||
}
|
||||
|
||||
private final int quantity;
|
||||
/**
|
||||
* Gets the index position of this WidgetItem inside its parents
|
||||
* The index position of this WidgetItem inside its parents
|
||||
* WidgetItem array.
|
||||
*
|
||||
* @return the index in the parent widget
|
||||
* @see Widget#getWidgetItems()
|
||||
*/
|
||||
public int getIndex()
|
||||
{
|
||||
return index;
|
||||
}
|
||||
|
||||
private final int index;
|
||||
/**
|
||||
* Gets the area where the widget is drawn on the canvas.
|
||||
*
|
||||
* @return the occupied area of the widget
|
||||
* The area where the widget is drawn on the canvas.
|
||||
*/
|
||||
public Rectangle getCanvasBounds()
|
||||
{
|
||||
return canvasBounds;
|
||||
}
|
||||
private final Rectangle canvasBounds;
|
||||
/**
|
||||
* The widget which contains this item.
|
||||
*/
|
||||
private final Widget widget;
|
||||
|
||||
/**
|
||||
* Gets the upper-left coordinate of where the widget is being drawn
|
||||
|
||||
Reference in New Issue
Block a user