20 - Inspecting target via party without target
What steps will reproduce the problem?
1. right click party member, click inspect
2. make sure party member is not current target
3. mouseover pawn button and it will not show any information
What is the expected output? What do you see instead?
What version of the product are you using?
1.13.0
Do you have an error log of what happened?
Please provide any additional information below.
Working code below, compares inspect frame text vs targetname, if they're not the same it uses the inspect frames text and the button works properlly
function PawnUI_InspectPawnButton_OnEnter(this)
-- Even if there are no scales, we'll at least display this much.
GameTooltip:ClearLines()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
GameTooltip:AddLine("Pawn", 1, 1, 1, 1)
--Verify who want to inspect
local name, realm = UnitName("target");
if (InspectNameText:GetText() == name) then
InspectName = "playertarget";
else
InspectName = InspectNameText:GetText();
end
-- If the user has at least one scale and at least one type of value is enabled, calculate a total of all equipped items' values.
PawnUI_AddInventoryTotalsToTooltip(GameTooltip, InspectName)
-- Finally, display the tooltip.
GameTooltip:Show()
end
| User | When | Change |
|---|---|---|
| VgerAN | Feb 13, 2012 at 05:03 UTC | Changed status from Accepted to Declined |
| VgerAN | Jul 12, 2010 at 06:11 UTC | Changed type from Defect to Enhancement |
| VgerAN | Mar 03, 2010 at 18:37 UTC | Changed priority from Medium to Low |
| VgerAN | Mar 03, 2010 at 18:37 UTC | Changed status from New to Accepted |
| Tharai | Feb 28, 2010 at 06:48 UTC | Create |
- 1 comment
- 1 comment
Facts
- Last updated
- Feb 13, 2012
- Reported
- Feb 28, 2010
- Status
- Declined - We decided not to take action on this ticket.
- Type
- Enhancement - A change which is intended to better the project in some way
- Priority
- Low - Might slip to a later milestone.
- Votes
- 0
- Reply
- #1
VgerAN Mar 03, 2010 at 18:36 UTC - 0 likesHmm, thanks for the tip. I guess I'll look into this, but for me, if I un-target the other player, the Inspect frame closes. Perhaps that's another mod responsible, if you're seeing different behavior.