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
+1 -1
View File
@@ -26,7 +26,7 @@ local abdefaults = {
},
},
visibility = {
possess = false,
vehicleui = false,
},
},
[7] = {
+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
+7 -1
View File
@@ -286,7 +286,6 @@ function Bar:GetOptionObject()
type = "toggle",
name = L["Always Hide"],
desc = L["You can set the bar to be always hidden, if you only wish to access it using key-bindings."],
width = "full",
disabled = customEnabled,
},
possess = {
@@ -303,6 +302,13 @@ function Bar:GetOptionObject()
desc = L["Hide this bar when you are riding on a vehicle."],
disabled = customEnabled,
},
vehicleui = {
order = 17,
type = "toggle",
name = L["Hide with Vehicle UI"],
desc = L["Hide this bar when the game wants to show a vehicle UI."],
disabled = customEnabled,
},
combat = {
order = 20,
type = "toggle",