File Details
extraspecialcore-1.2.0.jar
- R
- Jun 11, 2026
- 2.93 MB
- 9.1K
- 1.20.1
- Forge
File Name
extraspecialcore-1.2.0.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
ExtraSpecialCore 1.2.0 — Anchor layout foundation
Consumer mods should depend on [1.2.0,2.0) for anchor APIs and search-box helpers.
Layout & screens
- Anchor layout API —
EscAnchor,EscInsets,EscLayoutSpec,EscLayout, andEscRecthelpers for resolving widget and panel bounds from parent rects instead of hard-coded pixel math. EscScreenbase class — Subclasses implementbuildLayout(); called automatically frominit()on open and resize. IncludesaddAnchoredButton,addButton, and anchor-based widget placement helpers.- Column splits —
EscRect.splitColumns()for proportional multi-column layouts (e.g. 25% / 50% / 25%). - Fixed-aspect fitting —
EscLayout.fitContained()andEscLayout.fitScale()for content with a design size (keyboards, diagrams) that scales uniformly inside a parent rect. - Unit tests —
EscLayoutTestcovers anchor resolve, fill, stretch, and column splits.
Text & widgets
EscTexthelpers —drawFitted/drawInRectfor bounded cells;drawScrollingStringfor single-line overflow;measureLineHeightfor font-aware vertical centering.EscSearchBox— Single-line search field with scrolling hint, clip, and ESC font formatting.recommendedHeight(Font)sizes the field to one line of text. Text and hint render vertically centered; cursor usesgetScreenX().EscScreen.addSearchBox()— Creates, sizes, and registers search widgets on the screen (panels expose bounds viabindSearchBox()rather than constructing widgets themselves). Overloads for message + hint;addAnchoredSearchBox()for anchor specs.
Migration
- See
LAYOUT_MIGRATION.mdfor before/after patterns when moving mod screens off absolute pixels. - See
GUI_VISUAL_CHECKLIST.mdfor scale/resolution regression testing after layout changes.