Rename points to reputation for player view
This commit is contained in:
@@ -223,8 +223,8 @@ public interface EasyGiantsFoundryConfig extends Config {
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "shopPoints",
|
keyName = "shopPoints",
|
||||||
name = "Shop points",
|
name = "Reputation",
|
||||||
description = "Toggle for shop points",
|
description = "Toggle for reputation text",
|
||||||
position = 5,
|
position = 5,
|
||||||
section = infoPanelList
|
section = infoPanelList
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import net.runelite.api.GameState;
|
|||||||
import net.runelite.api.InventoryID;
|
import net.runelite.api.InventoryID;
|
||||||
import net.runelite.api.Skill;
|
import net.runelite.api.Skill;
|
||||||
import net.runelite.api.events.*;
|
import net.runelite.api.events.*;
|
||||||
import net.runelite.api.widgets.Widget;
|
|
||||||
import net.runelite.client.Notifier;
|
import net.runelite.client.Notifier;
|
||||||
import net.runelite.client.callback.ClientThread;
|
import net.runelite.client.callback.ClientThread;
|
||||||
import net.runelite.client.eventbus.Subscribe;
|
import net.runelite.client.eventbus.Subscribe;
|
||||||
@@ -19,11 +18,8 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
import net.runelite.client.ui.overlay.OverlayManager;
|
import net.runelite.client.ui.overlay.OverlayManager;
|
||||||
import net.runelite.client.config.ConfigManager;
|
import net.runelite.client.config.ConfigManager;
|
||||||
import com.toofifty.easygiantsfoundry.enums.Stage;
|
import com.toofifty.easygiantsfoundry.enums.Stage;
|
||||||
import net.runelite.client.util.Text;
|
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
@@ -87,7 +83,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
|||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Inject
|
@Inject
|
||||||
private ReputationTracker reputationTracker;
|
private PointsTracker pointsTracker;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void startUp()
|
protected void startUp()
|
||||||
@@ -144,7 +140,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
|||||||
|
|
||||||
if (event.getGameState().equals(GameState.LOGGED_IN))
|
if (event.getGameState().equals(GameState.LOGGED_IN))
|
||||||
{
|
{
|
||||||
reputationTracker.load();
|
pointsTracker.load();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,7 +267,7 @@ public class EasyGiantsFoundryPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onWidgetLoaded(WidgetLoaded event)
|
public void onWidgetLoaded(WidgetLoaded event)
|
||||||
{
|
{
|
||||||
reputationTracker.onWidgetLoaded(event.getGroupId());
|
pointsTracker.onWidgetLoaded(event.getGroupId());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkBonus()
|
private void checkBonus()
|
||||||
|
|||||||
@@ -91,11 +91,11 @@ public class FoundryOverlay2D extends OverlayPanel
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
int points = plugin.getReputationTracker().getShopPoints();
|
int points = plugin.getPointsTracker().getShopPoints();
|
||||||
if (config.drawShopPoints())
|
if (config.drawShopPoints())
|
||||||
{
|
{
|
||||||
panelComponent.getChildren().add(
|
panelComponent.getChildren().add(
|
||||||
LineComponent.builder().left("Points").right(points + "").build()
|
LineComponent.builder().left("Reputation").right(points + "").build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import javax.inject.Inject;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
public class ReputationTracker
|
public class PointsTracker
|
||||||
{
|
{
|
||||||
private static final int SHOP_WIDGET = 753;
|
private static final int SHOP_WIDGET = 753;
|
||||||
private static final int CHAT_WIDGET = 229;
|
private static final int CHAT_WIDGET = 229;
|
||||||
Reference in New Issue
Block a user