Added a new Vehicle UI visibility condition.
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ local abdefaults = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
visibility = {
|
visibility = {
|
||||||
possess = false,
|
vehicleui = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
[7] = {
|
[7] = {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ local defaults = {
|
|||||||
fadeoutalpha = 0.1,
|
fadeoutalpha = 0.1,
|
||||||
fadeoutdelay = 0.2,
|
fadeoutdelay = 0.2,
|
||||||
visibility = {
|
visibility = {
|
||||||
possess = true,
|
vehicleui = true,
|
||||||
stance = {},
|
stance = {},
|
||||||
},
|
},
|
||||||
position = {
|
position = {
|
||||||
@@ -430,8 +430,10 @@ function Bar:InitVisibilityDriver(returnOnly)
|
|||||||
table_insert(self.hidedriver, "hide")
|
table_insert(self.hidedriver, "hide")
|
||||||
elseif key == "possess" then
|
elseif key == "possess" then
|
||||||
table_insert(self.hidedriver, "[bonusbar:5]hide")
|
table_insert(self.hidedriver, "[bonusbar:5]hide")
|
||||||
|
elseif key == "vehicleui" then
|
||||||
|
table_insert(self.hidedriver, "[vehicleui]hide")
|
||||||
elseif key == "vehicle" then
|
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
|
elseif directVisCond[key] then
|
||||||
table_insert(self.hidedriver, ("[%s]hide"):format(key))
|
table_insert(self.hidedriver, ("[%s]hide"):format(key))
|
||||||
elseif key == "stance" then
|
elseif key == "stance" then
|
||||||
|
|||||||
+7
-1
@@ -286,7 +286,6 @@ function Bar:GetOptionObject()
|
|||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Always Hide"],
|
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."],
|
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,
|
disabled = customEnabled,
|
||||||
},
|
},
|
||||||
possess = {
|
possess = {
|
||||||
@@ -303,6 +302,13 @@ function Bar:GetOptionObject()
|
|||||||
desc = L["Hide this bar when you are riding on a vehicle."],
|
desc = L["Hide this bar when you are riding on a vehicle."],
|
||||||
disabled = customEnabled,
|
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 = {
|
combat = {
|
||||||
order = 20,
|
order = 20,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
|
|||||||
Reference in New Issue
Block a user