change visibility driver to hide pet-bar when possessing, as blizzard doesn't give you a pet-bar either when in a vehicle, for example.

This commit is contained in:
Hendrik Leppkes
2008-09-01 10:24:40 +00:00
parent 866d535744
commit dca3b31f9d
2 changed files with 10 additions and 16 deletions
+1 -2
View File
@@ -323,8 +323,7 @@ end
function Bar:ApplyVisibilityDriver()
if self.unlocked then return end
-- default state is shown
self:RegisterVisibilityCondition("show")
RegisterStateDriver(self, "visibility", table_concat(self.hidedriver, ";"))
RegisterStateDriver(self, "visibility", table_concat(self.hidedriver, ";") .. ";show")
end
function Bar:DisableVisibilityDriver()