# KeylzResourcesDK

**KeylzResourcesDK** is a lightweight, Death Knight–only resource addon that replaces the default circular rune display with sleek bar segments and a matching runic power bar.

> ⚠️ Note: This addon was co-designed and generated with the help of an AI assistant (ChatGPT).

---

## Features

- **Death Knight only**
  - Automatically loads only on Death Knight characters.
- **Rune bars**
  - Shows your 6 runes as horizontal bar segments.
  - Smooth fill animation while recharging.
  - Ready runes use a bright color; recharging runes use a darker grey.
  - Runes are automatically sorted so the most filled runes appear on the left.
  - Rune color can be set **per specialization** (Blood / Frost / Unholy).
- **Runic Power bar**
  - A flat bar matching the combined width of your rune segments.
  - Default color: `#c1d0ff` (soft icy blue).
  - Color can be customized independently via the options.
  - Spec-based tick marks:
    - **Unholy:** ticks at **30%, 60%, 90%**
    - **Frost:** ticks at **35%, 70%**
    - **Blood:** no ticks
- **Layout options**
  - Adjustable rune segment **width (px)** and **height (px)**.
  - Adjustable **runic power bar height (px)**.
  - Choose between multiple **status bar textures** (Default / Raid / Flat).
  - **Swap layout**:
    - Default: *Runes on top, Runic Power underneath*.
    - Optional: *Runic Power on top, Runes underneath* (via “Swap” checkbox).
- **Positioning**
  - Frame is **draggable** when unlocked.
  - Position is saved between sessions.
  - “Lock frame” option to prevent accidental moving.

---

## Slash Commands

- `/keylzdk`
- `/krdk`

Both open the addon’s options in the modern **Settings → AddOns** panel.

---

## Configuration

Open the options via `/keylzdk` or `/krdk` or via:

> ESC → Settings → AddOns → **KeylzResourcesDK**

Available settings:

- **Lock frame**
- **Rune segment width (px)**
- **Rune segment height (px)**
- **Runic power bar height (px)**
- **Swap runes and runic power (runes below)**
- **Bar texture** dropdown
- **Runes (per spec) → Color**  
  - Saved separately for each DK spec.
- **Runic Power → Color**

---

## Technical Notes

- Addon folder: `KeylzResourcesDK`
- Main files:
  - `KeylzResourcesDK.toc`
  - `KeylzResourcesDK.lua`
- SavedVariables: `MRBDB`

---

## Credits

- Concept & testing: **Keylz**
- Implementation help & code generation: **ChatGPT (AI-assisted)**

This addon was created as a collaborative experiment with AI-driven code generation. Feel free to fork, tweak, and extend it for your own Death Knight UI setup.
