Commit Graph

5 Commits

Author SHA1 Message Date
kompolompo a8ec255a90 Add FPS display, make world latency opt-in, bump to 1.3
World latency never populates on OctoWoW (always 0), so it's now hidden
behind /octolat worldlatency instead of showing a misleading "0 ms".
2026-09-05 18:30:47 +02:00
kompolompo 5e1f373b75 Fix drag getting stuck to cursor on release, bump to 1.2
OnMouseUp only fires while the cursor is still over the frame at the
instant the button is released, which a quick flick of this small
frame easily misses, leaving it stuck following the mouse forever.
OnUpdate now polls IsMouseButtonDown every frame and stops the drag
as soon as the button is released, independent of cursor position.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 12:31:35 +02:00
kompolompo 36be1e9d8e Fix stuck 0ms world latency and nil-call error spam, bump to 1.1
worldLatency or homeLatency never fell back because 0 is truthy in
Lua, so servers that never populate world latency showed a stuck
0 ms. Also guard every XML script hook with a nil check so a failed
Lua load degrades silently instead of spamming
attempt to call global 'OctoLatency_OnUpdate' (a nil value) every
frame and blocking chat input.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 12:23:58 +02:00
kompolompo ebc873a228 Revert minimap button
It conflicted with a minimap button-collector addon. Error logs stay
easy to copy via /octolat copyerrors, which is unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 12:08:52 +02:00
kompolompo 874cadc0f7 Fix nil worldLatency tooltip error, add copy-errors UI, gradient title
- Fix OnEnter tooltip crash: attempt to concatenate local
  'worldLatency' (a nil value) when GetNetStats() hasn't populated
  latency yet (e.g. right after login/loading screen); fall back to 0
  like OctoLatency_UpdateText already does
- Add /octolat copyerrors and a minimap button opening a copy-errors
  window (auto-highlighted EditBox), since vanilla WoW chat text can't
  be selected/copied directly
- Minimap button also right-click toggles the latency frame and can be
  dragged to reposition
- Color the addon's title in the AddOns list with a per-letter
  dark-to-light green gradient
- Add CHANGELOG.md

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-05 12:01:39 +02:00