Added a new Vehicle UI visibility condition.

This commit is contained in:
Hendrik Leppkes
2009-11-08 13:18:30 +01:00
parent aa975e5da2
commit 811a9493cb
3 changed files with 12 additions and 4 deletions
+4 -2
View File
@@ -20,7 +20,7 @@ local defaults = {
fadeoutalpha = 0.1,
fadeoutdelay = 0.2,
visibility = {
possess = true,
vehicleui = true,
stance = {},
},
position = {
@@ -430,8 +430,10 @@ function Bar:InitVisibilityDriver(returnOnly)
table_insert(self.hidedriver, "hide")
elseif key == "possess" then
table_insert(self.hidedriver, "[bonusbar:5]hide")
elseif key == "vehicleui" then
table_insert(self.hidedriver, "[vehicleui]hide")
elseif key == "vehicle" then
table_insert(self.hidedriver, "[target=vehicle,exists,bonusbar:5]hide")
table_insert(self.hidedriver, "[target=vehicle,exists]hide")
elseif directVisCond[key] then
table_insert(self.hidedriver, ("[%s]hide"):format(key))
elseif key == "stance" then