From 67037ce3599bda560b0499cedb13026051f7e1a9 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Wed, 1 Apr 2009 10:54:49 +0200 Subject: [PATCH] Add a "No Stance/Form" toggle to the visibility driver options, to hide a bar when in stance 0 (no form). --- Options/Bar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Options/Bar.lua b/Options/Bar.lua index 97742e3..415b1c1 100644 --- a/Options/Bar.lua +++ b/Options/Bar.lua @@ -160,6 +160,10 @@ local stanceClasses = { local function getStanceTable() local tbl = {} + if class ~= "WARRIOR" then + tbl[0] = L["No Stance/Form"] + end + local num = GetNumShapeshiftForms() for i = 1, num do tbl[i] = select(2, GetShapeshiftFormInfo(i))