diff --git a/Bar.lua b/Bar.lua index fdd10e4..d9ac086 100644 --- a/Bar.lua +++ b/Bar.lua @@ -534,8 +534,7 @@ function Bar:Configure(BarSave) self:SetAlpha(BarSave["Alpha"]); self:SetGUI(BarSave["GUI"]); - -- Uncomment this once Clamp insets are working again - --self.ControlFrame:SetClampedToScreen(true); + self.ControlFrame:SetClampedToScreen(true); end --[[ @@ -1105,6 +1104,7 @@ end --]] function Bar:DestroyBar() if (not InCombatLockdown()) then + PlaySoundFile("sound/spells/meltoretarget.ogg"); --PlaySoundFile(569366) Util.DeallocateBar(self); end UILib.ToggleDestroyBarMode(true); diff --git a/Button.lua b/Button.lua index 291a49c..9d4e284 100644 --- a/Button.lua +++ b/Button.lua @@ -1136,7 +1136,7 @@ function Button:SetAttributes(Type, Value) self.Widget:SetAttribute("spell", Value); elseif (Type == "customaction") then CustomAction.SetAttributes(Value, self.Widget); - end + end end @@ -1397,6 +1397,8 @@ function Button:UpdateCheckedCustomAction() end + + --[[--------------------------------------------------------------------------------------- Equipped functions -----------------------------------------------------------------------------------------]] @@ -1478,6 +1480,7 @@ function Button:UpdateCooldownBonusAction() end + --[[------------------------------------------------------------------------------------- Usable Functions ---------------------------------------------------------------------------------------]] @@ -1718,6 +1721,8 @@ function Button:UpdateTooltipCustomAction() end + + --[[--------------------------------------------------------------------- Cursor functions -----------------------------------------------------------------------]] @@ -1750,6 +1755,8 @@ function Button:GetCursorCustomAction() end + + --[[------------------------------------------------------------------------ Flash functions --------------------------------------------------------------------------]] diff --git a/ButtonForge.toc b/ButtonForge.toc index 1c089c6..e2b8c8f 100644 --- a/ButtonForge.toc +++ b/ButtonForge.toc @@ -1,8 +1,8 @@ ## Interface: 11306 -## Title: Button Forge (Classic) +## Title: Button Forge |cff69ccf0(Classic)|r ## 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.4 -## Author: Massiner of Nathrezim +## Version: 1.0.2-classic +## Author: Massiner of Nathrezim, Albirew ## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup ## SavedVariablesPerCharacter: ButtonForgeSave ## OptionalDeps: Masque diff --git a/Const.lua b/Const.lua index 81bca39..2773d08 100644 --- a/Const.lua +++ b/Const.lua @@ -9,8 +9,8 @@ local Const = BFConst; Const.SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544; Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455; -Const.Version = 0.9; -Const.VersionMinor = 50; +Const.Version = 1.0; +Const.VersionMinor = 0.2; Const.MAX_ACCOUNT_MACROS = 120; Const.ButtonNaming = "ButtonForge" Const.ButtonSeq = 1; --This value will increment (so not technically a const...) @@ -90,15 +90,16 @@ Const.DarkOrange = "ffEE5500"; Const.SlashCommands = {}; Const.SlashCommands["-bar"] = {params = "^%s*(..-)%s*$", group = "bar"}; +Const.SlashCommands["-list"] = {params = "^()$", incompat = {"ALL"}}; Const.SlashCommands["-macrotext"] = {params = "bool", group = "bar"}; Const.SlashCommands["-keybindtext"] = {params = "bool", group = "bar"}; 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/Declares.lua b/Declares.lua index 00f99a4..b4b086a 100644 --- a/Declares.lua +++ b/Declares.lua @@ -1,18 +1,18 @@ --[[ Author: Alternator (Massiner of Nathrezim) Copyright 2010 - - Notes: + + Notes: ]] -BFLocales = {}; -BFConst = {}; -BFUtil = {}; -BFUILib = {}; -BFButton = {}; -BFBar = {}; +BFLocales = {}; +BFConst = {}; +BFUtil = {}; +BFUILib = {}; +BFButton = {}; +BFBar = {}; BFCustomAction = {}; ButtonForge_API1 = {}; ButtonForgeSave = {}; @@ -20,3 +20,4 @@ ButtonForgeSave = {}; ButtonForgeGlobalSettings = {}; ButtonForgeGlobalProfiles = {}; ButtonForgeGlobalBackup = {}; + diff --git a/EventManager.lua b/EventManager.lua index 102892a..76972a5 100644 --- a/EventManager.lua +++ b/EventManager.lua @@ -455,6 +455,13 @@ function Misc:OnEvent(Event, ...) -- self.TalentSwap = true; -- self:SetScript("OnUpdate", self.OnUpdate); +-- elseif (Event == "COMPANION_LEARNED") then +-- Util.CacheCompanions(); +-- Util.RefreshCompanions(); + +-- elseif (Event == "EQUIPMENT_SETS_CHANGED") then +-- Util.RefreshEquipmentSets(); + elseif (Event == "PLAYER_REGEN_DISABLED") then Util.PreCombatStateUpdate(); diff --git a/KeyBinder.xml b/KeyBinder.xml index 4842ad9..8c3cc17 100644 --- a/KeyBinder.xml +++ b/KeyBinder.xml @@ -36,6 +36,9 @@ BFKeyBinder.OnInputBindingOverlay("MOUSEWHEELDOWN"); end + + BFKeyBinder.OnInputBindingOverlay(button); + diff --git a/Locale-enUS.lua b/Locale-enUS.lua index 2fe2028..e4811ec 100644 --- a/Locale-enUS.lua +++ b/Locale-enUS.lua @@ -88,6 +88,7 @@ Locale["SlashHelpFormatted"] = "Valid slash commands: |c"..Const.LightBlue.."/buttonforge|r, |c"..Const.LightBlue.."/bufo|r\n".. "Valid switches:\n".. "|c"..Const.LightBlue.."-bar |r (the bar to apply changes to, or if not set then all bars)\n".. + "|c"..Const.LightBlue.."-list|r\n".. "|c"..Const.LightBlue.."-rename |r\n".. "|c"..Const.LightBlue.."-rows |r\n".. "|c"..Const.LightBlue.."-cols |r\n".. @@ -134,6 +135,8 @@ Locale["SlashHelpFormatted"] = Locale["SlashCommandRequired"] = " requires to also be specified"; Locale["SlashCommandIncompatible"] = " is incompatible with "; Locale["SlashCommandAlone"] = " cannot be used with other commands"; +Locale["SlashListBarWithLabel"] = "-