Knowing 2.2.1

Change log

v2.2.1, 01/25/2011 - Cleaned up unnecessary code. - Added in filter for blocking out events coming from uninvolved players - Should greatly improve performance for battlegrounds and raids.

v2.2, 01/23/2011 - Completely reworked cooldown algorithm for significantly greater accuracy and simplification. - Transformed three conditional statements into one. - Spent countless hours tweaking conditional to display correctly. - Added offset multiplier to show abilities' like Mutilate cooldowns more accurately - FINALLY. - Cleaned up unnecessary variables.

v2.1.4, 11/03/2010 - Did my best to fix incorrect bars showing up for Druids - Thanks Ryoga303! - Changed number associated with bear and cat forms to a variable. - Consolidated shapeshifting code into a function and added call to this when spells are updated.

v2.1.3, 11/01/2010 - Added red overlay for Kick to alert when spells are being cast by your target. - Corrected problem with combo points not hiding when none are present. - Removed comments to clean things up a bit.

v2.1.2, 10/20/2010 - I can haz update? Cats get some love again: - Fixed problem with actionbar not displaying correctly - cat form was stance 3, now stance 2, apparently. - Fixed problem with incorrect cooldowns showing, as a separate conditional was looking for stance 3, rather than 2.

v2.1.1, 10/19/2010 - Figured out how to hide main cooldown animation so there isn't this dual cooldown craziness. - Yet AGAIN fixed sporadic cooldown flash/gleam. - Fixed problem with cooldowns ending early, when energy was not actually available - Was specifically an issue with Mutilate after using Slice and Dice. - Re-corrected problem with cooldown animations showing on empty slots when icons were moved.

v2.1, 10/12/2010 - Made several changes for 4.01 compatibility: - Replaced all instances of GetSpellName() with GetSpellBookItemName(). - Replaced all instances of getglobal() with _G[ ]. - Replaced "UNIT_ENERGY" event with "UNIT_POWER". - Commented out both "KnowingFrame:Show()" and "_G[bonusPrefix.."KnowingButton"..i].cooldown:Hide()" - Will now have dual cooldown animations for the time being. - Added InCombat variable and added conditionals to many items in interface options for when "Okay" button is clicked. - Force-set most interface option components immediately after leaving combat. - Added conditionals to health/combo bars when addon is loaded. - Fixed "Lock in Place" option - Looks like the variable name didn't get changed in the XML when I added the "knowing" prefix to all of them.

v2.0.3, 09/24/2010 - Re-fixed pesky bug, where stealth (not vanish), button "gleams" with every health tick or target switch.

v2.0.2, 09/23/2010 - Fixed problem with interface options not saving properly. - Converted all saved variables to have unique "knowing" prefix. - Fixed cooldown animation on buttons that don't contain a spell/macro/item that would "gleam" with every tick. - Added in missing semicolons.

v2.0.1, 09/21/2010 - Fixed bug with vanish button geeking out while stealthed.

v2.0, 09/18/2010 - Created new status - Added player's health bar. - Added target's health bar. - Added combo points bar. - Inserted border around health bars and combo points. - Made changes to settings: - Added "Show my Health Bar" checkbox. - Added "Show Combo Points Bar" checkbox. - Added "Show Target's Health Bar" checkbox. - Removed unnecessary wording from first two checkboxes. - Added dynamic adjustment of Knowing height: - Set height of Knowing to automatically adjust height if no status bars are showing, and back again if any of them are showing. - Fix most cooldown problems altogether by only adjusting cooldowns that use energy as their power type.

v1.4.5, 06/16/2010 - Added scale and opacity sliders - thanks minniard!

v1.4.4, 02/17/2010 - Moved actions that loop through entire spellbook for textures into their own function - Seems to free up a HECK of a lot of memory, and should dramatically speed things up - Thanks again dali71 for getting me going on this!! - Began using the more common two-decimal version number - Should work out better in the long run for sorting.

