From 8b6ef17558e86145b5a478f70d14e5f93d459a12 Mon Sep 17 00:00:00 2001 From: bepis Date: Wed, 30 Sep 2026 23:57:49 +1000 Subject: [PATCH] V0.4 build. Renamed project to QuestLogHeaderExpander --- LICENSE | 0 ...xpandAll.lua => QuestLogHeaderExpander.lua | 22 +++++++++---------- ...xpandAll.toc => QuestLogHeaderExpander.toc | 6 ++--- README.md | 14 ++++++------ 4 files changed, 21 insertions(+), 21 deletions(-) mode change 100644 => 100755 LICENSE rename QuestExpandAll.lua => QuestLogHeaderExpander.lua (90%) rename QuestExpandAll.toc => QuestLogHeaderExpander.toc (58%) diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/QuestExpandAll.lua b/QuestLogHeaderExpander.lua similarity index 90% rename from QuestExpandAll.lua rename to QuestLogHeaderExpander.lua index cf408f3..8c596c6 100755 --- a/QuestExpandAll.lua +++ b/QuestLogHeaderExpander.lua @@ -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) diff --git a/QuestExpandAll.toc b/QuestLogHeaderExpander.toc similarity index 58% rename from QuestExpandAll.toc rename to QuestLogHeaderExpander.toc index 4e585ed..eb4e075 100755 --- a/QuestExpandAll.toc +++ b/QuestLogHeaderExpander.toc @@ -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 diff --git a/README.md b/README.md index d600661..ae4fa09 100755 --- a/README.md +++ b/README.md @@ -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: ``` - /Interface/AddOns/QuestExpandAll/ + /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 | | --- | --- | --- |