Mycopunk
Install

Details

Last Updated
First Uploaded
Downloads
408
Likes
0
Size
118KB
Dependency string
Sparroh-SparrohUILib-2.1.0
Dependants

Changelog

1.2.3

Fixes

  • Input caret — runtime-created UIInputField now toggles enabled after wiring so TMP builds caret/selection graphics (focus alone was not enough)

1.2.2

Fixes

  • UIDragList — drop targeting uses padded slot bands (floor into row+spacing) so reordering needs less precise pointer placement

1.2.1

Fixes

  • UIDragList — dragged row now follows the pointer (grab-offset preserved) instead of only jumping on index change
  • Drop index accounts for content padding/spacing and live row centers; scrolling disabled while dragging
  • OnReordered fires once on drop (from start index → final index)

1.2.0

Added

  • HUD reposition helpers — soft-dependency client for ModSettingsMenu's drag-reposition API (no hard reference required)
    • HudRepositionClient.Register / Unregister / IsAvailable
    • HudAnchors.Bind — bind {Name} X / {Name} Y under [HUD Positioning]
    • HudAnchors.BindKeys — bind custom key names
    • HudReposition.Bind / HudHandle.EnableReposition — register, sync anchors on SettingChanged, auto-unregister on destroy
    • HudHandle.DisableReposition / HasReposition

Notes

  • Drag mode (F9), overlay, and auto-detect remain in ModSettingsMenu
  • Consumer mods can delete their copied HudRepositionClient.cs and use the library API instead
  • UISlider / UIProgressBar were already present; no changes in this release

1.1.6

Fixes

  • Input caretUIInputField now enables customCaretColor, sets a readable caret width, and uses a standard blink rate so focused fields show a clear blinking insertion line

1.1.5

Fixes

  • Dropdown layering — open option lists reparent to the root canvas and use override sorting (UITheme.DropdownSortingOrder) so they paint above later siblings and are not clipped by scroll masks
  • Dropdowns flip above the trigger when there is not enough room below

API

  • Added UIDropdown.IsOpen for consumers that track open state after reparent

1.1.4

Fixes

  • Quit-to-menu / lobby reload — HUD handles parented to the player reticle no longer stay "alive" as stale C# wrappers after scene unload. HudHandle.IsAlive / HudHandle.IsValid let consumers detect teardown and rebuild
  • HudHandleLife marks handles dead immediately when Unity destroys the root (player despawn / scene unload)
  • HudVisibility prunes dead handles every tick and resets hide-state cache on scene unload
  • GearActionBar host is invalidated on scene unload and ticked from the library plugin (no longer depends on a single consumer calling Tick)
  • UITheme font cache cleared on scene unload so destroyed in-scene TMP fonts are not reused
  • UIText accessors no-op safely when the underlying TMP was destroyed

API

  • HudHandle.IsAlive — true while the Unity GameObject still exists
  • HudHandle.IsValid(handle) — null-safe validity check
  • HudVisibility.PruneDead / ResetSessionState
  • UITheme.ClearFontCache

1.1.3

Added

  • HUD elements built via HudBuilder / HudHandle now respect the vanilla Hide HUD option (PlayerLook.DisablePlayerHUD)
  • Added HudVisibility helper; HudHandle.SetActive stores desired visibility and applies it only when the vanilla HUD is shown

Notes

  • Menu/overlay UI (windows, gear action bar) is unaffected

1.1.2

Fixes

  • Fixed gear action bar buttons requiring clicks slightly above the visible control
  • GearActionBar now parents under the game Menu canvas (camera/blit UI space) instead of a separate overlay canvas
  • Bar sizing uses menu reference pixels to avoid double-scaling with the menu CanvasScaler
  • Bar re-attaches if the menu is destroyed/recreated; stays on top while gear details is open
  • Nudged bar down/right so it sits cleanly in the curved menu chrome
  • Gear action buttons are centered and grow outward as more mods register slots

1.1.1

Fixes

  • Fixed gear-bar / button hover being wiped when SetInteractable or SetStyle ran every frame
  • UIButton now tracks hover/press state and reapplies the correct color after style/interactable changes
  • GearActionBar.Register / SetText / SetInteractable only apply when values actually change
  • Stronger, style-specific button hover/pressed colors for Default, Primary, Danger, and Active

1.1.0

Added

  • Hex color parsing helpers: UIColors.TryParseHex, UIColors.ParseHex
  • ConfigColor helper for binding hex color config entries with cached Color values

1.0.0

Added

  • Initial release of SparrohUILib
  • Theme system with Mycopunk-inspired palette and resolution-aware scaling
  • Core UI factory and layout helpers
  • HUD builders (single-line and multi-line panels)
  • Gear action bar for shared gear-menu buttons
  • Widgets: text, button, toggle, input field, panel, scroll view, separator, dropdown, slider, progress bar, tabs, tooltip, drag list
  • Overlay windows and confirmation/alert dialogs (per-window canvases)
  • Rich text helpers for labeled values and rates
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.