Quantcast

Update for 7.0

Scott King [07-19-16 - 03:48]
Update for 7.0
Filename
CHANGELOG.txt
PortraitHealth.lua
PortraitHealth.toc
PortraitHealthConfig.lua
PortraitHealthConfig.xml
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index a3318db..bde5b94 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,7 @@
+v4.0
+	- added demon hunter
+	- TOC update for 7.0
+
 v3.0.2
 	- simplified execute phase code

diff --git a/PortraitHealth.lua b/PortraitHealth.lua
index 2693091..fd9b219 100755
--- a/PortraitHealth.lua
+++ b/PortraitHealth.lua
@@ -4,7 +4,7 @@ local classDisplayName, class, classID = UnitClass("player"); -- **
 local PlayerClass = classID;                                  -- this code and variables
 local PlayerClassName = classDisplayName;                     -- could be redundant. fix later.
 local PlayerClassNameIndex = class;                           -- **
-local PH_v = '3.0.2'; -- version number
+local PH_v = '4.0'; -- version number
 local limit1 = 0; -- limiter for sounds
 local executeSound = "Sound\\interface\\AuctionWindowClose.ogg";
 local total = 0 -- timer start
@@ -21,7 +21,7 @@ if PH_on == nil then
 end


-PH_p = {}			-- Class:			    ID:
+PH_p = {}			  -- Class:			  ID:
 PH_p[1] = 20		-- Warrior 			1
 PH_p[2] = 20 		-- Paladin 			2
 PH_p[3] = 20 		-- Hunter 			3
@@ -33,7 +33,7 @@ PH_p[8] = 10 		-- Mage				  8
 PH_p[9] = 25 		-- Warlock			9
 PH_p[10] = 10 	-- Monk				  10
 PH_p[11] = 25 	-- Druid			  11
--- PH_p[12] = 10  -- Demon Hunter ** check UI updates for class IDs if changing **
+PH_p[12] = 10   -- Demon Hunter 12


 -- Welcome message (delay message and check to see if the addon is loaded)
diff --git a/PortraitHealth.toc b/PortraitHealth.toc
index 924b5c0..c78b492 100755
--- a/PortraitHealth.toc
+++ b/PortraitHealth.toc
@@ -1,10 +1,8 @@
-## Interface: 60200
+## Interface: 70000
 ## Title: Portrait Health
 ## Notes: See your target's health percentage in bold text over their portrait.
 ## Author: Cilcraft
 ## Version: 4.0
-##SavedVariablesPerCharacter: PH_sound, PH_on
+## SavedVariablesPerCharacter: PH_sound, PH_on
 PortraitHealth.lua
 PortraitHealth.xml
-PortraitHealthConfig.lua
-PortraitHealthConfig.xml
diff --git a/PortraitHealthConfig.lua b/PortraitHealthConfig.lua
deleted file mode 100644
index 79de7a1..0000000
--- a/PortraitHealthConfig.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-function PH_ConfigFrame_OnLoad(panel)
-       -- Set the name for the Category for the Panel
-       --
-       panel.name = "Portrait Health";
-
-       -- When the player clicks okay, run this function.
-       --
-       panel.okay = function (self) PH_ConfigFrame_Close(); end;
-
-       -- When the player clicks cancel, run this function.
-       --
-       panel.cancel = function (self)  PH_ConfigFrame_CancelOrLoad();  end;
-
-       -- Add the panel to the Interface Options
-       --
-       InterfaceOptions_AddCategory(panel);
-end
diff --git a/PortraitHealthConfig.xml b/PortraitHealthConfig.xml
deleted file mode 100644
index acae76a..0000000
--- a/PortraitHealthConfig.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/"
-                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                   xsi:schemaLocation="http://www.blizzard.com/wow/ui/
-                   ..\..\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);
-      </OnLoad>
-      <OnEvent>
-      </OnEvent>
-    </Scripts>
-  </Frame>
-</Ui>