Skip to content

Commit

Permalink
unitframes: naive handling of entering vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaildon committed Oct 21, 2017
1 parent d11208b commit 9e9872b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/unitframes/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,16 @@ oUF:Factory(function(self)
spawnHelper(self, 'player', {
"CENTER", "NamePlatePlayerResourceFrame", "CENTER", 0, -50
})

NamePlatePlayerResourceFrame:HookScript("OnHide", function()
oUF_sInterfacePlayer:ClearAllPoints()
oUF_sInterfacePlayer:SetPoint(unpack(C.uf.positions.Player))
end)

NamePlatePlayerResourceFrame:HookScript("OnShow", function()
oUF_sInterfacePlayer:ClearAllPoints()
oUF_sInterfacePlayer:SetPoint("CENTER", "NamePlatePlayerResourceFrame", "CENTER", 0, -50)
end)
else
SetCVar("nameplateSelfAlpha", GetCVarDefault("nameplateSelfAlpha"))
SetCVar("NameplatePersonalShowAlways", GetCVarDefault("NameplatePersonalShowAlways"))
Expand Down

0 comments on commit 9e9872b

Please sign in to comment.