release 1.0.4

Cette révision appartient à :
Albirew 2021-05-24 18:05:09 +02:00
Parent d42e06d3de
révision 7f8de2408c
6 fichiers modifiés avec 54 ajouts et 26 suppressions

Voir le fichier

@ -71,7 +71,6 @@ function Bar.New(BarSave)
ButtonFrame:SetAttribute("_onshow", [[local B, Key;
for i = 1, #Buttons do
B = Buttons[i];
B:Enable();
Key = B:GetAttribute("KeyBindValue");
if (Key) then
B:SetBindingClick(false, Key, B);
@ -81,7 +80,6 @@ function Bar.New(BarSave)
ButtonFrame:SetAttribute("_onshow", [[local B, Key;
for i = 1, #Buttons do
B = Buttons[i];
B:Enable();
Key = B:GetAttribute("KeyBindValue");
if (Key) then
B:SetBindingClick(false, Key, B, "KeyBind");
@ -91,7 +89,6 @@ function Bar.New(BarSave)
ButtonFrame:SetAttribute("_onhide", [[local B, Key;
for i = 1, #Buttons do
B = Buttons[i];
B:Disable();
Key = B:GetAttribute("KeyBindValue");
if (Key) then
B:ClearBindings();

Voir le fichier

@ -1,7 +1,7 @@
## Interface: 90002
## Interface: 90005
## 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: 1.0.3
## Version: 1.0.4
## Author: Massiner of Nathrezim
## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup
## SavedVariablesPerCharacter: ButtonForgeSave, BFSave

Voir le fichier

@ -12,7 +12,7 @@ Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455;
Const.SUMMON_RANDOM_FAVORITE_BATTLE_PET_ID = "BattlePet-0-FFFFFFFFFFFFFF";
Const.SUMMON_RANDOM_FAVORITE_BATTLE_PET_TEXTURE = "Interface/Icons/INV_Pet_Achievement_CaptureAPetFromEachFamily_Battle";
Const.Version = 1.0;
Const.VersionMinor = 0.2;
Const.VersionMinor = 0.4;
Const.MAX_ACCOUNT_MACROS = 120;
Const.ButtonNaming = "ButtonForge"
Const.ButtonSeq = 1; --This value will increment (so not technically a const...)

Voir le fichier

@ -95,23 +95,23 @@ Locale["SlashHelpFormatted"] =
"|c"..Const.LightBlue.."-scale <size>|r (1 is normal scale)\n"..
"|c"..Const.LightBlue.."-gap <size>|r (6 is normal gap)\n"..
"|c"..Const.LightBlue.."-coords <left> <top>|r\n"..
"|c"..Const.LightBlue.."-tooltips <on/off>|r\n"..
"|c"..Const.LightBlue.."-emptybuttons <on/off>|r\n"..
"|c"..Const.LightBlue.."-lockbuttons <on/off>|r\n"..
"|c"..Const.LightBlue.."-tooltips <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-emptybuttons <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-lockbuttons <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-flyout <up/down/left/right>|r\n"..
"|c"..Const.LightBlue.."-macrotext <on/off>|r\n"..
"|c"..Const.LightBlue.."-keybindtext <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidespec1 <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidespec2 <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidespec3 <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidespec4 <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidevehicle <on/off>|r\n"..
"|c"..Const.LightBlue.."-hideoverridebar <on/off>|r\n"..
"|c"..Const.LightBlue.."-hidepetbattle <on/off>|r\n"..
"|c"..Const.LightBlue.."-macrotext <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-keybindtext <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidespec1 <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidespec2 <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidespec3 <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidespec4 <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidevehicle <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hideoverridebar <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-hidepetbattle <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-vismacro <visibility macro>|r\n"..
"|c"..Const.LightBlue.."-gui <on/off>|r (off = hides bar without disabling keybinds)\n"..
"|c"..Const.LightBlue.."-gui <on/off/toggle>|r (off = hides bar without disabling keybinds)\n"..
"|c"..Const.LightBlue.."-alpha <opacity>|r (0 - 1, 1 is completely opaque)\n"..
"|c"..Const.LightBlue.."-enabled <on/off>|r\n"..
"|c"..Const.LightBlue.."-enabled <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-info|r\n"..
"|c"..Const.LightBlue.."-technicalinfo|r\n"..
"|c"..Const.LightBlue.."-createbar <bar name>|r\n"..
@ -123,9 +123,9 @@ Locale["SlashHelpFormatted"] =
"|c"..Const.LightBlue.."-deleteprofile <profile name>|r\n"..
"|c"..Const.LightBlue.."-listprofiles|r\n"..
"|c"..Const.LightBlue.."-macrocheckdelay <number>|r (5 seconds is default) \n"..
"|c"..Const.LightBlue.."-removemissingmacros <on/off>|r\n"..
"|c"..Const.LightBlue.."-forceoffcastonkeydown <on/off>|r (will apply at next login)\n"..
"|c"..Const.LightBlue.."-usecollectionsfavoritemountbutton <on/off>|r\n"..
"|c"..Const.LightBlue.."-removemissingmacros <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-forceoffcastonkeydown <on/off/toggle>|r (will apply at next login)\n"..
"|c"..Const.LightBlue.."-usecollectionsfavoritemountbutton <on/off/toggle>|r\n"..
"|c"..Const.LightBlue.."-globalsettings|r\n"..
"Examples:\n"..
"|c"..Const.LightBlue.."/bufo -bar Mounts -tooltips off -emptybuttons off -scale 0.75|r\n"..

Voir le fichier

@ -5,7 +5,7 @@ Author: Massiner of Nathrezim
Contributor: xfsbill
Past Contributors: DT85, DandierSphinx
Version: 1.0.3
Version: 1.0.4
Description: Graphically create as many Action Bars and Buttons in the game as you choose
@ -23,8 +23,12 @@ Restrictions:
History:
09-March-2021 v1.0.4 - Updated for Wow v9.0.5
- Updated help (/bufo)
- Fixed an issue disabling/enabling button frames
28-Jan-2021 v1.0.3 - Replaced Stealth and Prowl with their proper stealth icon
- Experimental: Configurable flyout direction through slash commands
- Experimental: Configurable flyout direction through slash commands
02-Dec-2020 v1.0.2 - Removed Zone Ability frame when placed into a bar
- Added slash commands to list bars and allow to interact with bars without a label

Voir le fichier

@ -1578,7 +1578,34 @@ function Util.SetCursor(Command, Data, Subvalue, Subsubvalue)
if ( Util.PetSpellIndex[name] ) then
PickupSpellBookItem(Util.PetSpellIndex[name], BOOKTYPE_PET);
else
PickupSpell(Subsubvalue);
-- Shadowlands Covenants spells seem to be different from standard spell
-- attempt to detect them because PickupSpell won't work with those
skillType, contextualID = GetSpellBookItemInfo(name);
if contextualID ~= nil then
PickupSpell(Subsubvalue);
else
-- scan spellbook and pickupspell by slot id
function findSpell(spellName, bookType)
local i, s;
local found = false;
for i = 1, MAX_SKILLLINE_TABS do
local name, texture, offset, numSpells = GetSpellTabInfo(i);
if (not name) then break; end
for s = offset + 1, offset + numSpells do
local spell, rank = GetSpellBookItemName(s, bookType);
if (spell == spellName) then found = true; end
if (found and spell ~=spellName) then return s-1; end
end
end
if (found) then return s; end
return nil;
end
local bookType = BOOKTYPE_SPELL;
local id = findSpell(name, bookType);
if id ~= nil then
PickupSpellBookItem(id,bookType);
end
end
end;
elseif (Command == "item") then
PickupItem(Data);