promotional bannermobile promotional banner

Mark Target

Mark Target Panel

File Details

MarkTarget_06-04-26.zip

  • R
  • Apr 6, 2026
  • 13.81 KB
  • 207
  • 5.5.3+2
  • Classic + 2

File Name

MarkTarget_06-04-26.zip

Supported Versions

  • 5.5.3
  • 2.5.5
  • 1.15.8
[4.2] - 2026-04-06

Added

- `showLockButton` setting (checkbox Show lock/unlock button) — hide the panel lock control while keeping drag lock state; defaults to on for existing saves.

Localization

- New string `SHOW_LOCK_BUTTON` in enUS and existing locale overrides.

---

[4.1] - 2026-04-06

Added

- `Bindings.xml` — keybinding Apply Default Mark appears in the game’s key bindings list (uses `MarkTarget_ApplyDefaultMark()`).
- `modifierAutoMark` setting (checkbox Auto-apply default mark when the modifier is active) — turn off automatic marking on modifier changes; default remains on for existing saves.
- `SetClampedToScreen(true)` on the mark panel so it stays on screen when dragged.
- `RAID_TARGET_UPDATE` and `PLAYER_TARGET_CHANGED` — highlight ring on the panel follows the current target’s raid marker (or clears when none).
- `InitializeSettings`: default `selectedKey` = `"SHIFT"`; `modifierAutoMark` = `true` when missing.

Changed

- Lock button uses built-in textures `Interface\Buttons\LockButton-Locked-Up` / `LockButton-Unlocked-Up` (no missing addon `.blp` files).
- `MODIFIER_STATE_CHANGED`: no automatic mark when `modifierAutoMark` is off, `selectedKey` is `NONE`, or modifier is not active (avoids spam when `NONE` was effectively always “true”).
- `CheckModifierState`: `NONE` returns false (used only with modifier auto-mark logic).
- `SetMarkOnTarget`: skips `SetRaidTarget` while `InCombatLockdown()` to match secure-mode behavior.
- `UpdateActiveMark`: accepts `nil` to clear the active highlight.
- Key capture for “set modifier key”: overlay on the settings frame, `EnableKeyboard`, `SetFocus`, ESC cancels; `FULLSCREEN_DIALOG` strata for reliable focus.
- Panel visibility checkbox uses `not not self:GetChecked()` for a reliable boolean.
- Settings layout: new checkbox; default mark and opacity controls moved down.

Localization

- New string `AUTO_MARK_ON_MODIFIER` in enUS and existing locale overrides.

Fixed

- Lock tooltips: English fallbacks when a locale string is empty.
- Tooltip refresh on lock click uses the same fallback logic.