V0.4 build.

Renamed project to QuestLogHeaderExpander
This commit is contained in:
bepis
2026-09-30 23:57:49 +10:00
parent 87b0f54968
commit 8b6ef17558
4 changed files with 21 additions and 21 deletions
Regular → Executable
View File
@@ -1,4 +1,4 @@
-- QuestExpandAll.lua
-- QuestLogHeaderExpander.lua
-- Interface: 16001
local addon = CreateFrame("Frame")
@@ -23,23 +23,23 @@ local MODES = {
}
local function InitDB()
QuestExpandAllDB = QuestExpandAllDB or {}
QuestLogHeaderExpanderDB = QuestLogHeaderExpanderDB or {}
for k, v in pairs(DEFAULTS) do
if QuestExpandAllDB[k] == nil then
QuestExpandAllDB[k] = v
if QuestLogHeaderExpanderDB[k] == nil then
QuestLogHeaderExpanderDB[k] = v
end
end
end
local function GetMode()
return QuestExpandAllDB.mode
return QuestLogHeaderExpanderDB.mode
end
local function SetMode(value)
if modeSetting then
modeSetting:SetValue(value)
else
QuestExpandAllDB.mode = value
QuestLogHeaderExpanderDB.mode = value
end
end
@@ -99,7 +99,7 @@ local function ApplyDefaultState()
if mode == "expanded" or mode == "collapsed" then
target = mode
-- elseif mode == "remember" then
-- target = QuestExpandAllDB.lastState
-- target = QuestLogHeaderExpanderDB.lastState
end
if target then
@@ -134,9 +134,9 @@ local function CreateOptionsPanel()
modeSetting = Settings.RegisterAddOnSetting(
category,
"QUESTEXPANDALL_MODE",
"QuestLogHeaderExpander_MODE",
"mode",
QuestExpandAllDB,
QuestLogHeaderExpanderDB,
Settings.VarType.String,
"Quest header behaviour",
DEFAULTS.mode
@@ -171,7 +171,7 @@ local function CreateExpandButton()
local parent = QuestMapFrame and QuestMapFrame.QuestsFrame
if not parent then return end
button = CreateFrame("Button", "QuestExpandAllButton", parent, "UIPanelButtonTemplate")
button = CreateFrame("Button", "QuestLogHeaderExpanderButton", parent, "UIPanelButtonTemplate")
button:SetSize(50, 20)
if QuestLogQuestCount then
@@ -190,7 +190,7 @@ local function CreateExpandButton()
local expanding = not AreAllHeadersExpanded()
SetAllHeaders(expanding)
QuestExpandAllDB.lastState = expanding and "expanded" or "collapsed"
QuestLogHeaderExpanderDB.lastState = expanding and "expanded" or "collapsed"
end)
button:SetScript("OnEnter", function(self)
@@ -1,8 +1,8 @@
## Interface: 16001
## Title: Quest Expand All
## SavedVariables: QuestExpandAllDB
## SavedVariables: QuestLogHeaderExpanderDB
## Notes: Adds an Expand All button to the quest log.
## Author: Drink_Bepis
## Version: 0.3
## Version: 0.4
QuestExpandAll.lua
QuestLogHeaderExpander.lua
+7 -7
View File
@@ -1,4 +1,4 @@
# Quest Expand All
# Quest Log Header Expander
A small World of Warcraft addon that adds an **expand/collapse all** button to the quest log, so you can open or close every zone header in one click instead of only getting the zone you're currently in.
@@ -22,11 +22,11 @@ Built for **World of Warcraft Forever** using the retail UI API. Interface versi
## Installation
1. Download or clone this repository.
2. Make sure the folder is named `QuestExpandAll` (it must match the `.toc` file name).
2. Make sure the folder is named `QuestLogHeaderExpander` (it must match the `.toc` file name).
3. Copy it into your game's addons directory:
```
<WoW install>/Interface/AddOns/QuestExpandAll/
<WoW install>/Interface/AddOns/QuestLogHeaderExpander/
```
4. Fully restart the game (or at least fully log out/in). This is required for a first-time run.
@@ -34,9 +34,9 @@ Built for **World of Warcraft Forever** using the retail UI API. Interface versi
Your folder should look like this:
```
QuestExpandAll/
├── QuestExpandAll.toc
├── QuestExpandAll.lua
QuestLogHeaderExpander/
├── QuestLogHeaderExpander.toc
├── QuestLogHeaderExpander.lua
└── README.md
```
@@ -51,7 +51,7 @@ QuestExpandAll/
## Configuration
Settings are stored per account in the `QuestExpandAllDB` saved variable:
Settings are stored per account in the `QuestLogHeaderExpanderDB` saved variable:
| Key | Values | Description |
| --- | --- | --- |