Skip to content

Commit ca0fc8e

Browse files
committed
Merge branch 'main' into ptr
2 parents fbb23ab + 6ad1805 commit ca0fc8e

File tree

7 files changed

+158
-47
lines changed

7 files changed

+158
-47
lines changed

ElvUI/Core/Defaults/Global.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ G.datatexts = {
9595
Versatility = { Label = '', NoLabel = false, decimalLength = 1 },
9696
Dodge = { decimalLength = 1 },
9797
Parry = { decimalLength = 1 },
98-
Block = { decimalLength = 1 }
98+
Block = { decimalLength = 1 },
99+
['Mana Regen'] = { Label = '', NoLabel = false, decimalLength = 1 },
100+
HealPower = { Label = '', NoLabel = false }
99101
},
100102
newPanelInfo = {
101103
growth = 'HORIZONTAL',

ElvUI/Core/General/Commands.lua

+109-2
Original file line numberDiff line numberDiff line change
@@ -281,53 +281,70 @@ end
281281
local BLIZZARD_DEPRECATED = {
282282
'Blizzard_Deprecated',
283283
'Blizzard_DeprecatedCurrencyScript',
284+
'Blizzard_DeprecatedGlue',
284285
'Blizzard_DeprecatedGuildScript',
285286
'Blizzard_DeprecatedItemScript',
287+
'Blizzard_DeprecatedLFG',
286288
'Blizzard_DeprecatedPvpScript',
287289
'Blizzard_DeprecatedSoundScript',
290+
'Blizzard_DeprecatedSpecialization',
288291
'Blizzard_DeprecatedSpellScript',
292+
'Blizzard_Deprecated_ArenaUI',
289293
}
290294

291295
local BLIZZARD_ADDONS = {
292296
'Blizzard_AccountSaveUI',
297+
'Blizzard_AccountStore',
293298
'Blizzard_AchievementUI',
299+
'Blizzard_ActionBar',
300+
'Blizzard_ActionBarController',
301+
'Blizzard_ActionStatus',
302+
'Blizzard_AddOnList',
294303
'Blizzard_AdventureMap',
295304
'Blizzard_AlliedRacesUI',
296305
'Blizzard_AnimaDiversionUI',
297306
'Blizzard_APIDocumentation',
298307
'Blizzard_APIDocumentationGenerated',
299308
'Blizzard_ArchaeologyUI',
300309
'Blizzard_ArdenwealdGardening',
310+
'Blizzard_ArrowCalloutFrame',
301311
'Blizzard_ArtifactUI',
302-
'Blizzard_AuctionHouseShared',
303312
'Blizzard_AuctionHouseUI',
304313
'Blizzard_AuthChallengeUI',
314+
'Blizzard_AutoComplete',
305315
'Blizzard_AzeriteEssenceUI',
306316
'Blizzard_AzeriteRespecUI',
307317
'Blizzard_AzeriteUI',
308318
'Blizzard_BarbershopUI',
309319
'Blizzard_BattlefieldMap',
310320
'Blizzard_BehavioralMessaging',
311321
'Blizzard_BlackMarketUI',
322+
'Blizzard_BNet',
312323
'Blizzard_BoostTutorial',
324+
'Blizzard_BuffFrame',
313325
'Blizzard_Calendar',
314326
'Blizzard_ChallengesUI',
315327
'Blizzard_Channels',
316328
'Blizzard_CharacterCreate',
317329
'Blizzard_CharacterCustomize',
330+
'Blizzard_ChatFrame',
331+
'Blizzard_ChatFrameBase',
318332
'Blizzard_ChatFrameUtil',
319333
'Blizzard_ChromieTimeUI',
320-
'Blizzard_ClassTalentUI',
334+
'Blizzard_ClassMenu',
321335
'Blizzard_ClassTrial',
336+
'Blizzard_ClassTrialSecure',
322337
'Blizzard_ClickBindingUI',
323338
'Blizzard_ClientSavedVariables',
324339
'Blizzard_Collections',
325340
'Blizzard_CombatLog',
326341
'Blizzard_CombatText',
327342
'Blizzard_Commentator',
328343
'Blizzard_Communities',
344+
'Blizzard_CommunitiesSecure',
329345
'Blizzard_CompactRaidFrames',
330346
'Blizzard_Console',
347+
'Blizzard_ContentTracking',
331348
'Blizzard_Contribution',
332349
'Blizzard_CovenantCallings',
333350
'Blizzard_CovenantPreviewUI',
@@ -337,84 +354,174 @@ local BLIZZARD_ADDONS = {
337354
'Blizzard_CUFProfiles',
338355
'Blizzard_DeathRecap',
339356
'Blizzard_DebugTools',
357+
'Blizzard_DeclensionFrame',
358+
'Blizzard_DeclensionFrameGlue',
359+
'Blizzard_DelvesCompanionConfiguration',
360+
'Blizzard_DelvesDashboardUI',
361+
'Blizzard_DelvesDifficultyPicker',
340362
'Blizzard_Dispatcher',
363+
'Blizzard_DurabilityFrame',
364+
'Blizzard_EditMode',
341365
'Blizzard_EncounterJournal',
366+
'Blizzard_EndOfMatchUI',
367+
'Blizzard_EnvironmentCleanup',
342368
'Blizzard_EventTrace',
343369
'Blizzard_ExpansionLandingPage',
344370
'Blizzard_ExpansionTrial',
345371
'Blizzard_FlightMap',
372+
'Blizzard_FontStyles_Frame',
373+
'Blizzard_FontStyles_Glue',
374+
'Blizzard_FontStyles_Shared',
375+
'Blizzard_Fonts_Frame',
376+
'Blizzard_Fonts_Glue',
377+
'Blizzard_Fonts_Shared',
346378
'Blizzard_FrameEffects',
379+
'Blizzard_FramerateFrame',
380+
'Blizzard_FrameStack',
381+
'Blizzard_FrameXML',
382+
'Blizzard_FrameXMLBase',
383+
'Blizzard_FrameXMLUtil',
384+
'Blizzard_FriendsFrame',
385+
'Blizzard_GameMenu',
386+
'Blizzard_GameTooltip',
387+
'Blizzard_GarrisonBase',
347388
'Blizzard_GarrisonTemplates',
348389
'Blizzard_GarrisonUI',
349390
'Blizzard_GenericTraitUI',
391+
'Blizzard_GlobalFXModelScenes',
392+
'Blizzard_GlueDialogs',
393+
'Blizzard_GlueParent',
394+
'Blizzard_GlueSavedVariables',
395+
'Blizzard_GlueStubs',
396+
'Blizzard_GlueXML',
397+
'Blizzard_GlueXMLBase',
350398
'Blizzard_GMChatUI',
399+
'Blizzard_GroupFinder',
351400
'Blizzard_GuildBankUI',
352401
'Blizzard_GuildControlUI',
402+
'Blizzard_HelpFrame',
353403
'Blizzard_HybridMinimap',
404+
'Blizzard_IME',
354405
'Blizzard_InspectUI',
355406
'Blizzard_IslandsPartyPoseUI',
356407
'Blizzard_IslandsQueueUI',
408+
'Blizzard_ItemBeltFrame',
409+
'Blizzard_ItemButton',
357410
'Blizzard_ItemInteractionUI',
358411
'Blizzard_ItemSocketingUI',
359412
'Blizzard_ItemUpgradeUI',
360413
'Blizzard_Kiosk',
361414
'Blizzard_LandingSoulbinds',
415+
'Blizzard_LevelUpDisplay',
416+
'Blizzard_LoadLocale',
417+
'Blizzard_LoginWarningDialogs',
362418
'Blizzard_MacroUI',
419+
'Blizzard_MailFrame',
363420
'Blizzard_MajorFactions',
364421
'Blizzard_MapCanvas',
365422
'Blizzard_MatchCelebrationPartyPoseUI',
423+
'Blizzard_MatchmakingQueueDisplay',
366424
'Blizzard_MawBuffs',
425+
'Blizzard_Menu',
426+
'Blizzard_Minimap',
427+
'Blizzard_MirrorTimer',
428+
'Blizzard_MoneyFrame',
367429
'Blizzard_MoneyReceipt',
368430
'Blizzard_MovePad',
369431
'Blizzard_NamePlates',
370432
'Blizzard_NewPlayerExperience',
371433
'Blizzard_NewPlayerExperienceGuide',
434+
'Blizzard_ObjectAPI',
372435
'Blizzard_ObjectiveTracker',
373436
'Blizzard_ObliterumUI',
374437
'Blizzard_OrderHallUI',
438+
'Blizzard_OverrideActionBar',
439+
'Blizzard_PagedContent',
375440
'Blizzard_PartyPoseUI',
376441
'Blizzard_PerksProgram',
377442
'Blizzard_PetBattleUI',
378443
'Blizzard_PingUI',
379444
'Blizzard_PlayerChoice',
445+
'Blizzard_PlayerSpells',
380446
'Blizzard_PlunderstormBasics',
447+
'Blizzard_PlunderstormPrematchUI',
448+
'Blizzard_POIButton',
449+
'Blizzard_PrintHandler',
381450
'Blizzard_PrivateAurasUI',
382451
'Blizzard_Professions',
452+
'Blizzard_ProfessionsBook',
383453
'Blizzard_ProfessionsCustomerOrders',
384454
'Blizzard_ProfessionsTemplates',
385455
'Blizzard_PTRFeedback',
386456
'Blizzard_PTRFeedbackGlue',
387457
'Blizzard_PVPMatch',
388458
'Blizzard_PVPUI',
389459
'Blizzard_QuestNavigation',
460+
'Blizzard_QuestTimer',
461+
'Blizzard_QueueStatusFrame',
462+
'Blizzard_QuickJoin',
463+
'Blizzard_QuickKeybind',
464+
'Blizzard_RaidFrame',
390465
'Blizzard_RaidUI',
466+
'Blizzard_RecruitAFriend',
467+
'Blizzard_ReforgingUI',
468+
'Blizzard_ReportFrame',
469+
'Blizzard_ReportFrameGlue',
470+
'Blizzard_ReportFrameShared',
391471
'Blizzard_RuneforgeUI',
392472
'Blizzard_ScrappingMachineUI',
393473
'Blizzard_SecureTransferUI',
394474
'Blizzard_SelectorUI',
395475
'Blizzard_Settings',
476+
'Blizzard_SettingsDefinitions_Frame',
477+
'Blizzard_SettingsDefinitions_Shared',
478+
'Blizzard_Settings_Shared',
396479
'Blizzard_SharedMapDataProviders',
397480
'Blizzard_SharedTalentUI',
398481
'Blizzard_SharedWidgetFrames',
482+
'Blizzard_SharedXML',
483+
'Blizzard_SharedXMLBase',
484+
'Blizzard_SharedXMLGame',
485+
'Blizzard_SocialToast',
399486
'Blizzard_Soulbinds',
487+
'Blizzard_SpectateFrame',
488+
'Blizzard_SpellPickUpIndicator',
489+
'Blizzard_SpellSearch',
490+
'Blizzard_StableUI',
491+
'Blizzard_StaticPopup',
492+
'Blizzard_StaticPopup_Frame',
400493
'Blizzard_StoreUI',
401494
'Blizzard_SubscriptionInterstitialUI',
402495
'Blizzard_Subtitles',
403496
'Blizzard_TalentUI',
497+
'Blizzard_TextStatusBar',
404498
'Blizzard_TimeManager',
499+
'Blizzard_TimerunningCharacterCreate',
500+
'Blizzard_TimerunningUtil',
405501
'Blizzard_TokenUI',
406502
'Blizzard_TorghastLevelPicker',
407503
'Blizzard_TrainerUI',
504+
'Blizzard_TransformTree',
408505
'Blizzard_TutorialManager',
409506
'Blizzard_Tutorials',
410507
'Blizzard_UIFrameManager',
508+
'Blizzard_UIPanels_Game',
509+
'Blizzard_UIPanelTemplates',
510+
'Blizzard_UIParent',
511+
'Blizzard_UIParentPanelManager',
411512
'Blizzard_UIWidgets',
513+
'Blizzard_UnitFrame',
514+
'Blizzard_UnitPopup',
515+
'Blizzard_UnitPopupShared',
516+
'Blizzard_VoiceToggleButton',
412517
'Blizzard_VoidStorageUI',
413518
'Blizzard_WarfrontsPartyPoseUI',
414519
'Blizzard_WeeklyRewards',
415520
'Blizzard_WeeklyRewardsUtil',
521+
'Blizzard_WorldLootObjectList',
416522
'Blizzard_WorldMap',
417523
'Blizzard_WowTokenUI',
524+
'Blizzard_ZoneAbility',
418525
}
419526

420527
function E:DisableBlizzardDeprecated()

ElvUI/Core/General/StaticPopups.lua

-7
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,6 @@ E.PopupDialogs.RESET_PRIVATE_PROFILE_PROMPT = {
332332
OnAccept = function() E:ResetPrivateProfile() end,
333333
}
334334

335-
E.PopupDialogs.WARNING_BLIZZARD_ADDONS = {
336-
text = L["It appears one of your AddOns have disabled the AddOn Blizzard_CompactRaidFrames. This can cause errors and other issues. The AddOn will now be re-enabled."],
337-
button1 = OKAY,
338-
hideOnEscape = false,
339-
OnAccept = function() EnableAddOn('Blizzard_CompactRaidFrames'); ReloadUI() end,
340-
}
341-
342335
E.PopupDialogs.APPLY_FONT_WARNING = {
343336
text = L["Are you sure you want to apply this font to all ElvUI elements?"],
344337
OnAccept = function() E:GeneralMedia_ApplyToAll() end,

ElvUI/Core/Modules/DataTexts/HealPower.lua

+12-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ local strjoin = strjoin
55
local GetSpellBonusHealing = GetSpellBonusHealing
66
local STAT_CATEGORY_ENHANCEMENTS = STAT_CATEGORY_ENHANCEMENTS
77

8-
local displayString = ''
8+
local displayString, db = ''
99

1010
local function OnEvent(self)
11-
self.text:SetFormattedText(displayString, L["HP"], GetSpellBonusHealing())
11+
if db.NoLabel then
12+
self.text:SetFormattedText(displayString, GetSpellBonusHealing())
13+
else
14+
self.text:SetFormattedText(displayString, db.Label ~= '' and db.Label or L["HP"]..': ', GetSpellBonusHealing())
15+
end
1216
end
1317

14-
local function ApplySettings(_, hex)
15-
displayString = strjoin('', '%s: ', hex, '%d|r')
18+
local function ApplySettings(self, hex)
19+
if not db then
20+
db = E.global.datatexts.settings[self.name]
21+
end
22+
23+
displayString = strjoin('', db.NoLabel and '' or '%s', hex, '%d|r')
1624
end
1725

1826
DT:RegisterDatatext('HealPower', STAT_CATEGORY_ENHANCEMENTS, { 'UNIT_STATS', 'UNIT_AURA' }, OnEvent, nil, nil, nil, nil, L["Heal Power"], nil, ApplySettings)

ElvUI/Core/Modules/DataTexts/ManaRegen.lua

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,25 @@ local InCombatLockdown = InCombatLockdown
99
local MANA_REGEN = MANA_REGEN
1010
local STAT_CATEGORY_ENHANCEMENTS = STAT_CATEGORY_ENHANCEMENTS
1111

12-
local displayString = ''
12+
local displayString, db = ''
1313

1414
local function OnEvent(self)
1515
local baseMR, castingMR = GetManaRegen()
16+
local manaRegen = (InCombatLockdown() and castingMR or baseMR) * 5
1617

17-
self.text:SetFormattedText(displayString, MANA_REGEN, (InCombatLockdown() and castingMR or baseMR) * 5)
18+
if db.NoLabel then
19+
self.text:SetFormattedText(displayString, manaRegen)
20+
else
21+
self.text:SetFormattedText(displayString, db.Label ~= '' and db.Label or MANA_REGEN..': ', manaRegen)
22+
end
1823
end
1924

20-
local function ApplySettings(_, hex)
21-
displayString = strjoin('', '%s: ', hex, '%.2f|r')
25+
local function ApplySettings(self, hex)
26+
if not db then
27+
db = E.global.datatexts.settings[self.name]
28+
end
29+
30+
displayString = strjoin('', db.NoLabel and '' or '%s', hex, '%.'..db.decimalLength..'f|r')
2231
end
2332

2433
DT:RegisterDatatext('Mana Regen', STAT_CATEGORY_ENHANCEMENTS, {'UNIT_STATS', 'PLAYER_REGEN_DISABLED', 'PLAYER_REGEN_ENABLED'}, OnEvent, nil, nil, nil, nil, MANA_REGEN, nil, ApplySettings)

ElvUI/Core/Modules/Misc/RaidUtility.lua

+20-26
Original file line numberDiff line numberDiff line change
@@ -840,39 +840,33 @@ function RU:Initialize()
840840

841841
local RaidCountdownButton
842842
if hasCountdown then
843-
RaidCountdownButton = RU:CreateUtilButton('RaidUtility_RaidCountdownButton', RaidUtilityPanel, nil, (BUTTON_WIDTH * ((E.Retail or E.Cata) and 0.8 or 1)) + ((E.Retail or E.Cata) and 0 or 5), BUTTON_HEIGHT, 'TOPLEFT', MainTankButton, 'BOTTOMLEFT', 0, -5, L["Countdown"], nil, nil, nil, RU.OnClick_RaidCountdownButton)
843+
RaidCountdownButton = RU:CreateUtilButton('RaidUtility_RaidCountdownButton', RaidUtilityPanel, nil, (BUTTON_WIDTH * (E.Retail and 0.5 or E.Cata and 0.8 or 1)) + ((E.Retail or E.Cata) and 0 or 5), BUTTON_HEIGHT, 'TOPLEFT', MainTankButton, 'BOTTOMLEFT', 0, -5, L["Countdown"], nil, nil, nil, RU.OnClick_RaidCountdownButton)
844844
end
845845

846846
if E.allowRoles then
847847
RU:CreateUtilButton('RaidUtility_RoleCheckButton', RaidUtilityPanel, nil, BUTTON_WIDTH * 0.5, BUTTON_HEIGHT, 'TOPLEFT', ReadyCheckButton, 'TOPRIGHT', 5, 0, _G.ROLE_POLL, nil, buttonEvents, RU.OnEvent_RoleCheckButton, RU.OnClick_RoleCheckButton)
848848
RU:CreateRoleIcons()
849849
end
850850

851-
if not E.Classic then
852-
if _G.CompactRaidFrameManager then
853-
-- Reposition/Resize and Reuse the World Marker Button
854-
local marker = _G.CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidWorldMarkerButton
855-
if marker then
856-
marker:SetParent(RaidUtilityPanel)
857-
marker:ClearAllPoints()
858-
marker:Point('TOPLEFT', RaidCountdownButton, 'TOPRIGHT', 4, 0)
859-
marker:Size(BUTTON_WIDTH * 0.2, BUTTON_HEIGHT)
860-
marker:HookScript('OnEnter', RU.OnEnter_Button)
861-
marker:HookScript('OnLeave', RU.OnLeave_Button)
862-
RU:CleanButton(marker)
863-
RU.MarkerButton = marker
864-
865-
-- Since we steal the Marker Button for our utility panel, move the Ready Check button over a bit
866-
local readyCheck = _G.CompactRaidFrameManagerDisplayFrameLeaderOptionsInitiateReadyCheck
867-
if readyCheck then
868-
readyCheck:ClearAllPoints()
869-
readyCheck:Point('BOTTOMLEFT', _G.CompactRaidFrameManagerDisplayFrameLockedModeToggle, 'TOPLEFT', 0, 1)
870-
readyCheck:Point('BOTTOMRIGHT', _G.CompactRaidFrameManagerDisplayFrameHiddenModeToggle, 'TOPRIGHT', 0, 1)
871-
RU.ReadyCheck = readyCheck
872-
end
873-
end
874-
else
875-
E:StaticPopup_Show('WARNING_BLIZZARD_ADDONS')
851+
-- Reposition/Resize and Reuse the World Marker Button
852+
local marker = E.Cata and _G.CompactRaidFrameManager and _G.CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidWorldMarkerButton
853+
if marker then
854+
marker:SetParent(RaidUtilityPanel)
855+
marker:ClearAllPoints()
856+
marker:Point('TOPLEFT', RaidCountdownButton, 'TOPRIGHT', 4, 0)
857+
marker:Size(BUTTON_WIDTH * 0.2, BUTTON_HEIGHT)
858+
marker:HookScript('OnEnter', RU.OnEnter_Button)
859+
marker:HookScript('OnLeave', RU.OnLeave_Button)
860+
RU:CleanButton(marker)
861+
RU.MarkerButton = marker
862+
863+
-- Since we steal the Marker Button for our utility panel, move the Ready Check button over a bit
864+
local readyCheck = _G.CompactRaidFrameManagerDisplayFrameLeaderOptionsInitiateReadyCheck
865+
if readyCheck then
866+
readyCheck:ClearAllPoints()
867+
readyCheck:Point('BOTTOMLEFT', _G.CompactRaidFrameManagerDisplayFrameLockedModeToggle, 'TOPLEFT', 0, 1)
868+
readyCheck:Point('BOTTOMRIGHT', _G.CompactRaidFrameManagerDisplayFrameHiddenModeToggle, 'TOPRIGHT', 0, 1)
869+
RU.ReadyCheck = readyCheck
876870
end
877871
end
878872

0 commit comments

Comments
 (0)