idTip icon indicating copy to clipboard operation
idTip copied to clipboard

Display by modifier

Open LordRomzessV opened this issue 4 years ago • 3 comments

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.

LordRomzessV avatar Sep 10 '21 13:09 LordRomzessV

totally agree

fafaraway avatar Sep 10 '21 23:09 fafaraway

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.

Kilrahs avatar Aug 06 '24 02:08 Kilrahs

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

silverwind avatar Aug 06 '24 18:08 silverwind