Quantcast

Working UI panel created.

Scott King [10-12-15 - 21:44]
Working UI panel created.
Filename
PortraitHealth.toc
PortraitHealthConfig.lua
PortraitHealthConfig.xml
diff --git a/PortraitHealth.toc b/PortraitHealth.toc
index 79ee7ed..924b5c0 100755
--- a/PortraitHealth.toc
+++ b/PortraitHealth.toc
@@ -6,3 +6,5 @@
 ##SavedVariablesPerCharacter: PH_sound, PH_on
 PortraitHealth.lua
 PortraitHealth.xml
+PortraitHealthConfig.lua
+PortraitHealthConfig.xml
diff --git a/PortraitHealthConfig.lua b/PortraitHealthConfig.lua
index f8e6980..9077f23 100644
--- a/PortraitHealthConfig.lua
+++ b/PortraitHealthConfig.lua
@@ -1,7 +1,7 @@
 function PH_ConfigFrame_OnLoad(panel) --arbitrary change for commit
        -- Set the name for the Category for the Panel
        --
-       panel.name = "PH_ConfigFrame " .. GetAddOnMetadata("Portrait Health", "Version");
+       panel.name = "Portrait Health";

        -- When the player clicks okay, run this function.
        --
diff --git a/PortraitHealthConfig.xml b/PortraitHealthConfig.xml
index e8213fa..486a81a 100644
--- a/PortraitHealthConfig.xml
+++ b/PortraitHealthConfig.xml
@@ -4,6 +4,33 @@
                    ..\..\FrameXML\UI.xsd">
 <Script File="PortraitHealthConfig.lua"/>
   <Frame name="PH_ConfigFrame">
+    <Frames>
+
+<!-- Sound Toggle CheckButton -->
+    <CheckButton name="$parentSoundToggle" inherits="InterfaceOptionsCheckButtonTemplate">
+      <Anchors>
+        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="20" y="-24" />
+      </Anchors>
+      <Scripts>
+        <OnLoad>
+          _G[self:GetName().."Text"]:SetText("Play sound when execute phase is reached.");
+        </OnLoad>
+      </Scripts>
+    </CheckButton>
+
+<!-- Display Toggle CheckButton -->
+    <CheckButton name="$parentDisplayToggle" inherits="InterfaceOptionsCheckButtonTemplate">
+      <Anchors>
+        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="20" y="-48" />
+      </Anchors>
+      <Scripts>
+        <OnLoad>
+          _G[self:GetName().."Text"]:SetText("Display the target health.");
+        </OnLoad>
+      </Scripts>
+    </CheckButton>
+
+    </Frames>
     <Scripts>
       <OnLoad>
         PH_ConfigFrame_OnLoad(self);