Added some descriptions & fixed open settings
This commit is contained in:
parent
85ad6c241e
commit
2dc68d96e3
|
@ -9,7 +9,7 @@ import net.minecraft.client.gui.GuiIngame;
|
||||||
import net.minecraft.client.gui.ScaledResolution;
|
import net.minecraft.client.gui.ScaledResolution;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
@RenderModule(name = "ArmorHud", category = Category.HUD, x = 20, y = 4, hasSetting = true, description = "ArmorHUD")
|
@RenderModule(name = "ArmorHud", category = Category.HUD, x = 20, y = 4, hasSetting = true, description = "See armor durability without opening your inventory")
|
||||||
public class ArmorHud extends RenderMod {
|
public class ArmorHud extends RenderMod {
|
||||||
|
|
||||||
public ScaledResolution sr;
|
public ScaledResolution sr;
|
||||||
|
|
|
@ -6,7 +6,7 @@ import dev.resent.annotation.RenderModule;
|
||||||
import dev.resent.module.base.Mod.Category;
|
import dev.resent.module.base.Mod.Category;
|
||||||
import dev.resent.module.base.RenderMod;
|
import dev.resent.module.base.RenderMod;
|
||||||
|
|
||||||
@RenderModule(name = "BPS", category = Category.HUD, x = 4, y = 16)
|
@RenderModule(name = "BPS", category = Category.HUD, x = 4, y = 16, description = "See your current blocks per second")
|
||||||
public class BPS extends RenderMod{
|
public class BPS extends RenderMod{
|
||||||
|
|
||||||
public int getWidth() { return mc.fontRendererObj.getStringWidth(getText()) + 4;}
|
public int getWidth() { return mc.fontRendererObj.getStringWidth(getText()) + 4;}
|
||||||
|
@ -17,7 +17,7 @@ public class BPS extends RenderMod{
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getText(){
|
public String getText(){
|
||||||
return "BPS: " + new DecimalFormat("0.##").format(getBPS());
|
return "[BPS: " + new DecimalFormat("0.##").format(getBPS() + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void draw(){
|
public void draw(){
|
||||||
|
|
|
@ -9,7 +9,7 @@ import dev.resent.module.base.RenderMod;
|
||||||
import dev.resent.util.misc.FuncUtils;
|
import dev.resent.util.misc.FuncUtils;
|
||||||
import net.lax1dude.eaglercraft.v1_8.Mouse;
|
import net.lax1dude.eaglercraft.v1_8.Mouse;
|
||||||
|
|
||||||
@RenderModule(name = "CPS", category = Category.HUD, x = 4, y = 26)
|
@RenderModule(name = "CPS", category = Category.HUD, x = 4, y = 26, description = "See your clicks per second")
|
||||||
public class CPS extends RenderMod {
|
public class CPS extends RenderMod {
|
||||||
|
|
||||||
private List<Long> clicks = new ArrayList<>();
|
private List<Long> clicks = new ArrayList<>();
|
||||||
|
|
|
@ -7,7 +7,7 @@ import dev.resent.module.base.setting.BooleanSetting;
|
||||||
import dev.resent.module.base.setting.ModeSetting;
|
import dev.resent.module.base.setting.ModeSetting;
|
||||||
import dev.resent.module.base.setting.NumberSetting;
|
import dev.resent.module.base.setting.NumberSetting;
|
||||||
|
|
||||||
@Module(name = "ClickGUI", category = Category.HUD, hasSetting = true)
|
@Module(name = "ClickGUI", category = Category.HUD, hasSetting = true, description = "Customize Resent's UI")
|
||||||
public class ClickGui extends Mod{
|
public class ClickGui extends Mod{
|
||||||
|
|
||||||
public BooleanSetting scroll = new BooleanSetting("Smooth scroll", "", false);
|
public BooleanSetting scroll = new BooleanSetting("Smooth scroll", "", false);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.network.play.server.S19PacketEntityStatus;
|
import net.minecraft.network.play.server.S19PacketEntityStatus;
|
||||||
|
|
||||||
@RenderModule(name = "ComboCounter", category = Category.HUD, x = 4, y = 14)
|
@RenderModule(name = "ComboCounter", category = Category.HUD, x = 4, y = 14, description = "Count how many hits in a row you've gotten")
|
||||||
public class ComboCounter extends RenderMod {
|
public class ComboCounter extends RenderMod {
|
||||||
|
|
||||||
public static boolean attacked = false;
|
public static boolean attacked = false;
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class ClickGuiRewrite extends GuiScreen {
|
||||||
if (!m.isAdmin() && m.getName().toLowerCase().startsWith(searchString.toLowerCase()) && selectedMod == null) {
|
if (!m.isAdmin() && m.getName().toLowerCase().startsWith(searchString.toLowerCase()) && selectedMod == null) {
|
||||||
if (y + 115 + offset + scrollOffset > y + 95 && y + 185 + offset + scrollOffset < y + height && part == "Home") {
|
if (y + 115 + offset + scrollOffset > y + 95 && y + 185 + offset + scrollOffset < y + height && part == "Home") {
|
||||||
|
|
||||||
if (isMouseInside(mouseX, mouseY, x + width - 60, y + 140 + offset, x + width - 40, y + 160 + offset) && mouseButton == 0 && m.doesHaveSetting()) {
|
if (isMouseInside(mouseX, mouseY, x + width - 60, y + 140 + offset + scrollOffset, x + width - 40, y + 160 + offset + scrollOffset) && mouseButton == 0 && m.doesHaveSetting()) {
|
||||||
selectedMod = m;
|
selectedMod = m;
|
||||||
|
|
||||||
int settingOffset = 0;
|
int settingOffset = 0;
|
||||||
|
@ -210,10 +210,6 @@ public class ClickGuiRewrite extends GuiScreen {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isMouseInside(mouseX, mouseY, x + 80, y + 115 + offset + scrollOffset, x + width - 20, y + 185 + offset + scrollOffset)) {
|
if(isMouseInside(mouseX, mouseY, x + 80, y + 115 + offset + scrollOffset, x + width - 20, y + 185 + offset + scrollOffset)) {
|
||||||
if(mouseButton == 0) {
|
|
||||||
m.toggle();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(mouseButton == 1 && m.doesHaveSetting()) {
|
if(mouseButton == 1 && m.doesHaveSetting()) {
|
||||||
selectedMod = m;
|
selectedMod = m;
|
||||||
|
|
||||||
|
@ -227,6 +223,10 @@ public class ClickGuiRewrite extends GuiScreen {
|
||||||
settingOffset += 25;
|
settingOffset += 25;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(mouseButton == 0 && selectedMod == null) {
|
||||||
|
m.toggle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user