Skip to content

Commit ebd024d

Browse files
committed
Big Update
1 parent 11bdaa0 commit ebd024d

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

src/main/java/me/crimp/claudius/mod/gui/components/Component.java

+3-23
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import net.minecraft.client.audio.PositionedSoundRecord;
1212
import net.minecraft.client.renderer.GlStateManager;
1313
import net.minecraft.init.SoundEvents;
14+
import net.minecraft.util.ResourceLocation;
1415

1516
import java.util.ArrayList;
1617

@@ -31,7 +32,7 @@ public Component(String name, int x, int y, boolean open) {
3132
this.x = x;
3233
this.y = y;
3334
this.width = 80;
34-
this.height = 17;
35+
this.height = (int) 17.7f;
3536
this.open = open;
3637
this.setupItems();
3738
}
@@ -57,7 +58,7 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
5758
RenderUtil.drawRect(this.x, (float)this.y - 1f, this.x + this.width, this.y + this.height - 6, color);//0x77FB4242, 0x77FB4242);
5859

5960
if (this.open) {
60-
RenderUtil.drawRect(this.x -1f, (float)this.y + 11f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 2f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,255));//1996488704
61+
RenderUtil.drawRect(this.x -1f, (float)this.y + 11.5f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 1.2f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,255));//1996488704
6162
RenderUtil.drawRect(this.x, (float)this.y + 12.5f, this.x + this.width, this.open ? (float)(this.y + this.height) + totalItemHeight : (float)(this.y + this.height - 1), color2);//1996488704
6263
}
6364
Claudius.textManager.drawStringWithShadow(this.getName(), (float) this.x + 3.0f, (float) this.y - 4.0f - (float) ClickGui.getClickGui().getTextOffset(), -1);
@@ -80,27 +81,6 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
8081
y += (float)item.getHeight() + 1.5f;
8182
}
8283
}
83-
84-
/*this.drag(mouseX, mouseY);
85-
counter1 = new int[]{1};
86-
float totalItemHeight = this.open ? this.getTotalItemHeight() - 2.0f : 1.0f;
87-
int color = ColorUtil.toARGB(ClickGuiModule.INSTANCE.topRed.getValue(), ClickGuiModule.INSTANCE.topGreen.getValue(), ClickGuiModule.INSTANCE.topBlue.getValue(), 255);
88-
RenderUtil.drawRect(this.x, this.y - 1, this.x + this.width, this.y + this.height - 6, color);
89-
if (this.open) {
90-
RenderUtil.drawRect(this.x, (float) this.y + 13.5f, this.x + this.width, (float) (this.y + this.height) + totalItemHeight, 0x77000000);
91-
}
92-
Claudius.textManager.drawStringWithShadow(this.getName(), (float) this.x + 3.0f, (float) this.y - 4.0f - (float) ClickGui.getClickGui().getTextOffset(), -1);
93-
if (this.open) {
94-
float y = (float) (this.getY() + this.getHeight()) - 3.0f;
95-
for (Item item : this.getItems()) {
96-
Component.counter1[0] = counter1[0] + 1;
97-
if (item.isHidden()) continue;
98-
item.setLocation((float) this.x + 2.0f, y);
99-
item.setWidth(this.getWidth() - 4);
100-
item.drawScreen(mouseX, mouseY, partialTicks);
101-
y += (float) item.getHeight() + 1.5f;
102-
}
103-
}*/
10484
}
10585

10686
public void mouseClicked(int mouseX, int mouseY, int mouseButton) {

src/main/java/me/crimp/claudius/mod/modules/pvp/AutoClicker.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class AutoClicker extends Module {
1111

1212
private double speed;
1313
private double holdLength;
14-
public Setting<Boolean> Always = this.register(new Setting<>("Alwasys oin", false));
14+
public Setting<Boolean> Always = this.register(new Setting<>("Always on", false));
1515

1616
public AutoClicker() {
1717
super("AutoClicker", "TestDesc", Category.PVP, true, false, false);
@@ -33,6 +33,5 @@ public void onUpdate() {
3333
}
3434
}
3535
}
36-
3736
}
3837

src/main/java/me/crimp/claudius/mod/modules/pvp/AutoCrystal.java

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private void rotateTo(Entity entity) {
142142
this.yaw = angle[0];
143143
this.pitch = angle[1];
144144
this.rotating = true;
145+
RotationUtil.faceYawAndPitch(angle[0], angle[1]);
145146
}
146147
}
147148

0 commit comments

Comments
 (0)