Quantcast

Hide the Clique spell tab when appropriate

James Whitehead II [10-13-10 - 18:39]
Hide the Clique spell tab when appropriate
Filename
BindConfig.lua
Clique.xml
diff --git a/BindConfig.lua b/BindConfig.lua
index fd79c1a..cde555f 100755
--- a/BindConfig.lua
+++ b/BindConfig.lua
@@ -118,16 +118,12 @@ function CliqueConfig:HijackSpellbook()
         self:EnableSpellbookButtons()
     end)

-    -- TODO: This isn't a great way to do this, but for now
-    hooksecurefunc("SpellBookSkillLineTab_OnClick", function()
-        self:EnableSpellbookButtons()
-    end)
     self:EnableSpellbookButtons()
 end

 function CliqueConfig:EnableSpellbookButtons()
     local enabled;
-
+
     if self.page1:IsVisible() and SpellBookFrame:IsVisible() then
         enabled = true
     end
diff --git a/Clique.xml b/Clique.xml
index 895a039..4a7c38e 100755
--- a/Clique.xml
+++ b/Clique.xml
@@ -122,7 +122,7 @@
         <HighlightTexture file="Interface\BUTTONS\ButtonHilight-Square" alphaMode="ADD"/>
     </Button>

-    <CheckButton name="CliqueSpellTab" inherits="SpellBookSkillLineTabTemplate" parent="SpellBookFrame" hidden="false">
+    <CheckButton name="CliqueSpellTab" inherits="SpellBookSkillLineTabTemplate" parent="SpellBookSkillLineTab1" hidden="false">
         <Scripts>
             <OnClick>
                 CliqueConfig:SpellTab_OnClick()
@@ -196,9 +196,6 @@

     <Frame name="CliqueDialog" toplevel="true" enableMouse="true" movable="true" inherits="BasicFrameTemplate" parent="UIParent" frameStrata="DIALOG" hidden="true">
         <Size x="350" y="160"/>
-        <Anchors>
-            <Anchor point="CENTER" relativeTo="CliqueConfig" x="30" y="0"/>
-        </Anchors>
         <Layers>
             <Layer level="OVERLAY">
                 <FontString name="$parentDesc" parentKey="desc" inherits="GameFontHighlightSmallLeftTop">