Merge pull request #1029 from devLotto/update-clues
Revamp clue scroll plugin
This commit is contained in:
58
runelite-api/src/main/java/net/runelite/api/SpriteID.java
Normal file
58
runelite-api/src/main/java/net/runelite/api/SpriteID.java
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Lotto <https://github.com/devLotto>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (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.api;
|
||||
|
||||
// Note: This class is not complete: these sprites were manually gathered
|
||||
// through the cache and widget inspector. Please add sprites as you happen to use them.
|
||||
public final class SpriteID
|
||||
{
|
||||
public static final int EMOTE_YES = 700;
|
||||
public static final int EMOTE_NO = 701;
|
||||
public static final int EMOTE_THINK = 702;
|
||||
public static final int EMOTE_BOW = 703;
|
||||
public static final int EMOTE_ANGRY = 704;
|
||||
public static final int EMOTE_CRY = 705;
|
||||
public static final int EMOTE_LAUGH = 706;
|
||||
public static final int EMOTE_CHEER = 707;
|
||||
public static final int EMOTE_WAVE = 708;
|
||||
public static final int EMOTE_BECKON = 709;
|
||||
public static final int EMOTE_DANCE = 710;
|
||||
public static final int EMOTE_CLAP = 711;
|
||||
public static final int EMOTE_PANIC = 712;
|
||||
public static final int EMOTE_JIG = 713;
|
||||
public static final int EMOTE_SPIN = 714;
|
||||
public static final int EMOTE_HEADBANG = 715;
|
||||
public static final int EMOTE_JUMP_FOR_JOY = 716;
|
||||
public static final int EMOTE_RASPBERRY = 717;
|
||||
public static final int EMOTE_YAWN = 718;
|
||||
public static final int EMOTE_SALUTE = 719;
|
||||
public static final int EMOTE_SHRUG = 720;
|
||||
public static final int EMOTE_BLOW_KISS = 721;
|
||||
public static final int EMOTE_GOBLIN_SALUTE = 727;
|
||||
public static final int EMOTE_SLAP_HEAD = 729;
|
||||
public static final int EMOTE_STOMP = 730;
|
||||
public static final int EMOTE_FLAP = 731;
|
||||
public static final int EMOTE_PUSH_UP = 1204;
|
||||
}
|
||||
@@ -24,18 +24,22 @@
|
||||
*/
|
||||
package net.runelite.api.queries;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.InventoryID;
|
||||
import net.runelite.api.Item;
|
||||
import net.runelite.api.ItemContainer;
|
||||
import net.runelite.api.Query;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class InventoryItemQuery extends Query<Item, InventoryItemQuery>
|
||||
{
|
||||
private final InventoryID inventory;
|
||||
|
||||
@Override
|
||||
public Item[] result(Client client)
|
||||
{
|
||||
ItemContainer container = client.getItemContainer(InventoryID.INVENTORY);
|
||||
ItemContainer container = client.getItemContainer(inventory);
|
||||
if (container == null)
|
||||
{
|
||||
return null;
|
||||
|
||||
@@ -34,6 +34,7 @@ public class WidgetID
|
||||
public static final int INVENTORY_GROUP_ID = 149;
|
||||
public static final int EQUIPMENT_GROUP_ID = 387;
|
||||
public static final int EQUIPMENT_INVENTORY_GROUP_ID = 85;
|
||||
public static final int EMOTES_GROUP_ID = 216;
|
||||
public static final int RUNE_POUCH_GROUP_ID = 190;
|
||||
public static final int DIARY_GROUP_ID = 259;
|
||||
public static final int PESTRCONTROL_GROUP_ID = 408;
|
||||
@@ -175,6 +176,12 @@ public class WidgetID
|
||||
static final int INVENTORY_ITEM_CONTAINER = 0;
|
||||
}
|
||||
|
||||
static class Emotes
|
||||
{
|
||||
static final int EMOTE_WINDOW = 0;
|
||||
static final int EMOTE_CONTAINER = 1;
|
||||
}
|
||||
|
||||
static class Cluescroll
|
||||
{
|
||||
static final int CLUE_TEXT = 2;
|
||||
|
||||
@@ -51,6 +51,9 @@ public enum WidgetInfo
|
||||
EQUIPMENT_RING(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.RING),
|
||||
EQUIPMENT_AMMO(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.AMMO),
|
||||
|
||||
EMOTE_WINDOW(WidgetID.EMOTES_GROUP_ID, WidgetID.Emotes.EMOTE_WINDOW),
|
||||
EMOTE_CONTAINER(WidgetID.EMOTES_GROUP_ID, WidgetID.Emotes.EMOTE_CONTAINER),
|
||||
|
||||
DIARY_LIST(WidgetID.DIARY_GROUP_ID, 4),
|
||||
|
||||
PESTCONTROL_PURPLE_SHIELD(WidgetID.PESTRCONTROL_GROUP_ID, WidgetID.PestControl.PURPLE_SHIELD),
|
||||
|
||||
Reference in New Issue
Block a user