Skip to content

Commit

Permalink
Updated for newest runelite release (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Zeigler <[email protected]>
  • Loading branch information
sololegends and sololegends authored Jan 25, 2024
1 parent 421fa53 commit a920086
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {
mavenCentral()
}

def runeLiteVersion = '1.10.4'
def runeLiteVersion = 'latest.release'

dependencies {
compileOnly group: 'net.runelite', name: 'client', version: runeLiteVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
package com.larsvansoest.runelite.clueitems;

import com.google.inject.Provides;
import com.larsvansoest.runelite.clueitems.data.EmoteClueItem;
import com.larsvansoest.runelite.clueitems.data.StashUnit;
import com.larsvansoest.runelite.clueitems.map.StashUnitWorldMapMarker;
import com.larsvansoest.runelite.clueitems.overlay.EmoteClueItemsOverlay;
Expand All @@ -38,7 +37,6 @@
import com.larsvansoest.runelite.clueitems.progress.ProgressManager;
import com.larsvansoest.runelite.clueitems.ui.EmoteClueItemsPalette;
import com.larsvansoest.runelite.clueitems.ui.EmoteClueItemsPanel;
import com.larsvansoest.runelite.clueitems.ui.components.StatusPanel;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.*;
import net.runelite.api.events.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.runelite.api.Varbits;
import net.runelite.api.annotations.Varbit;
import net.runelite.api.coords.WorldPoint;
import net.runelite.client.plugins.cluescrolls.ClueScrollPlugin;
import net.runelite.client.plugins.cluescrolls.clues.Enemy;
import net.runelite.client.plugins.cluescrolls.clues.LocationClueScroll;
import net.runelite.client.plugins.cluescrolls.clues.emote.Emote;
Expand Down Expand Up @@ -1312,4 +1313,9 @@ private EmoteClue(
this.enemy = enemy;
this.hasFirePit = hasFirePit;
}

@Override
public WorldPoint getLocation(ClueScrollPlugin plugin) {
return location;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import lombok.RequiredArgsConstructor;
import net.runelite.client.plugins.cluescrolls.clues.emote.STASHUnit;

import java.util.Arrays;

/**
* Contains and wraps all {@link net.runelite.client.plugins.cluescrolls.clues.emote.STASHUnit} used by {@link net.runelite.client.plugins.cluescrolls.clues.EmoteClue}, integrated in vendored {@link com.larsvansoest.runelite.clueitems.data.EmoteClue} class.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import com.larsvansoest.runelite.clueitems.EmoteClueItemsImages;
import com.larsvansoest.runelite.clueitems.data.StashUnit;
import net.runelite.api.coords.WorldPoint;
import net.runelite.http.api.worlds.WorldRegion;

import java.awt.image.BufferedImage;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.larsvansoest.runelite.clueitems.map;

import com.larsvansoest.runelite.clueitems.EmoteClueItemsImages;
import com.larsvansoest.runelite.clueitems.data.StashUnit;
import net.runelite.api.Client;
import net.runelite.api.Point;
import net.runelite.api.coords.WorldPoint;
import net.runelite.client.ui.overlay.worldmap.WorldMapPoint;

import java.awt.*;
import java.awt.image.BufferedImage;

public class WorldMapMarker extends WorldMapPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.larsvansoest.runelite.clueitems.map;

import java.awt.Rectangle;
import java.awt.image.BufferedImage;

import com.larsvansoest.runelite.clueitems.EmoteClueItemsImages;

import lombok.Getter;
import lombok.Setter;
import net.runelite.api.Client;
import net.runelite.api.Point;
import net.runelite.api.RenderOverview;
import net.runelite.api.coords.WorldPoint;
import net.runelite.api.widgets.Widget;
import net.runelite.api.widgets.WidgetInfo;

import java.awt.*;
import java.awt.image.BufferedImage;
import net.runelite.api.widgets.*;
import net.runelite.api.worldmap.WorldMap;

public class WorldMapOrb
{
Expand Down Expand Up @@ -58,7 +58,7 @@ public WorldMapOrb(final WorldPoint worldPoint, final BufferedImage icon)

private static Point mapWorldPointToGraphicsPoint(final Client client, final WorldPoint worldPoint)
{
final RenderOverview ro = client.getRenderOverview();
final WorldMap ro = client.getWorldMap();

if (!ro.getWorldMapData().surfaceContainsPosition(worldPoint.getX(), worldPoint.getY()))
{
Expand All @@ -67,7 +67,7 @@ private static Point mapWorldPointToGraphicsPoint(final Client client, final Wor

final float pixelsPerTile = ro.getWorldMapZoom();

final Widget map = client.getWidget(WidgetInfo.WORLD_MAP_VIEW);
final Widget map = client.getWidget(ComponentID.WORLD_MAP_MAPVIEW);
if (map != null)
{
final Rectangle worldMapRect = map.getBounds();
Expand Down Expand Up @@ -100,7 +100,7 @@ private static Point mapWorldPointToGraphicsPoint(final Client client, final Wor

private static Rectangle getWorldMapClipArea(final Client client)
{
final Widget widget = client.getWidget(WidgetInfo.WORLD_MAP_VIEW);
final Widget widget = client.getWidget(ComponentID.WORLD_MAP_MAPVIEW);
return widget == null ? null : widget.getBounds();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
import com.larsvansoest.runelite.clueitems.data.EmoteClueItem;
import com.larsvansoest.runelite.clueitems.data.StashUnit;
import com.larsvansoest.runelite.clueitems.ui.components.StatusPanel;
import net.runelite.api.Client;
import net.runelite.api.InventoryID;
import net.runelite.api.Item;
import net.runelite.api.ItemContainer;
import net.runelite.api.vars.AccountType;

import net.runelite.api.*;
import net.runelite.client.callback.ClientThread;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.game.ItemManager;
Expand Down Expand Up @@ -198,8 +195,15 @@ public List<String> getUnopenedInterfaces()
{
unopenedContainers.add("equipment");
}
final AccountType accountType = this.client.getAccountType();
if ((accountType == AccountType.GROUP_IRONMAN || accountType == AccountType.HARDCORE_GROUP_IRONMAN) && this.config.trackGroupStorage() && !this.inventoryMonitor.getHasSeenGroupStorage())

int accountType = this.client.getVarbitValue(Varbits.ACCOUNT_TYPE);
/*
* Varbits.ACCOUNT_TYPE
* 4 = group ironman
* 5 = hardcore group ironman
* 6 = unranked group ironman
*/
if ((accountType == 4 || accountType == 5 || accountType == 6) && this.config.trackGroupStorage() && !this.inventoryMonitor.getHasSeenGroupStorage())
{
unopenedContainers.add("group storage");
}
Expand Down

0 comments on commit a920086

Please sign in to comment.