chore(history): squash 10 commit(s) from 2026-07-31
- feat: Фаза 1 ребрендинг combatant → lovisual + восстановление config - refactor: Фаза 2 — выкинуть Runtime/JarReplacement, заменить на Lifecycle - refactor: Фаза 3.5 — удалить читерские модули, ESP под легит - refactor: Фаза 3 — разбить Renderer2D (3379→2150 фасад + 14 хелперов ≤200) - refactor: Фаза 3 — разбить BetterChatRenderer (2870→210 фасад + 21 хелпер ≤200) - refactor: Фаза 3 — разбить UnifiedSettingRenderer (2798→208 фасад + 24 хелпера ≤200) - refactor: Фаза 3 — разбить ClickGuiRenderer (1887→542 фасад + 15 хелперов ≤200) - refactor: Фаза 3 — разбить NameTags (1791→438 фасад + 11 хелперов ≤200) - refactor: Фаза 3 — разбить TargetHud (1655→340 фасад + 11 хелперов ≤200) - refactor: Фаза 3 — разбить ESP (1538→269 фасад + 11 хелперов ≤200)
This commit is contained in:
parent
8084ac50b3
commit
52d87368c9
1595 changed files with 35857 additions and 51145 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* This file is part of the Combatant Client distribution.
|
||||
* This file is part of the LoVisual Client distribution.
|
||||
* Copyright (c) 2026 pivosos2007.
|
||||
*
|
||||
* Licensed under the GNU General Public License v3.0.
|
||||
|
|
@ -24,7 +24,7 @@ import dev.loki.lovisual.mixins.accessors.SliderWidgetAccessor;
|
|||
public abstract class AbstractSliderButtonMixin {
|
||||
|
||||
@Inject(method = "extractWidgetRenderState(Lnet/minecraft/client/gui/GuiGraphicsExtractor;IIF)V", at = @At("HEAD"), cancellable = true)
|
||||
private void combatant$renderWidget(GuiGraphicsExtractor ctx, int mouseX, int mouseY, float delta, CallbackInfo ci) {
|
||||
private void lovisual$renderWidget(GuiGraphicsExtractor ctx, int mouseX, int mouseY, float delta, CallbackInfo ci) {
|
||||
BetterButtons buttons = BetterButtons.get();
|
||||
if (buttons == null || !buttons.useUiButtons()) return;
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
|
|
@ -33,10 +33,10 @@ public abstract class AbstractSliderButtonMixin {
|
|||
AbstractWidget widget = self;
|
||||
|
||||
boolean hovered = widget.isMouseOver(mouseX, mouseY);
|
||||
boolean dragging = ((SliderWidgetAccessor) self).combatant$isDragging();
|
||||
boolean dragging = ((SliderWidgetAccessor) self).lovisual$isDragging();
|
||||
float hover = BetterButtons.updateHover(widget, hovered || dragging);
|
||||
|
||||
double value = ((SliderWidgetAccessor) self).combatant$getValue();
|
||||
double value = ((SliderWidgetAccessor) self).lovisual$getValue();
|
||||
BetterButtons.enqueueSlider(widget, (float) value, dragging, hover);
|
||||
if (hovered) {
|
||||
BetterButtons.captureTooltip(widget, mouseX, mouseY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue