-
Автор темы
- #1
Не выдали альфу нурсултана, пришлось делать самому.
SS -
SS -
Пожалуйста, авторизуйтесь для просмотра ссылки.
watermark:
RenderUtility.drawDarkMoonShader((float) (itemOffset - 5), posY, 50 -1, 17.0F, 7);
Date currentTime = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("hh:mm:ss");
String formattedTime = dateFormat.format(currentTime);
RenderUtility.drawDarkMoonShader((float) (itemOffset - 5) + 52 , posY, 93+ Fonts.sfmedium.getStringWidth(formattedTime), 17.0F, 7);
RenderUtility.drawRect((float) (itemOffset - 5) + 20.5F - 2,posY + 4,0.5f, 10,new Color(144,144,144).getRGB());
RenderUtility.drawRect((float) (itemOffset - 5) + 20.5F - 2 + 104,posY + 4,0.5f, 10,new Color(144,144,144).getRGB());
int finalItemOffset = itemOffset;
Color color4 = DarkMoon.getInstance().getThemeManager().getCurrentStyleTheme().getColors()[0];
Color color5 = DarkMoon.getInstance().getThemeManager().getCurrentStyleTheme().getColors()[1];
Fonts.sfmedium.drawGradientString("Alpha", (double) ((float) itemOffset + 1) + 10 -1.5f + 10 -2, (double) (posY + 5) + 1.5f, color4, color5);
Fonts.icons21.drawGradientString("P.", (double) ((float) itemOffset + 1) , (double) (posY + 5) + 2.5f, color4, color5);
Fonts.icons21.drawGradientString("W.", (double) ((float) itemOffset + 1) + 52 , (double) (posY + 5) + 2.5f, Color.WHITE, Color.WHITE);
Fonts.sfmedium.drawGradientString("Trustme1488", (double) ((float) itemOffset + 1) + 63 , (double) (posY + 5) + 1.5f, Color.WHITE, Color.WHITE);
Fonts.icons21.drawGradientString("V.", (double) ((float) itemOffset + 1) + 52 + 70 - 1 + 1 , (double) (posY + 5) + 2.5f, Color.WHITE, Color.WHITE);
Fonts.sfmedium.drawGradientString(formattedTime, (double) ((float) itemOffset + 1) + 63 + 70, (double) (posY + 5) + 1.5f, Color.WHITE, Color.WHITE);
RenderUtility.drawDarkMoonShader((float) (itemOffset - 5), posY + 18.5f, 50 -1 + 8, 17.0F, 7);
Fonts.icons21.drawGradientString("Q.", (double) ((float) itemOffset + 1) , (double) (posY + 5) + 2.5f + 18.5f, Color.WHITE, Color.WHITE);
RenderUtility.drawRect((float) (itemOffset - 5) + 20.5F - 2,posY + 4 + 18.5f,0.5f, 10,new Color(144,144,144).getRGB());
String tpsText = ChatFormatting.WHITE + String.format("%.0f", TPSSync.getTPS());
Fonts.sfmedium.drawGradientString(tpsText, (double) ((float) itemOffset + 1) + 16 , (double) (posY + 5) + 1.5f + 18.5f, Color.WHITE, Color.WHITE);
Fonts.sfmedium.drawGradientString("Ticks", (double) ((float) itemOffset + 1) + 26 , (double) (posY + 5) + 1.5f + 18.5f, Color.WHITE, Color.WHITE);
}
}
HotKey:
int offset = -1;
int width = 75;
Iterator var8;
if (!sortedBinds.isEmpty()) {
width = (Integer) sortedBinds.stream().max(Comparator.comparingInt((modulex) -> {
return Fonts.nunitoBold15.getStringWidth(this.getText(modulex));
})).map((modulex) -> {
return Fonts.nunitoBold15.getStringWidth(this.getText(modulex));
}).get() + 16;
}
if (width < 80) {
width = 75;
}
offset = 0;
for (Module module : sortedBinds) {
offset += 11;
}
this.animHeight = AnimationMath.fast(this.animHeight, (float)offset, 13.0F);
this.animWidth = AnimationMath.fast(this.animWidth, (float)width, 13.0F);
this.keybindsDraggable.setWidth((float)(width + 10));
this.keybindsDraggable.setHeight((float)(21 + offset));
RenderUtility.drawDarkMoonShader((float)this.keybindsDraggable.getX(), (float)this.keybindsDraggable.getY() + 1, this.animWidth, 16.5F , 7);
RenderUtility.drawRect((float)this.keybindsDraggable.getX() - 18+ this.animWidth /2.0f,(float)this.keybindsDraggable.getY() + 4,0.5f, 10,new Color(144,144,144).getRGB());
Fonts.icons2.drawString("C", (float) this.keybindsDraggable.getX() + this.animWidth / 2.0F + 1.0F - 33, (float) (this.keybindsDraggable.getY() + 7), -1);
Fonts.sfmedium2.drawCenteredString("Hotkeys", (float) this.keybindsDraggable.getX() + this.animWidth / 2.0F + 3.0F, (float) (this.keybindsDraggable.getY() + 7) - 1, -1);
offset = 0;
for (Module module : sortedBinds) {
int finalOffset = offset;
RenderUtility.drawDarkMoonShader((float)this.keybindsDraggable.getX(), (float)this.keybindsDraggable.getY() + offset + 22 -3, this.animWidth, 12.5F , 5);
RenderUtility.drawRect((float)this.keybindsDraggable.getX() - 18+ this.animWidth /2.0f + 45 - 4,(float)this.keybindsDraggable.getY() + offset + 24- 1 - 0.5f,0.5f, 5,new Color(144,144,144).getRGB());
Fonts.sfmedium10.drawString(module.getName(), (float)(this.keybindsDraggable.getX() + 6), (float)this.keybindsDraggable.getY() + 22.0F + (float) finalOffset + 4 - 3 + 0.5f, Color.WHITE.getRGB());
String bindText = "" + (module.bind < 0 ? "MOUSE " + module.getMouseBind() : Keyboard.getKeyName(module.getBind())) + "";
Fonts.sfmedium10.drawString(bindText, (float)this.keybindsDraggable.getX() + this.animWidth - (float)Fonts.tenacityBold13.getStringWidth(bindText) - 6.0F, (float)(this.keybindsDraggable.getY() + 22 + offset) + 4 - 2.5f, Color.WHITE.getRGB());
offset += 14;
}
SmartScissor.unset();
SmartScissor.pop();
DarkMoon.getInstance().getScaleMath().popScale();
}
private String getText(Module module) {
String var10000 = module.getName().toLowerCase();
return var10000 + "[" + (module.bind < 0 ? "MOUSE" + module.getMouseBind() : Keyboard.getKeyName(module.getBind())) + "]";
}
}
drawDarkMoonShader:
public static void drawDarkMoonShader(float x, float y, float width, float height, float round) {
if (DarkMoon.getInstance().getModuleManager().blurContainer.isEnabled() && DarkMoon.getInstance().getModuleManager().blurContainer.multiBooleanSetting.get(0)) {
drawBlur(() -> {
drawRoundedRect(x, y , width , height ,round + 1.5f, new Color(23, 21, 21, 153).getRGB());
}, DarkMoon.getInstance().getModuleManager().blurContainer.blurVisual.get());
drawRoundedRect(x - 1 + 1 , y , width , height ,round, new Color(32, 26, 30, 190).getRGB());
} else {
drawRoundedRect(x - 1, y - 1, width + 2f, height + 2f,round, new Color(32, 22, 40, 180).getRGB());
}
}
Последнее редактирование: