Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package io.dank.aimbot
- import org.lwjgl.input.Keyboard;
- import cpw.mods.fml.client.config.GuiSlider;
- import net.minecraft.client.gui.GuiButton;
- import net.minecraft.client.gui.GuiScreen;
- public class AimbotGui extends GuiScreen
- {
- private boolean isAimbotOn;
- private GuiButton aimbotLabel;
- private GuiButton aimbotToggle;
- private GuiSlider aimbotSpeed;
- private GuiButton aimbotSpeedLabel;
- private GuiSlider aimbotDistance;
- private GuiButton aimbotDistanceLabel;
- private GuiSlider fovSlider;
- private GuiButton fovLabel;
- private GuiButton bindLabel;
- private GuiButton bind;
- private GuiButton disableLabel;
- private GuiButton disable;
- public AimbotGui() {
- super();
- this.isAimbotOn = true;
- this.aimbotLabel = new GuiButton(1, 20, 0, 0, 20, "Aimbot : ");
- this.aimbotToggle = new GuiButton(1, 40, 0, 20, 20, "On");
- this.aimbotSpeedLabel = new GuiButton(8, 16, 20, 0, 20, "Speed:");
- this.aimbotSpeed = new GuiSlider(1, 40, 20, 100, 20, "", "", 10.0, 50.0, 20.0, false, true);
- this.aimbotDistance = new GuiSlider(1, 60, 40, 100, 20, "", "", 30.0, 60.0, 45.0, false, true);
- this.aimbotDistanceLabel = new GuiButton(1, 25, 40, 0, 20, "Distance: ");
- this.fovLabel = new GuiButton(2, 10, 60, 0, 20, "FOV:");
- this.fovSlider = new GuiSlider(1, 30, 60, 100, 20, "", "", 40.0, 120.0, 70.0, false, true);
- this.bindLabel = new GuiButton(1, 14, 80, 0, 20, "Bind: ");
- this.bind = new GuiButton(1, 26, 80, 10, 20, "F");
- this.disableLabel = new GuiButton(1, 45, 100, 0, 20, "Disable on Death: ");
- this.disable = new GuiButton(1, 88, 100, 20, 20, "On");
- }
- public void func_73866_w_() {
- this.field_146292_n.add(this.aimbotToggle);
- this.field_146292_n.add(this.aimbotLabel);
- this.field_146292_n.add(this.aimbotSpeed);
- this.field_146292_n.add(this.aimbotSpeedLabel);
- this.field_146292_n.add(this.aimbotDistance);
- this.field_146292_n.add(this.aimbotDistanceLabel);
- this.field_146292_n.add(this.fovSlider);
- this.field_146292_n.add(this.fovLabel);
- this.field_146292_n.add(this.bindLabel);
- this.field_146292_n.add(this.bind);
- this.field_146292_n.add(this.disable);
- this.field_146292_n.add(this.disableLabel);
- }
- public void func_73863_a(final int mouseX, final int mouseY, final float partialTicks) {
- this.func_146276_q_();
- super.func_73863_a(mouseX, mouseX, partialTicks);
- }
- protected void func_146284_a(final GuiButton button) {
- if (button == this.aimbotToggle) {
- this.toggleAimbot();
- }
- if (button == this.bind) {
- this.setBind();
- }
- if (button == this.disable) {
- this.toggleDisable();
- }
- }
- private void toggleDisable() {
- this.disable.field_146126_j = (this.disable.field_146126_j.equals("Off") ? "On" : "Off");
- }
- private void setBind() {
- this.bind.field_146126_j = Keyboard.getKeyName(Keyboard.getEventKey());
- }
- public void toggleAimbot() {
- this.isAimbotOn = !this.isAimbotOn;
- this.aimbotToggle.field_146126_j = (this.isAimbotOn ? "On" : "Off");
- }
- public int getBind() {
- return Keyboard.getKeyIndex(this.bind.field_146126_j);
- }
- public boolean isAimbotEnabled() {
- return this.isAimbotOn;
- }
- public double getSpeed() {
- return this.aimbotSpeed.getValueInt() / 10.0;
- }
- public double getDistance() {
- return this.aimbotDistance.getValueInt() / 10.0;
- }
- public int getFov() {
- return this.fovSlider.getValueInt();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement