promotional bannermobile promotional banner

Honor Bar

Adjustable XP like honor progress bar with battleground stats for Classic Era and TBC Anniversary.

File Details

Honor Bar 1.3.zip

  • R
  • Nov 23, 2025
  • 18.76 KB
  • 120
  • 1.15.8
  • Classic

File Name

Honor Bar 1.3.zip

Supported Versions

  • 1.15.8

### New

- **Auto honor cap from rank**
  - Added an **“Auto”** checkbox next to the **Honor Cap** field in the Bar Config dialog.
  - When enabled, Honor Bar:
    - Uses embedded *Rank-style* math (no external dependency) to estimate how much weekly honor you need based on:
      - Your current rank and rank progress,
      - Max obtainable rank,
      - Target/“objective” rank,
      - Bracket contribution point ranges and variance.
    - Automatically updates your **honor cap** and the milestone data as your weekly honor changes.
  - `/honor cap` now **respects Auto Cap**:
    - If Auto is on, `/honor cap` prints a message telling you to uncheck **“Auto”** in the config before setting a manual cap.

- **Rank milestones on the bar**
  - Honor Bar now computes **rank milestones** (upcoming rank + progress breakpoints) using the embedded Rank math.
  - New **milestone ticks** are drawn on top of the bar to mark those upcoming thresholds.
  - Milestones are filtered to:
    - Only show thresholds *above* your current weekly honor,
    - Respect your objective rank and max obtainable rank,
    - Skip certain “+1” edge cases in line with Rank’s behavior.

- **Milestones line in Session Stats tooltip**
  - The tooltip’s **Session Stats** section now includes a dedicated line:
    - `Milestones: R5-80 (12,345)   R6-20 (45,678) ...`
  - Shows each upcoming milestone (except the last cap) with:
    - Rank + progress (e.g., `R5-80` for Rank 5 at 80%),
    - Honor remaining to reach that milestone.
  - This line only appears when milestone data is available and relevant.

- **“Only Numbers” display mode**
  - New **“Only Numbers”** checkbox in the Bar Config dialog.
  - When enabled:
    - Bar text becomes: `123,456 / 500,000 (24.7%)`
    - When disabled (default), it shows: `Weekly Honor: 123,456 / 500,000 (24.7%)`
  - Applies both to:
    - The bar’s text overlay, and
    - The copied bar line in the tooltip when **Hide Bar Text** is enabled.

- **Milestone color customization**
  - Added a **“Milestone Color”** swatch to the bottom of the Bar Config dialog.
  - Lets you set a color specifically for milestone ticks, separate from:
    - **Bar Fill Color**
    - **Tick Color**
  - Changing tick color or milestone color automatically refreshes both the regular ticks and the milestone ticks.

- **Safer / more explicit SavedVariables**
  - TOC now declares:  
    `## SavedVariables: HonorBarDB, HonorProgressDB`
  - The Lua side aliases and migrates:
    - First-time installs create a unified DB and expose it as both `HonorBarDB` and `HonorProgressDB`.
    - Existing users with an old `HonorProgressDB` continue to work, while new installs use `HonorBarDB`.
  - This helps with future refactors and avoids losing settings between versions.

### Changed

- **Bar movement / locking behavior**
  - Removed the old **lock/unlock** system:
    - `HonorProgressDB.locked` is no longer used or saved.
    - `/honor lock on|off` command **removed**.
    - `"lock"` removed from the `/honor` suggestion list.
    - Help text line `"/honor lock on|off - lock/unlock dragging"` removed.
  - The bar is now effectively **“locked” by default**, and can only be moved by:
    - **Alt + Left-Click drag** on the bar.
  - Position still persists exactly as before (saved on mouse-up).

- **/honor help text & suggestions**
  - Updated `/honor` help output:
    - Still shows `config`, `debug`, `cap`, `auto`, `resetpos`, `show`, `hide`, `toggle`.
    - No longer mentions `lock`.
  - `/honor` suggestion helper:
    - Command list trimmed to `{ "config","debug","cap","auto","resetpos","show","hide","toggle" }`.

- **HonorProgress → HonorBar packaging**
  - The zip now ships with a single addon folder: **`HonorBar`**.
  - The old companion folder **`HonorProgress`** has been removed from the package.
  - All Honor Bar features live in one addon, with both DB names (`HonorBarDB`, `HonorProgressDB`) supported for compatibility.

### Internal / Technical

- Embedded a Rank calculation logic and lookup tables (`HB_lookupData`/`HB_Rank`) directly into Honor Bar, so:
  - Auto cap and milestones do not require any external addon.
  - Milestones and caps are derived from the same style of rank math Rank uses (brackets, CP variance, scenario filtering).
- Added internal options for:
  - `autoCapFromRank` – toggles auto-cap behavior (wired to the **“Auto”** checkbox).
  - `milestoneRGB` – stores the milestone tick color.
  - `onlyNumbers` – stores the numeric-only text preference.
- Removed the stale `locked` flag from the database and related logic, simplifying drag handling and config state.

---

## 1.2.4

Baseline 2.11i feature set (before the 1.3 changes):

- Movable weekly honor bar with 1s auto-refresh from the Classic honor APIs.
- 0.2s live tooltip showing:
  - Weekly honor,
  - Honor gained this session,
  - Honor per hour,
  - ETA to cap,
  - Remaining to cap.
- Bar Config dialog with:
  - Width/Height sliders + numeric boxes,
  - **Honor Cap** numeric input (manual only),
  - 5% tick controls (opacity, width, count),
  - **Bar Fill Color** and **Tick Color** pickers,
  - Checkboxes for:
    - **Hide Bar Text**,
    - **Hide Bar**,
    - **Hide Ticks**,
    - Simple **!honor** auto-reply toggle (`/hbreply`).
- Show/hide controls via:
  - Right-click menu,
  - `/honor show|hide|toggle`.
- `/honor auto on|off` to toggle 1s auto-refresh.
- `/honor resetpos` to recenter the bar.
- Older **/honor lock on|off** system to lock/unlock dragging (replaced in 1.3 with Alt+Left drag only).
- Saved variables stored under `HonorProgressDB` only, with a separate `HonorProgress` folder in the package.