From 811a9493cbce24714970c50a58d5ace7de5f88ec Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 8 Nov 2009 13:18:30 +0100 Subject: [PATCH] Added a new Vehicle UI visibility condition. --- ActionBars.lua | 2 +- Bar.lua | 6 ++++-- Options/Bar.lua | 8 +++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ActionBars.lua b/ActionBars.lua index 6115390..d49274b 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -26,7 +26,7 @@ local abdefaults = { }, }, visibility = { - possess = false, + vehicleui = false, }, }, [7] = { diff --git a/Bar.lua b/Bar.lua index 6fbaaf0..9c24162 100644 --- a/Bar.lua +++ b/Bar.lua @@ -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 diff --git a/Options/Bar.lua b/Options/Bar.lua index b0e8d39..b082599 100644 --- a/Options/Bar.lua +++ b/Options/Bar.lua @@ -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",