Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display the tooltip additions for relevant items in the vendor UI #604

Open
rdw-software opened this issue Aug 8, 2023 · 0 comments
Open

Comments

@rdw-software
Copy link
Member

Example: Salvage crates (from island expeditions)

It might be useful to see the progress here, but the tooltip is only shown once a box is in the inventory.

Fixing this is easy in theory:

-- Tooltip additions for units
-- (snip)

-- TODO: Display additions for all relevant items here
local function onTooltipSetItem(tooltip, data)
	print("Item ID: " .. data.id)
	-- Add attempts for item here, if tracked/enabled/not found etc.
end
_G.TooltipDataProcessor.AddTooltipPostCall(_G.Enum.TooltipDataType.Unit, onTooltipSetUnit) -- Existing tooltip hook
_G.TooltipDataProcessor.AddTooltipPostCall(_G.Enum.TooltipDataType.Item, onTooltipSetItem)

The primary issue is that the tooltip code is a bit messy and also untested, so just copy/pasting won't do.


Split off from #601 since it's out of scope (needs some minor refactoring, probably).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Soon™
Development

No branches or pull requests

1 participant