From 2c9e75879f6756334ad4da9ebf075a687c1588dd Mon Sep 17 00:00:00 2001 From: Jennifer Date: Tue, 13 Oct 2020 18:27:19 +0100 Subject: [PATCH] v9.0.1-Release-v3.0(0153) --- CHANGELOG.txt | 63 +++ Core/Communications.lua | 42 +- Core/Core.lua | 5 +- Core/Team.lua | 8 +- EMA.toc | 6 +- EbonyUtilities.lua | 15 + Embeds.xml | 1 + GUI/AceGUIContainer-EMATreeGroup.lua | 12 +- GUI/AceGUIContainer-EMAWindow.lua | 23 +- GUI/EMAHelperSettings.lua | 6 +- Libs/AceAddon-3.0/AceAddon-3.0.lua | 18 +- .../AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 21 +- .../AceGUI-3.0-SharedMediaWidgets/prototypes.lua | 2 +- Libs/AceGUI-3.0/AceGUI-3.0.lua | 27 +- .../widgets/AceGUIContainer-DropDownGroup.lua | 4 +- Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 6 +- .../widgets/AceGUIContainer-InlineGroup.lua | 4 +- .../widgets/AceGUIContainer-TabGroup.lua | 4 +- .../widgets/AceGUIContainer-TreeGroup.lua | 15 +- Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua | 30 +- .../AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 4 +- Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 3 +- .../widgets/AceGUIWidget-MultiLineEditBox.lua | 4 +- Libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 6 +- Libs/Bindings.xml | 5 + Libs/CHANGES.txt | 93 +++++ Libs/EMALibActionButton-1.0.lua | 275 +++++++++---- Libs/LibBagUtils-1.0/LibBagUtils-1.0.xml | 2 +- Libs/LibButtonGlow-1.0/LibButtonGlow-1.0.toc | 2 +- Libs/LibDeformat-3.0/LibDeformat-3.0.lua | 2 +- Libs/LibDeformat-3.0/lib.xml | 2 +- Libs/UTF8/UTF8.toc | 2 +- Libs/UTF8/utf8.lua | 2 +- Libs/UTF8/utf8data.lua | 2 +- Libs/changelog-ACE3-r1237.txt | 427 +++++++++++++++++++ Libs/changelog-Ace3-r1241.txt | 435 ++++++++++++++++++++ Locales/Core-Locale-enUS.lua | 18 +- Modules/DisplayTeam.lua | 411 ++++++++++-------- Modules/Follow.lua | 4 +- Modules/Information.lua | 114 ++--- Modules/ItemUse.lua | 23 +- Modules/Quest.lua | 82 ++-- Modules/QuestWatcher.lua | 204 +++++---- Modules/Toon.lua | 17 +- 44 files changed, 1900 insertions(+), 551 deletions(-) create mode 100644 Libs/Bindings.xml create mode 100644 Libs/CHANGES.txt create mode 100644 Libs/changelog-ACE3-r1237.txt create mode 100644 Libs/changelog-Ace3-r1241.txt diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 409b17c..ff9b643 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,69 @@ ChangeLogs: --------------------------- +EMA Version: v9.0.0-Release-v3.0(0146-0153) +Game Version: 9.0.0 +Release Date: 13/10/2020 + +## 9.0 Initial release + -- fixed wow-api chnages. + +### Known issues. + +##Display-Team + --added support to add the party frame from trugcd addon to EMA's. + + +## Toon + -- CC warn, Now shows the spell that was casted on the player + + +## ItemBar + -- Should Now work with Spells and Toys. + +--------------------------- + +EMA Version: v8.3.0-Release-v2.5(0146) +Game Version: 8.3.0 +Release Date: 20/07/2020 + +## Information + -- Trying to fix a bug i broke the *.DB so all settings got reset in this module ( sorry :( ) + + -- Echoes of Ny'alotha sometimes do not show on a team member and blocks them from being showen in the blizzard UI. ( Issue #107 ) + - DEV NOTE: This has been making a problem with EMA information generating the Currency List i added a hotfix to stop this blocking the addon + - please to no report report it when a character Shows 0 Echoes of Ny'alotha + -this is not a EMA problem this a blizzard problem and is well known. A reclient load or deleteing you Cache will fix and they should show again. + + + + + +--------------------------- + +EMA Version: v8.3.0-Release-v2.5(0145) +Game Version: 8.3.0 +Release Date: 18/07/2020 + +##Ebonys Utilities + -- Fixed issue #106 + + + + +--------------------------- + +EMA Version: v8.3.0-Release-v2.5(0144) +Game Version: 8.3.0 +Release Date: 18/07/2020 + +##Follow + - Fixed a bug with warn pvp follow not getting truned off. + + + +--------------------------- + EMA Version: v8.3.0-Release-v2.5(0143) Game Version: 8.3.0 Release Date: 17/07/2020 diff --git a/Core/Communications.lua b/Core/Communications.lua index 2321bb3..dd85fa7 100644 --- a/Core/Communications.lua +++ b/Core/Communications.lua @@ -358,9 +358,9 @@ function EMA:CommandReceived( prefix, message, distribution, sender ) EMA:DebugMessage( "Sending command on to module: ", sender, moduleName, commandName, unpack( argumentsTable ) ) EMAPrivate.Core.OnCommandReceived( sender, moduleName, commandName, unpack( argumentsTable ) ) end - else - EMA:DebugMessage( "Sender is NOT in team list." ) - end + else + EMA:DebugMessage( "Sender is NOT in team list." ) + end end end @@ -462,10 +462,25 @@ end function EMA:OnDisable() end +local function isPlayerInMyGuild( playerName) + local numGuildMembers, numOnline, numOnlineAndMobile = GetNumGuildMembers() + for index = 1, numGuildMembers do + local characterName,_,_,_,class,_,_,_,online,status,classFileName,_, _,isMobile = GetGuildRosterInfo(index) + --EMA:Print("taaa", characterName, playerName) + if characterName == playerName then + --EMA:Print("player in my guild 102", characterName) + return true + end + end + return false +end + + function EMA:GUILD_ROSTER_UPDATE(event, ... ) if EMA.db.useGuildComms == false then return end + EMA:SetNonGuildMembersOflline() local numGuildMembers, numOnline, numOnlineAndMobile = GetNumGuildMembers() for index = 1, numGuildMembers do characterName,_,_,_,class,_,_,_,online,status,classFileName,_, _,isMobile = GetGuildRosterInfo(index) @@ -478,9 +493,28 @@ function EMA:GUILD_ROSTER_UPDATE(event, ... ) end end end - end + end end + +function EMA:SetNonGuildMembersOflline() +-- If Character is not in guild then auto set it offline as there is no communication for them cross guild! + for characterName, position in EMAApi.TeamList() do + local isNotInGuild = isPlayerInMyGuild( characterName ) + --EMA:Print("test", characterName, "is", isNotInGuild ) + + if isNotInGuild == false then + if EMA.db.autoSetTeamOnlineorOffline == true then + if EMAApi.IsCharacterInTeam(characterName) == true and IsCharacterOnline( characterName ) == true then + EMAApi.setOffline( characterName, false ) + --EMA:Print("player is not in my guild 101", characterName ) + end + end + end + end +end + + ------------------------------------------------------------------------------------------------------------- -- Settings Dialogs. ------------------------------------------------------------------------------------------------------------- diff --git a/Core/Core.lua b/Core/Core.lua index 9052798..f7ef5cf 100644 --- a/Core/Core.lua +++ b/Core/Core.lua @@ -73,7 +73,7 @@ function EMA:OnEnable() StaticPopup_Show( "ALL_SETTINGS HAVE BEEN RESET" ) end ]] - if EMA.db.global.showStartupMessage2000 then + if EMA.db.global.showStartupMessage3000 then StaticPopup_Show( "UpgradeTo_v2" ) end end @@ -111,7 +111,7 @@ local function InitializePopupDialogs() text = L["v2_NEWS"], button1 = OKAY, OnAccept = function() - EMA.db.global.showStartupMessage2000 = false + EMA.db.global.showStartupMessage3000 = false end, showAlert = 1, timeout = 0, @@ -233,6 +233,7 @@ EMA.settings = { ['**'] = { showStartupMessage8000 = false, showStartupMessage2000 = true, + showStartupMessage3000 = true }, }, profile = { diff --git a/Core/Team.lua b/Core/Team.lua index feb3ed9..950a905 100644 --- a/Core/Team.lua +++ b/Core/Team.lua @@ -1158,16 +1158,16 @@ end -- Invite team to party. function EMA.DoTeamPartyInvite() - InviteUnit( EMA.inviteList[EMA.currentInviteCount] ) + C_PartyInfo.InviteUnit( EMA.inviteList[EMA.currentInviteCount] ) EMA.currentInviteCount = EMA.currentInviteCount + 1 if EMA.currentInviteCount < EMA.inviteCount then --if GetTeamListMaximumOrderOnline() > 5 and EMA.db.inviteConvertToRaid == true then if EMA.inviteCount > 4 and EMA.db.inviteConvertToRaid == true then if EMA.db.inviteSetAllAssistant == true then - ConvertToRaid() + C_PartyInfo.ConvertToRaid() SetEveryoneIsAssistant(true) else - ConvertToRaid() + C_PartyInfo.ConvertToRaid() end end EMA:ScheduleTimer( "DoTeamPartyInvite", 0.5 ) @@ -1318,7 +1318,7 @@ end local function LeaveTheParty() if IsInGroup( "player" ) then - LeaveParty() + C_PartyInfo.LeaveParty() end end diff --git a/EMA.toc b/EMA.toc index ba05b14..7bc8b36 100644 --- a/EMA.toc +++ b/EMA.toc @@ -1,9 +1,9 @@ -## Interface: 80300 +## Interface: 90001 ## Title: EMA ## Notes: Ebony's MultiBoxing Assistant ## Author: Jennifer Calladine 'Ebony' -## Version: v8.3.0-Release-v2.5(0143) -## SavedVariables: CoreProfileDB, CommunicationsProfileDB, TeamProfileDB, TagProfileDB, MessageProfileDB, CurrProfileDB, DisplayTeamProfileDB, FollowProfileDB, GuildProfileDB, InteractionProfileDB, ItemUseProfileDB, PurchaseProfileDB, QuestProfileDB, QuestWatcherProfileDB, SellProfileDB, TalkProfileDB, ToonProfileDB, TradeProfileDB, MailProfileDB, BankProfileDB, ISBoxerProfileDB +## Version: v9.0.1-Release-v3.0(0153) +## SavedVariables: CoreProfileDB, CommunicationsProfileDB, TeamProfileDB, TagProfileDB, MessageProfileDB, InformationProfileDB, DisplayTeamProfileDB, FollowProfileDB, GuildProfileDB, InteractionProfileDB, ItemUseProfileDB, PurchaseProfileDB, QuestProfileDB, QuestWatcherProfileDB, SellProfileDB, TalkProfileDB, ToonProfileDB, TradeProfileDB, MailProfileDB, BankProfileDB, ISBoxerProfileDB #Libs Embeds.xml diff --git a/EbonyUtilities.lua b/EbonyUtilities.lua index 54c2fb3..659db19 100644 --- a/EbonyUtilities.lua +++ b/EbonyUtilities.lua @@ -128,6 +128,21 @@ function EbonyUtilities:MoneyString( value ) silverFormat = "" end end + return gold, silver, copper +end + + +-- A little toy to retun Gold, silver and copper for formatted use. +function EbonyUtilities:MoneyStringFormatted( value ) + local gold = floor( value / ( EbonyUtilities.COPPER_PER_SILVER * EbonyUtilities.SILVER_PER_GOLD ) ); + local silver = floor( ( value - ( gold * EbonyUtilities.COPPER_PER_SILVER * EbonyUtilities.SILVER_PER_GOLD ) ) / EbonyUtilities.COPPER_PER_SILVER ); + local copper = mod( value, EbonyUtilities.COPPER_PER_SILVER ); + if gold <=0 then + goldFormat = "" + if silver <= 0 then + silverFormat = "" + end + end return BreakUpLargeNumbers(gold), silver, copper end diff --git a/Embeds.xml b/Embeds.xml index a701de9..81aff14 100644 --- a/Embeds.xml +++ b/Embeds.xml @@ -38,4 +38,5 @@