v1.43, 12/24/2009 - Added "Lock in Place" option - Thanks dali71!

v1.42, 12/15/2009 - Finally figured out and fixed problem with stealth button and "rapid fire" cooldown - Was due to Dodge and Stealth (While stealthed) sharing same icon texture.

v1.41, 12/08/2009 - Confirmed Knowing works in 3.3 and updated TOC file accordingly.

v1.4, 11/16/2009 - Commented out curTime (Current Time) variable and replaced all other instances with GetTime() in an attempt to have better accuracy of cooldowns. - Added Interface Options. - Added "Show on this Character" checkbox, allowing any class to show/hide Knowing, with limited functionality for non-Rogues/Cats. - Added "Realign Center" checkbox. - Hid cooldown, bonus bar and bonus bar cooldowns from any character that's not a Rogue/Druid. - Added ClearAllPoints() functionality before centering Knowing Frame - This finally fixes problem with not being able to center at the top of the screen. - Simplified Knowing for Druids to either on or off, but allowed for Bear and Moonkin Forms (Again, limited functionality) This finally allows shapeshifting to Cat Form while in combat.

v1.32, 10/08/2009 - Set KnowingFrame to hide when UI is hidden (ALT+Z) by setting its parent to UIParent. This also required frameLevels to be upped by one. - Changed all references to "this" in the <Scripts> tags to "self", for consistency, and being told "this" is deprecated. - Scrapped "snap to center" functionality altogether, as it was not working in all circumstances, and because frames aren't able to RegisterForClicks.

v1.31, 10/03/2009 - Fixed frame levels so they no longer overlap bags and main menu. - Changed positioning of bonus cooldowns to be relative to bonus buttons, and not standard buttons.

v1.3, 09/29/2009 - Druid Cat Form compatibility added: - Added Druid conditionals. - Added barNormal and barBonus variables. - Corrected slot numbers for bonus bars (stealth and cat form) from 1-12 to 73-84. - Added slotShift variable to account for changing to bonus bar. - Simplified table initialization into a for loop so there aren't 84 zeros written out for each table. - Began simplifying changelog henceforth.

v1.2, 09/21/2009 - Stealth Mode: - Added bonus buttons to lines 140-259 of XML file. - Added bonus cooldowns to lines 380-499 of XML file. - Added state drivers to lines 10-14 of LUA file. - Added bonus cooldown code to lines 29-34 of LUA file. - Initialized bonus string prefix variable to lines 57 and 58. - Added bonus string prefix to cooldowns on lines 81, 86, 90 and 96.

v1.11, 09/16/2009 - Added "and power - lastPower[i] > powReg" on line 65 of LUA file to check if power specifically jumped up higher than regeneration rate. Added this due to rapid cooldown restarting, even when dead. - Finally updated version number in TOC file. - Also added my name to to Author field in TOC file. - Began referencing specific files also, if you didn't notice.

v1.1, 09/15/2009 - Moved "end" from line 46 to line 80 to skip lines 45-79, thereby speeding things up significantly. - Removed isFunnel, powerType, castTime, minRange, and maxRange from GetSpellInfo function on line 45, as these weren't being used at all. - Added else statement and zero-duration cooldown animation to lines 80 and 81 to remove cooldowns from empty slots that previously had an action with a cooldown. - Moved lastStart declaration from line 76 to line 82, directly below spells[texture] conditional so zero-duration cooldown mentioned above doesn't rapidly fire. - Moved GetActionCooldown declaration on line 53 to line 44, directly above spells[texture] conditional so lastStart declaration above can access start variable. - Added coolDur variable adjustment to lines 70 and 71 to change cooldown duration after action's been moved.

v1.01, 09/14/2009 - Added else statement on lines 49-51 to prevent powDef variable on line 58 from erring in the event that reqPow is nil.


Uploaded on
Jan 26, 2011
Game version
  • 4.0.3a
10.5 KiB