View Feature Request | ||||||||||||||
|
Notes | Sort Options |
By: Vicster0 - 04/16/14 12:44 PM |
Thanks for submitting this feature request! I will look into adding an option for additional information in the future. Just as an FYI, due to the state of the current API, this can only be accomplished with items in your logged-in character's possession. It is currently impossible to get the data required (as far as I know) in order to display this from item links and offline characters. I will post if this changes. |
By: wmrojer - 04/22/14 02:58 AM |
Add 2 global variables IN2_CURRENT_MOUSEOVER_BAG = nil IN2_CURRENT_MOUSEOVER_INDEX = nil Add/change in IN2_ToolTipShowHandler( control, ... ) and function IN2_ToolTipAddGameDataHandler( control, ... ) IN2_CURRENT_MOUSEOVER_BAG = mouseOverControl.dataEntry.data.bagId; IN2_CURRENT_MOUSEOVER_INDEX = mouseOverControl.dataEntry.data.slotIndex; IN2_CURRENT_MOUSEOVER_LINK = GetItemLink(IN2_CURRENT_MOUSEOVER_BAG, IN2_CURRENT_MOUSEOVER_INDEX); Add In function IN2_TooltipUpdateHandler(control, ...)" after location info is added to the tooltip -- Add item Style info local itemStyle _,_,_,_,_,_,itemStyle,_ =GetItemInfo(IN2_CURRENT_MOUSEOVER_BAG,IN2_CURRENT_MOUSEOVER_INDEX) if (itemStyle ~= nil and itemStyle > 0 and itemStyle <= 35) then if( settings.in2ShowStyle ) then control:AddLine(IN2_COLORDEF_OBJECT:Colorize("Item style: "..GetString("SI_ITEMSTYLE",itemStyle))); end end Add to table defaultSettings in function InventoryInsight_Loaded(eventCode, addOnName) in2ShowStyle = true; -- Show racial style in item tooltip Add at end of function InventoryInsight_SlashCommands( cmd ) if ( cmd == "style" ) then if( settings.in2ShowStyle ) then d("[InventoryInsight]:settings.in2ShowStyle[Off]") settings.in2ShowStyle = false; else d("[InventoryInsight]:settings.in2ShowStyle[On]") settings.in2ShowStyle = true; end return end Add somewhere in function IN2_CreateSettingsWindow() LAM:AddCheckbox(LAM_vicstersAddons, "in2ShowStyle", 'Show Item Style', 'Option to enable/disable showing or racial style on ItemTooltips', function() return settings.in2ShowStyle; end, function() if( settings.in2ShowStyle ) then settings.in2ShowStyle = false; else settings.in2ShowStyle = true; end return end ) |
By: Vicster0 - 04/26/14 11:28 AM |
Haha, I must have missed that last message somehow! That's very similar to what I implemented, but I only implemented it for the custom tooltip I added. Let me know what you think. Please find the updates in the changelog for this addon where this feature was implemented. As always, thank you for your support and feedback!! |