Skip to content

Commit

Permalink
add onTaxi check
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed Sep 11, 2024
1 parent 310a840 commit 059c98d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ElvUI_ActionBarBuddy/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ do
or (db.displayTriggers.isPossessed and possessbar == '1')
or (db.displayTriggers.inCombat == 2 and UnitAffectingCombat('player') or db.displayTriggers.inCombat == 1 and not UnitAffectingCombat('player'))
or (db.displayTriggers.notMaxHealth and (UnitHealth('player') ~= UnitHealthMax('player')))
or (db.displayTriggers.onTaxi == 2 and UnitOnTaxi('player') or db.displayTriggers.onTaxi == 1 and not UnitOnTaxi('player'))
or (E.Retail and ((db.displayTriggers.isDragonRiding and (canGlide or CanGlide())) or (db.displayTriggers.inVehicle and (IsPossessBarVisible() or HasOverrideActionBar())))) then
-- E:UIFrameFadeIn(AB.fadeParent, 0.2, AB.fadeParent:GetAlpha(), 1)
AB.fadeParent.mouseLock = true
Expand Down
6 changes: 6 additions & 0 deletions ElvUI_ActionBarBuddy/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ local globalFadeOptions = {
get = function(info) local value = E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] if value == 2 then return true elseif value == 1 then return nil else return false end end,
set = function(info, value) E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] = (value and 2) or (value == nil and 1) or 0 ABB:FadeParent_OnEvent('FAKE_EVENT') end,
},
onTaxi = {
name = function(info) local text = L["Taxi (|cff%s%s|r)"] local value = E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] if value == 2 then return format(text, '00FF00', L["On Taxi"]) elseif value == 1 then return format(text, 'FF0000', L["Not On Taxi"]) else return format(text, 'FFFF00', L["Ignore Taxi"]) end end,
tristate = true,
get = function(info) local value = E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] if value == 2 then return true elseif value == 1 then return nil else return false end end,
set = function(info, value) E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] = (value and 2) or (value == nil and 1) or 0 ABB:FadeParent_OnEvent('FAKE_EVENT') end,
},
inInstance = {
name = function(info) local text = L["Instance (|cff%s%s|r)"] local value = E.db.abb.enhancedGlobalFade.displayTriggers[info[#info]] if value == 2 then return format(text, '00FF00', L["In Instance"]) elseif value == 1 then return format(text, 'FF0000', L["Not In Instance"]) else return format(text, 'FFFF00', L["Ignore Instance"]) end end,
tristate = true,
Expand Down

0 comments on commit 059c98d

Please sign in to comment.