From 9da175d29519a3ec04f8d4d44c36d7d4e5e9841c Mon Sep 17 00:00:00 2001 From: Albirew Date: Thu, 26 Nov 2020 02:31:28 +0100 Subject: [PATCH 1/4] update to 1.0.0 --- Bar.lua | 4 ++-- ButtonForge.toc | 4 ++-- Const.lua | 6 +++--- KeyBinder.xml | 2 +- README.md => ReadMe.txt | 8 ++++++- UILibLayers.xml | 2 +- UILibLines.lua | 8 +++---- UILibToolbar.xml | 16 ++++---------- Util.lua | 48 +++++++++++++++++++++++++---------------- 9 files changed, 54 insertions(+), 44 deletions(-) rename README.md => ReadMe.txt (98%) diff --git a/Bar.lua b/Bar.lua index 3fbae7a..b0ceb07 100644 --- a/Bar.lua +++ b/Bar.lua @@ -141,7 +141,7 @@ function Bar.New(BarSave) NewBar.ButtonFrame = ButtonFrame; --[[Background Layer, this will contain all controls and is used in resizing]]-- - local Background = CreateFrame("FRAME", nil, ControlFrame); + local Background = CreateFrame("FRAME", nil, ControlFrame, "BackdropTemplate"); Background:SetSize(1, 1); Background:SetPoint("TOPLEFT", ControlFrame, "TOPLEFT"); Background:SetBackdrop({bgFile = Const.ImagesDir.."Backdrop.tga", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = {left=3, right=3, bottom=3, top=3}}); @@ -182,7 +182,7 @@ function Bar.New(BarSave) NewBar.TileTexture = TileTexture; --[[Label Frame]]-- - local LabelFrame = CreateFrame("FRAME", nil, ControlFrame); + local LabelFrame = CreateFrame("FRAME", nil, ControlFrame, "BackdropTemplate"); LabelFrame:SetSize(1, 1); LabelFrame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 8, insets = {left=1.5, right=1.5, bottom=1.5, top=1.5}}); LabelFrame:SetBackdropColor(0, 0, 0, 1); diff --git a/ButtonForge.toc b/ButtonForge.toc index df91436..e6ee0c4 100644 --- a/ButtonForge.toc +++ b/ButtonForge.toc @@ -1,7 +1,7 @@ -## Interface: 80200 +## Interface: 90002 ## Title: Button Forge ## Notes: Add as many or few extra Action Bars and Buttons to your user interface to complement the standard (or other) Action Bars -## Version: 0.9.50.2 +## Version: 0.9.60 ## Author: Massiner of Nathrezim ## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup ## SavedVariablesPerCharacter: ButtonForgeSave, BFSave diff --git a/Const.lua b/Const.lua index 97484a8..d2eb768 100644 --- a/Const.lua +++ b/Const.lua @@ -98,9 +98,9 @@ Const.SlashCommands["-tooltips"] = {params = "bool", group = "bar"}; Const.SlashCommands["-emptybuttons"] = {params = "bool", group = "bar"}; Const.SlashCommands["-lockbuttons"] = {params = "bool", group = "bar"}; Const.SlashCommands["-scale"] = {params = "^%s*(%d*%.?%d+)%s*$", group = "bar"}; -Const.SlashCommands["-rows"] = {params = "^%s*(%d+)%s*$", group = "bar", requires = {"-bar"}}; -Const.SlashCommands["-cols"] = {params = "^%s*(%d+)%s*$", group = "bar", requires = {"-bar"}}; -Const.SlashCommands["-coords"] = {params = "^%s*(%d*%.?%d+)%s*,?%s*(%d*%.?%d+)%s*$", group = "bar", requires = {"-bar"}}; +Const.SlashCommands["-rows"] = {params = "^%s*(%d+)%s*$", group = "bar", requires = {"-createbar", "-bar"}}; +Const.SlashCommands["-cols"] = {params = "^%s*(%d+)%s*$", group = "bar", requires = {"-createbar", "-bar"}}; +Const.SlashCommands["-coords"] = {params = "^%s*(%d*%.?%d+)%s*,?%s*(%d*%.?%d+)%s*$", group = "bar", requires = {"-createbar", "-bar"}}; Const.SlashCommands["-gap"] = {params = "^%s*(%d*%.?%d+)%s*$", group = "bar"}; Const.SlashCommands["-enabled"] = {params = "bool", group = "bar"}; Const.SlashCommands["-info"] = {params = "^()$", group = "bar", requires = {"-bar"}}; diff --git a/KeyBinder.xml b/KeyBinder.xml index 4842ad9..f072e3d 100644 --- a/KeyBinder.xml +++ b/KeyBinder.xml @@ -39,7 +39,7 @@ - + diff --git a/README.md b/ReadMe.txt similarity index 98% rename from README.md rename to ReadMe.txt index 4c6d1cd..bcddf44 100644 --- a/README.md +++ b/ReadMe.txt @@ -1,7 +1,11 @@ Button Forge Mod for World of Warcraft -Author: Alternator (Massiner of Nathrezim) +Author: Massiner of Nathrezim +Contributor: xfsbill +Past Contributors: DT85, DandierSphinx + +Version: 1.0.0 Description: Graphically create as many Action Bars and Buttons in the game as you choose @@ -19,6 +23,8 @@ Restrictions: History: +19-Nov-2020 v1 - Updated for Wow v9.0 - This update is provided by xfsbill , jee_dae (possibly others ?) - thanks for keeping a version of the addon working all this time! + 26-July-2018 v0.9.50 - Updated for Wow v8.0 - this update is provided by DT85 (Zaranias - Aman'thul) & DandierSphinx... A big thanks for this!!! - The below issues all prevented Button Forge functioning correctly or in some cases at all - Corrected issue with removed UPDATE_WORLD_STATES event diff --git a/UILibLayers.xml b/UILibLayers.xml index 986856c..123fcd2 100644 --- a/UILibLayers.xml +++ b/UILibLayers.xml @@ -2,7 +2,7 @@