Added new "Hide on Vehicle" preset option, currently in use by the PetBar to hide the single "Attack" button being shown on the engineering chopper mounts and possible other Vehicle-type mounts.

This commit is contained in:
Hendrik Leppkes
2009-01-04 17:15:25 +01:00
parent 632c74aed7
commit 9065b0e95e
12 changed files with 30 additions and 4 deletions
+2
View File
@@ -340,6 +340,8 @@ function Bar:InitVisibilityDriver(returnOnly)
table_insert(self.hidedriver, "hide")
elseif key == "possess" then
table_insert(self.hidedriver, "[bonusbar:5]hide")
elseif key == "vehicle" then
table_insert(self.hidedriver, "[target=vehicle, exists]hide")
elseif directVisCond[key] then
table_insert(self.hidedriver, ("[%s]hide"):format(key))
elseif key == "stance" then