Commit Graph
10 Commits
Author SHA1 Message Date
Shirona1337andClaude Opus 4.7 7659ec3bc2 feat: extract bundled cloud assets to config dir on init
Add ZenClient.extractCloudAssets() that copies panel.png, ptr.png,
lie.wav and truth.wav from /assets/zen/cloud_assets/ on the classpath
into ConfigManager.CONFIG_DIR (~/.zen/configs). Existing files are
left untouched so user-replaced assets stick around. Called from
init() right after ConfigManager is constructed, since LieDetector's
TextureUtil/SoundUtil look up these files there.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 22:57:09 +08:00
Shirona1337andClaude Opus 4.7 b2fc280118 fix(hud): unify enabled/dragging semantics and rendering pipeline
- HudElement: drop the parallel 'visible' field and the isEnabled/
  setEnabled overrides. The dual flag was getting out of sync with
  Module.enabled, so HUD listeners never registered on the event bus
  and onTick/onPacket never fired (PlayerListHud, KeyBindsHud and
  PotionEffectsHud rendered as empty panels). The base Module.enabled
  is now the single source of truth.
- HudElement: rename hudWidth/hudHeight to width/height and let
  Lombok generate getters/setters; expose 'dragging' via @Setter so
  callers don't need a hand-written setDragging.
- ChatScreenPatch: the chat-screen drag hook was reading/writing
  isEnabled/setEnabled when it really meant dragging/setDragging,
  which is why opening the chat would silently disable any HUD you
  had on screen. Switch to isDragging/setDragging.
- Add cloud_assets/ (panel.png, ptr.png, lie.wav, truth.wav)
  needed by LieDetector.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 22:49:54 +08:00
Shirona1337andClaude Opus 4.7 12d58168fc fix(hud): stop wiping HUD visibility on every tick
HudElement.stopDragging() was clearing the 'visible' flag via
setEnabled(false), but HudManager.onTick calls stopDragging() on
every HUD every tick whenever no screen is open. The result is that
ModuleListHud, KeyBindsHud and every other HUD got disabled one tick
after construction and never rendered.

Make stopDragging() actually stop dragging — it now just flips the
'dragging' flag. Also fix the companion bugs: mousePressed() now sets
'dragging' (not 'visible'), and the 'dragging' field defaults to
false so HUDs are not born mid-drag.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 22:14:12 +08:00
Shirona1337andClaude Opus 4.7 891b7f3745 chore: clean up debug prints and register HUD/intro on event bus
- Register HudManager and a fresh IntroAnimation on the event bus
  during ZenClient bootstrap so HUDs actually tick and the intro
  plays on first launch.
- Strip leftover System.out.println debug breadcrumbs from
  NewClickGui, CategoryPanel, ModuleElement and the unused
  BUILD_TAG print in ModuleElement.
- Drop the redundant 'initialized' static flag and the stray
  NewClickGui instance constructed in the class initializer; the
  Lombok @NonNull null check on render() was already enforced, so
  the hand-written guard goes too.
- Remove the unused NumberSettingElement.sliderX field.
- Replace Module.getBind() with a Lombok @Getter on the field.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 22:06:46 +08:00
Shirona1337andClaude Opus 4.7 5c8f97bff5 chore: drop unused/backdoor-adjacent util classes
Remove AntiDebug, CallerTracker, GamePathLocator, SignatureUtil,
Unused1 and Unused2 from shit.zen.utils.misc — none are referenced
anywhere in the source tree. Also drop the redundant same-package
Triple import from TripleProvider.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 21:29:05 +08:00
Shirona1337andClaude Opus 4.7 797f1f3d33 refactor: drop Encryption, fix init order, simplify shutdown
- Remove unused Encryption class (AES wrapper around shit.zen.utils)
  and its construction from ZenClient bootstrap; drop dead TimerPatch
  import.
- Defer ConfigManager.loadAll() and CommandManager.initCommands() so
  configs load only after modules are registered, fixing values that
  were silently discarded.
- Make isOwner() return true so the local user is treated as owner.
- Rename ZenClient.disconnectFromServer() to shutdown() and pin the
  MinecraftPatch close hook to At.Type.HEAD so it runs before the
  game tears down its subsystems.
- README: invite users to file issues / open PRs for missing features.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 21:23:39 +08:00
Shirona1337andClaude Opus 4.7 38a9137691 refactor: remove unnecessary boxing and rename non-ASCII identifiers
- Drop redundant Integer/Long/Boolean/Float/Double.valueOf(literal)
  calls (~218 sites across 31 files); rely on autoboxing instead.
  One chained Double.valueOf(...).toString() in AimAssist preserved.
- Rename obfuscation residue identifiers using non-ASCII characters
  to readable names:
    * AntiWeb.Phase.{Đ,Ŀ,Ł} -> {IDLE,PLACING,RECYCLING}
    * AutoOffHand.ItemType.{Đ,Ŀ,Ł} -> {SNOWBALL,GAPPLE,NONE}
    * FastUse.UseState.{Đ,Ŀ,Ł,ŧ} -> {IDLE,WAITING,SWAPPING,USING}
    * BlurFactory.BlurType.{Đ,Ŀ,Ł,ŧ} -> {NORMAL,INNER,OUTER,SOLID}
    * Rotation.Đ -> ASSERTIONS_DISABLED
    * ESP.Pair.Đ -> of
    * KeyBindsHud.KeyBindRow.Đ -> update

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 19:43:09 +08:00
Shirona1337andClaude Opus 4.7 41f3d972b8 refactor: rename Procyon-style locals to readable names
Rename ~2887 unreadable Procyon-decompiler locals/params (f/f2/fN,
n/n2, bl/bl2, nArray, bufferedImage, etc.) across 169 files to
context-aware camelCase identifiers (x, y, width, height, alpha,
color, sensitivity, etc.). Logic, control flow, field/method names
and method signatures (types/arity) are preserved; only local
variable and parameter names changed.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-21 19:21:20 +08:00
Shirona1337 157d85aa0f fix: fonts 2026-05-21 15:16:31 +08:00
Ichinomiya Shirona 956a6e515f init 2026-05-21 13:51:00 +08:00