Skip to content

Commit

Permalink
Enable blizzards vehicle switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviana committed Jan 19, 2023
1 parent c9e1181 commit 498de1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions LunaUnitFrames.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Luna Unit Frames 4.0 by Aviana

LUF = select(2, ...)
LUF.version = 4344
LUF.version = 4345

local L = LUF.L
local ACR = LibStub("AceConfigRegistry-3.0", true)
Expand Down Expand Up @@ -1445,6 +1445,7 @@ local initialConfigFunction = [[
self:SetAttribute("unitsuffix", "target")
end
self:SetAttribute("oUF-guessUnit",unit)
self:SetAttribute("toggleForVehicle", true)
self:SetHeight(parent:GetAttribute("x-height") or 1)
self:SetWidth(parent:GetAttribute("x-width") or 1)
Expand Down Expand Up @@ -1478,8 +1479,9 @@ function LUF:SpawnUnits()
for id=1,10 do
local data = config.positions[id]
self.frameIndex["raid"..id] = oUF:SpawnHeader("LUFHeaderraid"..id, nil, nil, "oUF-initialConfigFunction", format(initialConfigFunction, "raid"))
self.frameIndex["raid"..id]:Show() --Set Show() early to allow child spawning
self.frameIndex["raid"..id]:SetAttribute('_initialAttribute-_onstate-vehicleui', nil)
self.frameIndex["raid"..id]:SetAttribute("oUF-headerType", unit)
self.frameIndex["raid"..id]:Show() --Set Show() early to allow child spawning
end
elseif unit:match("^arena.*") then
self.frameIndex[unit] = CreateFrame("Frame", "LUFHeader"..unit, UIParent, "SecureFrameTemplate")
Expand Down
2 changes: 1 addition & 1 deletion LunaUnitFrames.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Luna Unit Frames
## Notes:
## Author: Aviana
## Version: 4344
## Version: 4345
## SavedVariables: LunaUFDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, Clique
## X-License: WTFPL (http://www.wtfpl.net/about/)
Expand Down

0 comments on commit 498de1b

Please sign in to comment.