aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/SkillTrackerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-07 19:00:24 -0500
committerGitHub <noreply@github.com>2020-12-07 19:00:24 -0500
commit0bd7c6336f5866ea5513f85a3cedf5c48e375ab2 (patch)
treec28066f2d9f819f57c42d8911f1e0046f48cdf60 /src/main/java/me/Danker/gui/SkillTrackerGui.java
parent886402bdcd8d68e6d1076c86d53baab47070dd63 (diff)
parentc5e8044e39f784798000b64bbece05eae0282d86 (diff)
downloadSkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.gz
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.bz2
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.zip
1.8.4v1.8.4
Merge pull request #42 from bowser0000/development
Diffstat (limited to 'src/main/java/me/Danker/gui/SkillTrackerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/SkillTrackerGui.java45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/main/java/me/Danker/gui/SkillTrackerGui.java b/src/main/java/me/Danker/gui/SkillTrackerGui.java
index 9672890..4b38f2e 100644
--- a/src/main/java/me/Danker/gui/SkillTrackerGui.java
+++ b/src/main/java/me/Danker/gui/SkillTrackerGui.java
@@ -1,14 +1,13 @@
package me.Danker.gui;
-import org.apache.commons.lang3.time.StopWatch;
-
-import me.Danker.TheMod;
+import me.Danker.DankersSkyblockMod;
import me.Danker.handlers.ConfigHandler;
import me.Danker.handlers.TextRenderer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
+import org.apache.commons.lang3.time.StopWatch;
public class SkillTrackerGui extends GuiScreen {
@@ -51,12 +50,12 @@ public class SkillTrackerGui extends GuiScreen {
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
this.drawDefaultBackground();
String stateText = "";
- if (TheMod.skillStopwatch.isStarted() && !TheMod.skillStopwatch.isSuspended()) {
+ if (DankersSkyblockMod.skillStopwatch.isStarted() && !DankersSkyblockMod.skillStopwatch.isSuspended()) {
stateText = "Timer: Running";
- } else if (!TheMod.skillStopwatch.isStarted() || TheMod.skillStopwatch.isSuspended()) {
+ } else if (!DankersSkyblockMod.skillStopwatch.isStarted() || DankersSkyblockMod.skillStopwatch.isSuspended()) {
stateText = "Timer: Paused";
}
- if (!TheMod.showSkillTracker) {
+ if (!DankersSkyblockMod.showSkillTracker) {
stateText += " (Hidden)";
}
int stateTextWidth = mc.fontRendererObj.getStringWidth(stateText);
@@ -67,31 +66,31 @@ public class SkillTrackerGui extends GuiScreen {
@Override
public void actionPerformed(GuiButton button) {
if (button == goBack) {
- TheMod.guiToOpen = "dankergui1";
+ DankersSkyblockMod.guiToOpen = "dankergui1";
} else if (button == start) {
- if (TheMod.skillStopwatch.isStarted() && TheMod.skillStopwatch.isSuspended()) {
- TheMod.skillStopwatch.resume();
- } else if (!TheMod.skillStopwatch.isStarted()) {
- TheMod.skillStopwatch.start();
+ if (DankersSkyblockMod.skillStopwatch.isStarted() && DankersSkyblockMod.skillStopwatch.isSuspended()) {
+ DankersSkyblockMod.skillStopwatch.resume();
+ } else if (!DankersSkyblockMod.skillStopwatch.isStarted()) {
+ DankersSkyblockMod.skillStopwatch.start();
}
} else if (button == stop) {
- if (TheMod.skillStopwatch.isStarted() && !TheMod.skillStopwatch.isSuspended()) {
- TheMod.skillStopwatch.suspend();
+ if (DankersSkyblockMod.skillStopwatch.isStarted() && !DankersSkyblockMod.skillStopwatch.isSuspended()) {
+ DankersSkyblockMod.skillStopwatch.suspend();
}
} else if (button == reset) {
- TheMod.skillStopwatch = new StopWatch();
- TheMod.farmingXPGained = 0;
- TheMod.miningXPGained = 0;
- TheMod.combatXPGained = 0;
- TheMod.foragingXPGained = 0;
- TheMod.fishingXPGained = 0;
- TheMod.enchantingXPGained = 0;
- TheMod.alchemyXPGained = 0;
+ DankersSkyblockMod.skillStopwatch = new StopWatch();
+ DankersSkyblockMod.farmingXPGained = 0;
+ DankersSkyblockMod.miningXPGained = 0;
+ DankersSkyblockMod.combatXPGained = 0;
+ DankersSkyblockMod.foragingXPGained = 0;
+ DankersSkyblockMod.fishingXPGained = 0;
+ DankersSkyblockMod.enchantingXPGained = 0;
+ DankersSkyblockMod.alchemyXPGained = 0;
} else if (button == hide) {
- TheMod.showSkillTracker = false;
+ DankersSkyblockMod.showSkillTracker = false;
ConfigHandler.writeBooleanConfig("misc", "showSkillTracker", false);
} else if (button == show) {
- TheMod.showSkillTracker = true;
+ DankersSkyblockMod.showSkillTracker = true;
ConfigHandler.writeBooleanConfig("misc", "showSkillTracker", true);
}
}