Fix Omen's overall alpha setting not applying on login.

This commit is contained in:
Xinhuan
2008-10-28 23:59:33 +08:00
parent d91cd40b70
commit 120abe4fbc
+2
View File
@@ -458,6 +458,7 @@ function Omen:PLAYER_LOGIN()
-- It cannot be earlier than PLAYER_LOGIN because layout-cache.txt
-- is loaded just before this event fires.
self:SetAnchors(true)
self.Anchor:SetAlpha(db.Alpha)
self:UpdateBackdrop()
self:UpdateTitleBar()
self:UpdateGrips()
@@ -546,6 +547,7 @@ end
function Omen:OnProfileChanged(event, database, newProfileKey)
db = database.profile
self:SetAnchors(true)
self.Anchor:SetAlpha(db.Alpha)
self:UpdateBackdrop()
self:UpdateTitleBar()
self:UpdateGrips()