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 -- Interface: 16001
local addon = CreateFrame("Frame") local addon = CreateFrame("Frame")
@@ -23,23 +23,23 @@ local MODES = {
} }
local function InitDB() local function InitDB()
QuestExpandAllDB = QuestExpandAllDB or {} QuestLogHeaderExpanderDB = QuestLogHeaderExpanderDB or {}
for k, v in pairs(DEFAULTS) do for k, v in pairs(DEFAULTS) do
if QuestExpandAllDB[k] == nil then if QuestLogHeaderExpanderDB[k] == nil then
QuestExpandAllDB[k] = v QuestLogHeaderExpanderDB[k] = v
end end
end end
end end
local function GetMode() local function GetMode()
return QuestExpandAllDB.mode return QuestLogHeaderExpanderDB.mode
end end
local function SetMode(value) local function SetMode(value)
if modeSetting then if modeSetting then
modeSetting:SetValue(value) modeSetting:SetValue(value)
else else
QuestExpandAllDB.mode = value QuestLogHeaderExpanderDB.mode = value
end end
end end
@@ -99,7 +99,7 @@ local function ApplyDefaultState()
if mode == "expanded" or mode == "collapsed" then if mode == "expanded" or mode == "collapsed" then
target = mode target = mode
-- elseif mode == "remember" then -- elseif mode == "remember" then
-- target = QuestExpandAllDB.lastState -- target = QuestLogHeaderExpanderDB.lastState
end end
if target then if target then
@@ -134,9 +134,9 @@ local function CreateOptionsPanel()
modeSetting = Settings.RegisterAddOnSetting( modeSetting = Settings.RegisterAddOnSetting(
category, category,
"QUESTEXPANDALL_MODE", "QuestLogHeaderExpander_MODE",
"mode", "mode",
QuestExpandAllDB, QuestLogHeaderExpanderDB,
Settings.VarType.String, Settings.VarType.String,
"Quest header behaviour", "Quest header behaviour",
DEFAULTS.mode DEFAULTS.mode
@@ -171,7 +171,7 @@ local function CreateExpandButton()
local parent = QuestMapFrame and QuestMapFrame.QuestsFrame local parent = QuestMapFrame and QuestMapFrame.QuestsFrame
if not parent then return end if not parent then return end
button = CreateFrame("Button", "QuestExpandAllButton", parent, "UIPanelButtonTemplate") button = CreateFrame("Button", "QuestLogHeaderExpanderButton", parent, "UIPanelButtonTemplate")
button:SetSize(50, 20) button:SetSize(50, 20)
if QuestLogQuestCount then if QuestLogQuestCount then
@@ -190,7 +190,7 @@ local function CreateExpandButton()
local expanding = not AreAllHeadersExpanded() local expanding = not AreAllHeadersExpanded()
SetAllHeaders(expanding) SetAllHeaders(expanding)
QuestExpandAllDB.lastState = expanding and "expanded" or "collapsed" QuestLogHeaderExpanderDB.lastState = expanding and "expanded" or "collapsed"
end) end)
button:SetScript("OnEnter", function(self) button:SetScript("OnEnter", function(self)
@@ -1,8 +1,8 @@
## Interface: 16001 ## Interface: 16001
## Title: Quest Expand All ## Title: Quest Expand All
## SavedVariables: QuestExpandAllDB ## SavedVariables: QuestLogHeaderExpanderDB
## Notes: Adds an Expand All button to the quest log. ## Notes: Adds an Expand All button to the quest log.
## Author: Drink_Bepis ## 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. 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 ## Installation
1. Download or clone this repository. 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: 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. 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: Your folder should look like this:
``` ```
QuestExpandAll/ QuestLogHeaderExpander/
├── QuestExpandAll.toc ├── QuestLogHeaderExpander.toc
├── QuestExpandAll.lua ├── QuestLogHeaderExpander.lua
└── README.md └── README.md
``` ```
@@ -51,7 +51,7 @@ QuestExpandAll/
## Configuration ## Configuration
Settings are stored per account in the `QuestExpandAllDB` saved variable: Settings are stored per account in the `QuestLogHeaderExpanderDB` saved variable:
| Key | Values | Description | | Key | Values | Description |
| --- | --- | --- | | --- | --- | --- |