--------------------------------------------------
SIMPLELUATWEAKER
--------------------------------------------------

SimpleLuaTweaker is a lightweight, Blizzard-friendly addon that improves
World of Warcraft’s default LUA error window without replacing it.

The goal is simple:
- Make the error window more usable.
- Keep the default Blizzard UI intact.
- Avoid fragile hooks or invasive modifications.
- Minimize the risk of breakage across patches.

If Blizzard didn’t already do it this way, this addon does it *carefully*.


--------------------------------------------------
FEATURES
--------------------------------------------------

• Resizable LUA error window
  - Adds a small external resize tab instead of modifying the frame itself.

• Adjustable font size
  - Fine-grained slider.
  - Updates live while the error window is open.

• Combat-safe error handling
  - Optionally suppresses LUA errors during combat.
  - Errors reappear automatically once combat ends.
  - Optional one-time chat notice per combat (no spam).
  - If /slt lua is used in combat, the window opens once combat ends.

• Complete error suppression (optional)
  - Suppress all LUA error popups entirely.
  - Errors still occur in the background.
  - Optional one-time chat notice per session.
  - While enabled, combat-only suppression is disabled and inactive.

• Unread LUA-error notification system
  - Adds a small horn notification tab to the LUA error window.
  - Grey horn means there are no unread LUA-errors.
  - Red horn means new unread LUA-errors are available.
  - Repeat counts of the same acknowledged error do not trigger new alerts.
  - Mark current LUA-errors as read with a simple Yes/No popup.
  - Optional reminder messages can warn you about unread LUA-errors.
  - Reminder interval is configurable from 1 to 30 minutes.

• Timestamp-aware chat messages
  - SLT chat messages follow your Blizzard chat timestamp setting.
  - If timestamps are disabled, SLT prints normally.
  - Warning messages use red text.
  - Informational messages use normal white text.

• Persistent window state
  - Remember size (optional).
  - Remember position (optional).
  - Uses Blizzard’s true default size when disabled.

• Easy way to close LUA-errors
  - ESC will now close the LUA-error window.

• Quick access settings
  - Cogwheel tab directly on the LUA error window.
  - Toggle settings open/close with a single click.

• Simple-AddOns Discord link
  - The About tab includes a clickable Discord link.
  - Opens a small popup with a copyable invite URL.

• Slash commands
  /slt		- Shows this list of commands.
  /slt help	- Same as /slt.
  /slt lua	- Opens the LUA-error window.
  /slt error	- Same as /slt lua.
  /slt options	- Opens the options-window.
  /slt settings	- Same as /slt options.
  /slt reset	- Resets the position of the options-window.


--------------------------------------------------
DESIGN PHILOSOPHY
--------------------------------------------------

SimpleLuaTweaker is intentionally conservative.

• No frame replacements.
• No heavy rewrites.
• No insecure hooks.
• No combat-taint risks.
• No visual restyling of Blizzard frames.

All additions (resize tab, settings cog, notification horn) are external
and layered on top of the default UI in a reversible, non-invasive way.

This approach dramatically reduces the chance of:
- Patch breakage.
- UI taint.
- Combat lockdown issues.
- Conflicts with other addons.


--------------------------------------------------
COMPATIBILITY
--------------------------------------------------

• Built using modern Blizzard APIs.
• Designed with Midnight (12.0) restrictions in mind.
• Compatible with other error-handling addons
  (BugSack, Swatter, etc.).

If Blizzard changes the LUA error system, this addon is designed
to fail gracefully rather than catastrophically.


--------------------------------------------------
WHY THIS ADDON EXISTS
--------------------------------------------------

Because:
- LUA errors shouldn’t break immersion mid-combat.
- Copying error text shouldn’t be painful.
- Important hidden errors should not be easy to miss.
- The default UI is good — it just needs a few tweaks.

SimpleLuaTweaker stays out of Blizzard’s way and fixes only what’s necessary.


--------------------------------------------------
INSTALLATION
--------------------------------------------------

1. Extract the SimpleLuaTweaker folder into:
   World of Warcraft/_retail_/Interface/AddOns/

2. Enable the addon in the character selection screen.

That’s it.


--------------------------------------------------
SUPPORT / FEEDBACK
--------------------------------------------------

If you encounter issues or have suggestions:
- Report them on the addon’s CurseForge page.
- Join the Simple-AddOns Discord from the About tab.
- Include the WoW version and a brief description.

Minimal addons deserve minimal bugs.


--------------------------------------------------
THANK YOU
--------------------------------------------------

Thanks for using SimpleLuaTweaker.
Sometimes the best addon is the one you barely notice.


--------------------------------------------------
Author
--------------------------------------------------

Created and maintained by:
Zaryx-Aszune (EU)
