You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d4a14a
Browse filesBrowse the repository at this point in the historyBrowse files
docs(hud): add the hold-to-peek detail panel to HUD Standard v1
Define the optional on-demand detail panel as a second HUD surface
alongside the slot badge: a non-capturing HudRenderCallback on an unbound
keybind that reuses the badge's four visibility rules, takes no slot or
coordination accessors, pages (never scrolls) its overflow, and never
restates a recipe-viewer/tooltip catalog. Covered in HUD-STANDARD.md §8
and the mc-hud skill.
Copy file name to clipboardExpand all lines: .ai/skills/CATALOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ the relevant `SKILL.md` directly **before** working in its subject area — use
18
18
|[`mc-config`](mc-config/SKILL.md)| Build and maintain a Concord mod's JSON config the suite way — a GSON POJO with versioned schema migration, warn-and-clamp validation, atomic save, a volatile reloadable singleton, a Cloth/ModMenu editor, and a server→client sync with client-fallback precedence | when creating or editing a *Config.java, *ConfigMigrator.java, a compat/modmenu/ModMenuIntegration.java, or any code that reads mod config, syncs config to clients, or adds a config field/section/migration. |
19
19
|[`mc-datagen`](mc-datagen/SKILL.md)| Create and maintain Minecraft Fabric data generation providers (models, blockstates, recipes, tags, loot tables, advancements) | when creating or editing *Provider.java, *DataGenerator.java, DataGeneratorEntrypoint, or when the user mentions datagen, data generation, or runDatagen. |
20
20
|[`mc-gradle-builds`](mc-gradle-builds/SKILL.md)| Best practices for running Gradle builds, tests, and gametests in Fabric Minecraft mods. Prevents wasted reruns from partial output capture | when running any Gradle command (build, test, runGametest, runDatagen, assemble, check), or when inspecting build output/reports. |
21
-
|[`mc-hud`](mc-hud/SKILL.md)| Build a conforming persistent HUD element the suite way (the Concord HUD Standard) — a 20px icon+bar badge registered via HudRenderCallback, anchored with pure testable offset math, hidden by the four standard visibility rules, and stacked under higher-priority sibling mods through reflection-backed coordination accessors rather than hardcoded heights| when creating or editing a *HudOverlay.java, HudMath, a HudRenderCallback registration, the isHudVisible()/getHudHeight() coordination accessors, or when the user mentions a HUD slot, HUD element, on-screen badge, or stacking a HUD against another mod. |
21
+
|[`mc-hud`](mc-hud/SKILL.md)| Build a conforming HUD surface the suite way (the Concord HUD Standard) — the persistent 20px icon+bar slot badge (registered via HudRenderCallback, anchored with pure testable offset math, hidden by the four standard visibility rules, and stacked under higher-priority sibling mods through reflection-backed coordination accessors rather than hardcoded heights) and the optional hold-to-peek detail panel that expands it on a keybind | when creating or editing a *HudOverlay.java, a *DetailPanelRenderer.java, HudMath, a HudRenderCallback registration, the isHudVisible()/getHudHeight() coordination accessors, or when the user mentions a HUD slot, HUD element, on-screen badge, a hold-to-peek/detail panel, or stacking a HUD against another mod. |
22
22
|[`mc-mixin-craft`](mc-mixin-craft/SKILL.md)| Write, debug, and maintain Mixin injections and access wideners for Fabric Minecraft mods | when creating or editing *Mixin.java, *Accessor.java, *Invoker.java, *.mixins.json, *.accesswidener files, or when discussing injection points, @Inject, @Redirect, @ModifyVariable, or @Overwrite. |
23
23
|[`mc-mod-testing`](mc-mod-testing/SKILL.md)| Write and maintain tests for Fabric Minecraft mods across the three-tier test spectrum (pure JUnit, fabric-loader-junit, Fabric Gametest) | when creating or editing *Test.java, *GameTest.java, or when the user asks about testing a Minecraft mod, fabric-loader-junit, or Fabric Gametest. |
24
24
|[`mc-networking`](mc-networking/SKILL.md)| Implement client-server networking for Fabric Minecraft mods (custom packets, payload types, stream codecs, sync patterns) | when creating or editing *Payload.java, *Packet.java, *Networking.java, PayloadTypeRegistry, StreamCodec, ServerPlayNetworking, or ClientPlayNetworking. |
Copy file name to clipboardExpand all lines: .ai/skills/mc-hud/SKILL.md
+62-8Lines changed: 62 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,26 @@
1
1
---
2
2
name: mc-hud
3
-
description: Build a conforming persistent HUD element the suite way (the Concord HUD Standard) — a 20px icon+bar badge registered via HudRenderCallback, anchored with pure testable offset math, hidden by the four standard visibility rules, and stacked under higher-priority sibling mods through reflection-backed coordination accessors rather than hardcoded heights. TRIGGER when creating or editing a *HudOverlay.java, HudMath, a HudRenderCallback registration, the isHudVisible()/getHudHeight() coordination accessors, or when the user mentions a HUD slot, HUD element, on-screen badge, or stacking a HUD against another mod.
3
+
description: Build a conforming HUD surface the suite way (the Concord HUD Standard) — the persistent 20px icon+bar slot badge (registered via HudRenderCallback, anchored with pure testable offset math, hidden by the four standard visibility rules, and stacked under higher-priority sibling mods through reflection-backed coordination accessors rather than hardcoded heights) and the optional hold-to-peek detail panel that expands it on a keybind. TRIGGER when creating or editing a *HudOverlay.java, a *DetailPanelRenderer.java, HudMath, a HudRenderCallback registration, the isHudVisible()/getHudHeight() coordination accessors, or when the user mentions a HUD slot, HUD element, on-screen badge, a hold-to-peek/detail panel, or stacking a HUD against another mod.
4
4
---
5
5
6
-
The user is rendering a persistent on-screen HUD element. The Concord HUD Standard
7
-
is summarized in full below — this skill is the normative reference for member
8
-
repos, which don't carry a separate standards doc. The hard part is **cross-mod
6
+
The user is rendering an on-screen HUD surface — the persistent slot badge, the
7
+
optional hold-to-peek detail panel, or both. The Concord HUD Standard is summarized
8
+
in full below — this skill is the normative reference for member repos, which don't
9
+
carry a separate standards doc. The hard part for the badge is **cross-mod
9
10
stacking**: each mod renders its own element and must offset past higher-priority
10
-
siblings *without* depending on them or hardcoding their size.
11
+
siblings *without* depending on them or hardcoding their size. The detail panel is
12
+
simpler — transient and unstacked — but has its own rules (see below).
11
13
12
14
## Whether a mod gets a slot at all
13
15
14
16
A mod takes a HUD slot **only if it has persistent ambient state the player needs
15
17
while walking around** (a level, a standing, a tier that changes as you play).
16
-
Everything else belongs in screens, tooltips (Jade/WTHIT — see `mc-tooltips`), or
17
-
recipe viewers (`mc-compat`). **Opting out is conformant; future members default
18
-
to no slot.** Record a no-slot decision in the mod's `design/DESIGN.md`.
18
+
On-demand detail that is too much for the badge — exact figures, a full ladder,
19
+
what's physically nearby — goes in the **hold-to-peek detail panel** (below), not a
20
+
new slot. Everything else belongs in screens, tooltips (Jade/WTHIT — see
21
+
`mc-tooltips`), or recipe viewers (`mc-compat`). **Opting out is conformant; future
22
+
members default to no slot.** Record a no-slot decision in the mod's
23
+
`design/DESIGN.md`.
19
24
20
25
## Slot registry
21
26
@@ -175,6 +180,46 @@ sibling's HUD. The legacy fixed offset above is only a transitional fallback for
175
180
sibling release that predates the accessors. The ~80 lines of offset logic are
176
181
deliberately duplicated per mod (convention over dependency).
177
182
183
+
## Hold-to-peek detail panel
184
+
185
+
The optional on-demand companion to the badge — the badge says *roughly*, the panel
186
+
says *everything*. It is a `HudRenderCallback`, **not** a `Screen`: it never captures
187
+
the mouse, pauses the game, or blocks movement (it behaves like vanilla's hold-Tab
188
+
player list). Reference: Tribulation's `TierDetailPanelRenderer`, Mercantile's
189
+
`ReputationDetailPanelRenderer`. Class convention: `*DetailPanelRenderer`.
190
+
191
+
-**Keybind.** Register a `KeyMapping` under Controls → `<Mod>`, **unbound by
192
+
default**, labelled "Peek `<Domain>` Detail". Draw the panel only while it's held
0 commit comments