silverwind / idTip

WoW Addon: Adds IDs to the ingame tooltips
BSD 2-Clause "Simplified" License
41 stars 32 forks source link

Display by modifier #72

Open LordRomzessV opened 3 years ago

LordRomzessV commented 3 years ago

It seems to me that most of the id does not carry information most of the time, but they are most often needed to check a specific spell / object / icon. Recently, in addition to the ItemID, I have noticed an IconID, which in turn sometimes overlaps the tooltip text. Why don't we make it so that the ID is displayed only when the key is pressed?

Probably, this function will also require a settings module for the modification, but here it is customary to write sentences - so I wrote it too.

fafaraway commented 3 years ago

totally agree

Kilrahs commented 3 months ago

What I did to add this was...

at line 115 in idTip.lua add one of the following

-- Check if the Alt key is pressed
if not IsAltKeyDown() then return end
-- Check if the Control (Ctrl) key is pressed
if not IsControlKeyDown() then return end
-- Check if the Shift key is pressed
if not IsShiftKeyDown() then return end
-- Check if any modifier key (Alt, Control, or Shift) is pressed
if not (IsAltKeyDown() or IsControlKeyDown() or IsShiftKeyDown()) then return end

You would need to redo this if you update the addon.

silverwind commented 3 months ago

Could be made an option now that we have an options interface, default should be to show without modifier.