Skip to content

Commit

Permalink
primary stat retail only (might change later)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed May 2, 2024
1 parent 0181469 commit 7c4794e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion ElvUI/Core/Modules/DataTexts/Load_DataTexts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<Script file='ManaRegen.lua'/>
<Script file='MicroBar.lua'/>
<Script file='MovementSpeed.lua'/>
<Script file='PrimaryStat.lua'/>
<Script file='Quests.lua'/>
<Script file='Reputation.lua'/>
<Script file='Stamina.lua'/>
Expand Down
8 changes: 4 additions & 4 deletions ElvUI/Core/Modules/DataTexts/PrimaryStat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ local NOT_APPLICABLE = NOT_APPLICABLE
local displayString = ''

local function OnEvent(self)
local Spec = E.Retail and GetSpecialization()
local StatID = Spec and DT.SPECIALIZATION_CACHE[Spec] and DT.SPECIALIZATION_CACHE[Spec].statID
local spec = E.Retail and GetSpecialization()
local statID = spec and DT.SPECIALIZATION_CACHE[spec] and DT.SPECIALIZATION_CACHE[spec].statID

local name = StatID and _G['SPELL_STAT'..StatID..'_NAME']
local name = statID and _G['SPELL_STAT'..statID..'_NAME']
if name then
self.text:SetFormattedText(displayString, name..': ', UnitStat('player', StatID))
self.text:SetFormattedText(displayString, name..': ', UnitStat('player', statID))
else
self.text:SetText(NOT_APPLICABLE)
end
Expand Down
5 changes: 3 additions & 2 deletions ElvUI/Mainline/Modules/DataTexts/Load_DataTexts.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Ui xmlns='http://www.blizzard.com/wow/ui/'>
<Script file='..\..\..\Core\Modules\DataTexts\Speed.lua'/>
<Script file='..\..\..\Core\Modules\DataTexts\Currencies.lua'/>
<Script file='..\..\..\Core\Modules\DataTexts\Difficulty.lua'/>
<Script file='..\..\..\Core\Modules\DataTexts\EquipmentSets.lua'/>
<Script file='..\..\..\Core\Modules\DataTexts\PrimaryStat.lua'/>
<Script file='..\..\..\Core\Modules\DataTexts\Speed.lua'/>
<Script file='CallToArms.lua'/>
<Script file='Crests.lua'/>
<Script file='Leech.lua'/>
<Script file='Mastery.lua'/>
<Script file='Missions.lua'/>
<Script file='Quickjoin.lua'/>
<Script file='SpecSwitch.lua'/>
<Script file='Versatility.lua'/>
<Script file='Warmode.lua'/>
<Script file='Crests.lua'/>
</Ui>

0 comments on commit 7c4794e

Please sign in to comment.