promotional bannermobile promotional banner

GemWatch

Displays gem color counts and Meta gem status on the character sheet.

File Details

r53

  • R
  • Jan 14, 2012
  • 56.87 KB
  • 948
  • 4.3.0
  • Retail

File Name

GemWatch-r53.zip

Supported Versions

  • 4.3.0

------------------------------------------------------------------------
r53 | eridius | 2012-01-14 11:47:23 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Update v0.94 comment
------------------------------------------------------------------------
r52 | eridius | 2012-01-14 11:47:17 +0000 (Sat, 14 Jan 2012) | 5 lines
Changed paths:
   M /trunk/GemWatch.lua

Delay first scan until the character frame appears

Instead of scanning when the addon is loaded, wait and scan when the
character frame is shown. We'll also scan earlier if some other event
causes us to (e.g. inventory changes).
------------------------------------------------------------------------
r51 | eridius | 2012-01-14 11:47:11 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Add a bunch of synonyms for the /gw pos and /gw dir values
------------------------------------------------------------------------
r50 | eridius | 2012-01-14 11:47:05 +0000 (Sat, 14 Jan 2012) | 7 lines
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/Localization.enUS.lua

Brand new positioning code

Bring back /gw pos, but this time give it values of upper-right,
upper-left, lower-right, and lower-left.
Add /gw dir, with values of horizontal and vertical.
This allows for positioning the gems in all 4 corners, going either
vertically or horizontally.
------------------------------------------------------------------------
r49 | eridius | 2012-01-14 11:46:59 +0000 (Sat, 14 Jan 2012) | 5 lines
Changed paths:
   M /trunk/GemWatch.lua

Rewrite slash-command message parsing

Tokenize the incoming commands. This allows it to be more lenient with
extra spaces, and it also allows for more flexibility in writing new
commands.
------------------------------------------------------------------------
r48 | eridius | 2012-01-14 11:46:54 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Rename variable GearWatch_GearEmptyChimeraEye
------------------------------------------------------------------------
r47 | eridius | 2012-01-14 11:46:48 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Show per-gem counts in the tooltip
------------------------------------------------------------------------
r46 | eridius | 2012-01-14 11:46:42 +0000 (Sat, 14 Jan 2012) | 4 lines
Changed paths:
   M /trunk/GemWatch.lua

Tweak addon initialization

Initialize the addon at ADDON_LOADED only if we're already logged in.
Otherwise, do so at PLAYER_LOGIN.
------------------------------------------------------------------------
r45 | eridius | 2012-01-14 11:46:37 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/Localization.enUS.lua

Add /gw rescan
------------------------------------------------------------------------
r44 | eridius | 2012-01-14 11:46:31 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/GemWatch.toc

Bump TOC to 40300 and version to 0.94
------------------------------------------------------------------------
r43 | eridius | 2012-01-14 11:46:26 +0000 (Sat, 14 Jan 2012) | 8 lines
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/GemWatch.xml

Finish off Cogwheel support

Teach GemWatch the rest of what it needs to track Cogwheel gems.

Massive cleanup to the frame display code. Frame visibility decisions
are now made in a single place, so GemWatch should no longer be able to
show frames as visible when they shouldn't (e.g. after a /gw toggle).
The visibility code and frame position code is also cleaner.
------------------------------------------------------------------------
r42 | eridius | 2012-01-14 11:46:20 +0000 (Sat, 14 Jan 2012) | 5 lines
Changed paths:
   M /trunk/GemWatch.lua

Don't skip gems in gear with first slot empty

With the recent cleanup to gem scanning, I inadvertently introduced an
issue where leaving the first gem slot empty could cause the rest of the
gems to be skipped. Use pairs() instead of ipairs() to fix that.
------------------------------------------------------------------------
r41 | eridius | 2012-01-14 11:46:15 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Delete unused function GemWatch_ToggleMainFrame()
------------------------------------------------------------------------
r40 | eridius | 2012-01-14 11:46:09 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Fix incorrect name of variable
------------------------------------------------------------------------
r39 | eridius | 2012-01-14 11:46:04 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Delete unused GemWatch_CheckEmptySocket()
------------------------------------------------------------------------
r38 | eridius | 2012-01-14 11:45:58 +0000 (Sat, 14 Jan 2012) | 4 lines
Changed paths:
   M /trunk/GemWatch.lua

Avoid errors if GetInventoryItemGems() returns tables instead of numbers

For some reason at ADDON_LOADED time this function may return tables
instead of the expected numbers. Detect this and break early.
------------------------------------------------------------------------
r37 | eridius | 2012-01-14 11:45:52 +0000 (Sat, 14 Jan 2012) | 5 lines
Changed paths:
   M /trunk/GemWatch.lua

Delete swathes of duplicated code

When testing gems, we don't need to duplicate code for every possible
gem slot. We can use far less code to test all gem slots, and as a bonus
we're no longer hard-coding the knowledge that there can only be 3 gems.
------------------------------------------------------------------------
r36 | eridius | 2012-01-14 11:45:47 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/GemWatch.xml
   M /trunk/Localization.deDE.lua
   M /trunk/Localization.enUS.lua
   M /trunk/Localization.frFR.lua
   M /trunk/Localization.koKR.lua
   M /trunk/Localization.ruRU.lua

Update fully for Chimera's Eyes
------------------------------------------------------------------------
r35 | eridius | 2012-01-14 11:45:41 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Update test for prismatic sockets
------------------------------------------------------------------------
r34 | eridius | 2012-01-14 11:45:36 +0000 (Sat, 14 Jan 2012) | 5 lines
Changed paths:
   M /trunk/GemWatch.lua

Fiddle around with frames

Try to make the frame setting a bit more sane.

Re-set the frames when we scan the inventory.
------------------------------------------------------------------------
r33 | eridius | 2012-01-14 11:45:30 +0000 (Sat, 14 Jan 2012) | 4 lines
Changed paths:
   M /trunk/GemWatch.lua
   M /trunk/Localization.deDE.lua
   M /trunk/Localization.enUS.lua
   M /trunk/Localization.frFR.lua
   M /trunk/Localization.koKR.lua
   M /trunk/Localization.ruRU.lua

Delete alternate positions

The alternate positions (2-6) had issues and were ugly anyway. Just get
rid of them.
------------------------------------------------------------------------
r32 | brandorf | 2011-03-04 13:32:24 +0000 (Fri, 04 Mar 2011) | 1 line
Changed paths:
   M /trunk/GemWatch.lua

Fixed null reference error.
------------------------------------------------------------------------