Update to official release v0.9.50.

Cette révision appartient à :
dvipid 2018-08-29 19:55:52 -04:00
Parent b2d0089666
révision b3921cf0d5
6 fichiers modifiés avec 39 ajouts et 7 suppressions

Voir le fichier

@ -1284,8 +1284,26 @@ end
function Button:UpdateTexture() function Button:UpdateTexture()
end end
--BFA fix: BFA removed the use of UnitBuff with the spell name as a parameter.
--BFA fix: Added this function to compensate
function Button:UnitBuffBySpell(unit, spell)
for i=1,40 do
local name, icon, _, _, _, etime = UnitBuff(unit,i)
if name then
if name == spell then
return UnitBuff(unit,i);
end
else
break;
end;
end;
return nil;
end;
function Button:UpdateTextureWispSpell() function Button:UpdateTextureWispSpell()
if (UnitBuff("player", self.SpellName)) then --NOTE: This works in en-US, hopefully it will be fine for other locales as well?? --BFA fix: UnitBuff can no longer be called with the spell name as a param
if (self.UnitBuffBySpell("player", self.SpellName)) then --NOTE: This en-US, hopefully it will be fine for other locales as well??
self.WIcon:SetTexture("Interface/Icons/Spell_Nature_WispSplode"); self.WIcon:SetTexture("Interface/Icons/Spell_Nature_WispSplode");
else else
self.WIcon:SetTexture(self.Texture); self.WIcon:SetTexture(self.Texture);

Voir le fichier

@ -1,7 +1,7 @@
## Interface: 70100 ## Interface: 80000
## Title: Button Forge ## 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 ## 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.47 ## Version: 0.9.50
## Author: Massiner of Nathrezim ## Author: Massiner of Nathrezim
## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup ## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup
## SavedVariablesPerCharacter: ButtonForgeSave, BFSave ## SavedVariablesPerCharacter: ButtonForgeSave, BFSave

Voir le fichier

@ -10,7 +10,7 @@ local Const = BFConst;
Const.SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544; Const.SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544;
Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455; Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455;
Const.Version = 0.9; Const.Version = 0.9;
Const.VersionMinor = 49; Const.VersionMinor = 50;
Const.MAX_ACCOUNT_MACROS = 120; Const.MAX_ACCOUNT_MACROS = 120;
Const.ButtonNaming = "ButtonForge" Const.ButtonNaming = "ButtonForge"
Const.ButtonSeq = 1; --This value will increment (so not technically a const...) Const.ButtonSeq = 1; --This value will increment (so not technically a const...)

Voir le fichier

@ -137,7 +137,8 @@ Usable:RegisterEvent("UPDATE_VEHICLE_ACTIONBAR");
Usable:RegisterEvent("ACTIONBAR_UPDATE_USABLE"); --Use this as a backup... Usable:RegisterEvent("ACTIONBAR_UPDATE_USABLE"); --Use this as a backup...
Usable:RegisterEvent("VEHICLE_UPDATE"); Usable:RegisterEvent("VEHICLE_UPDATE");
Usable:RegisterEvent("ACTIONBAR_PAGE_CHANGED"); Usable:RegisterEvent("ACTIONBAR_PAGE_CHANGED");
Usable:RegisterEvent("UPDATE_WORLD_STATES"); --BFA fix: UPDATE_WORLD_STATES is deprecated
-- Usable:RegisterEvent("UPDATE_WORLD_STATES");
--[[------------------------------------------------------------------------ --[[------------------------------------------------------------------------

Voir le fichier

@ -2,7 +2,7 @@
Mod for World of Warcraft Mod for World of Warcraft
Author: Massiner of Nathrezim Author: Massiner of Nathrezim
Version: 0.9.47 Version: 0.9.50
Description: Graphically create as many Action Bars and Buttons in the game as you choose Description: Graphically create as many Action Bars and Buttons in the game as you choose
@ -20,6 +20,12 @@ Restrictions:
History: History:
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
- Corrected audio from Button Forge specific actions (e.g. opening/closing BF BUI)
- Corrected handling of Spells
- Corrected detection of when the Wisp Spell Icon should display
28-November-2016 v0.9.47 - Updated for WoW v7.1 28-November-2016 v0.9.47 - Updated for WoW v7.1
04-October-2016 v0.9.46 - Fixed Icon display for Equipment Sets... Again! (also some corrections for talents etc which were actually added in .45 I believe?!, my book keeping on this one has been a bit iffy :S) 04-October-2016 v0.9.46 - Fixed Icon display for Equipment Sets... Again! (also some corrections for talents etc which were actually added in .45 I believe?!, my book keeping on this one has been a bit iffy :S)
09-August-2016 v0.9.45 - Fixed Icon display for Equipment Sets on Button Forge 09-August-2016 v0.9.45 - Fixed Icon display for Equipment Sets on Button Forge

Voir le fichier

@ -1661,8 +1661,15 @@ end
Spell Functions Spell Functions
-------------------------------------------]] -------------------------------------------]]
function Util.GetFullSpellName(Name, Rank) function Util.GetFullSpellName(Name, Rank)
--BFA fix: GetSpellInfo now returns a nil for the rank. That's passed in here
--So we check to make sure ranx exists or only pass back the name itself.
if (Rank) then
Rank = "("..Rank..")";
else
Rank = "";
end
if (Name) then if (Name) then
return Name.."("..Rank..")"; return Name..Rank;
end end
end end