Port togglesprint
This commit is contained in:
parent
c99577a013
commit
dec1a80faf
Binary file not shown.
|
@ -5,10 +5,12 @@ import dev.resent.module.base.RenderModule;
|
||||||
import dev.resent.setting.BooleanSetting;
|
import dev.resent.setting.BooleanSetting;
|
||||||
import dev.resent.ui.mods.ClickGUI;
|
import dev.resent.ui.mods.ClickGUI;
|
||||||
import dev.resent.ui.mods.HUDConfigScreen;
|
import dev.resent.ui.mods.HUDConfigScreen;
|
||||||
|
import net.minecraft.client.gui.FontRenderer;
|
||||||
|
|
||||||
public class Sprint extends RenderModule {
|
public class Sprint extends RenderModule {
|
||||||
|
|
||||||
public BooleanSetting drawn = new BooleanSetting("Text Drawn", "", true);
|
public BooleanSetting drawn = new BooleanSetting("Text Drawn", "", true);
|
||||||
|
public FontRenderer fr;
|
||||||
|
|
||||||
public Sprint(){
|
public Sprint(){
|
||||||
super("ToggleSprint", Category.MOVEMENT, 4, 10, true);
|
super("ToggleSprint", Category.MOVEMENT, 4, 10, true);
|
||||||
|
@ -64,7 +66,6 @@ public class Sprint extends RenderModule {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw() {
|
public void draw() {
|
||||||
super.draw();
|
|
||||||
this.fr = mc.fontRendererObj;
|
this.fr = mc.fontRendererObj;
|
||||||
if(drawn.getValue())
|
if(drawn.getValue())
|
||||||
fr.drawStringWithShadow(getText(), getX() + getWidth() / 2 - ((getWidth() - 10) / 2), getY() + (getHeight() / 2 - fr.FONT_HEIGHT / 2), -1);
|
fr.drawStringWithShadow(getText(), getX() + getWidth() / 2 - ((getWidth() - 10) / 2), getY() + (getHeight() / 2 - fr.FONT_HEIGHT / 2), -1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user