Goblin Core

Shared primitives for Goblin addons

File Details

GoblinCore-V1.1.1

  • R
  • Apr 1, 2026
  • 35.70 KB
  • 5.6K
  • 12.0.5
  • Retail

File Name

GoblinCore-V1.1.1.zip

Supported Versions

  • 12.0.5

## 1.1.1 - 2026-04-01

### Added
- `Helpers.ApplyWindowPersistence(frame, store, opts)` — new utility that restores a window's saved position and size on load, then automatically persists changes on drag and resize. Uses `GetScript`/`SetScript` wrapping for reliable `OnDragStop` save, and adds an `OnHide` hook as a final save whenever the frame closes.

### Fixed
- `Helpers.SaveFramePosition`: replaced `GetPoint(1)` with `GetCenter()` relative to `UIParent:GetCenter()`. After `StartMoving()`, WoW internally changes the frame anchor to `TOPLEFT` with absolute screen coordinates — saving those raw offsets then restoring with a `CENTER` anchor placed the window at the wrong position.

---