From c07a691aeb197cf196e439a4093ea32714227807 Mon Sep 17 00:00:00 2001 From: Scott King Date: Mon, 18 Jul 2016 21:48:56 -0600 Subject: [PATCH 1/3] Update for 7.0 --- CHANGELOG.txt | 4 ++++ PortraitHealth.lua | 6 +++--- PortraitHealth.toc | 6 ++---- PortraitHealthConfig.lua | 17 ----------------- PortraitHealthConfig.xml | 44 -------------------------------------------- 5 files changed, 9 insertions(+), 68 deletions(-) delete mode 100644 PortraitHealthConfig.lua delete mode 100644 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 @@ - -