"custom" player icon in HUD

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

"custom" player icon in HUD

Postby COKE_MAN » Wed Jun 08, 2011 12:44 pm

I want to show icons for only certain players I have tagged. i.e. I don't want every player to have and icon in the HUD. So, I created a custom stat that displays an icon if it is the one I flagged, otherwise, an empty string. This works fine, but in the HUD, it occasionally behaves weird. I place the icon in front of the playername (in the HUD) and about half the time, the player name text overlaps the icon. To test if it was just a spacing thing I created a standalone stat window with only that icon and, again, about half the time the window is sized about half the normal size. It is acting as though the HUD is calculating what the width of that stat should be once and then sizing the ones on the rest of the table to that same size. So what I think I am seeing is: First player processed for the table has no icon, stat width is calculated to width X, all other similar stats for remaining players at table are processed at the same width, some other player has an icon but window doesn't resize for width of stat. I would think if this were the case, though, that I would see it with long v short playernames.

Clicking "Reset" from the PT3 table menu when this happens aligns/resizes everything perfectly. So, I have a workaround, it's just one of those little things that drives me crazy when I can't figure it out.

I'll get some screen shots eventually to illustrate what I am talking about explicitly, but I wanted to at least post this and the stat definition to see if it is indeed a bug or something wrong in the stat def.

Custom Stat:
Value Exp: lookup_from_id(val_icon, 'icondesc')
Format Exp: if(val_icon=5,'{' + format('IMG:Icons/ar_{1}.png:55}',val_icon+1),"")
Width: 40
I have no Format Summary Expression

Note: I have tried "buffering" the icon by wrapping it with characters in the format, but that did not change anything.
Like this: if(val_icon=5,'*{' + format('IMG:Icons/ar_{1}.png:55}',val_icon+1) + '*'," ")
Also, tested extensively last night just using the orig player icon and that displayed correctly always, just had an icon for each player which I don't really want.
COKE_MAN
 
Posts: 125
Joined: Thu Mar 10, 2011 2:44 pm

Re: "custom" player icon in HUD

Postby COKE_MAN » Wed Jun 08, 2011 1:05 pm

Just FYI, I noticed that the Buddy icon/stat appears to try and do the same thing I am doing. I see that it has ' ' in the format summary expression. I'll try that tonight and see if that fixes things. I am still a bit unclear on how the Format Summaries are to be used though.
COKE_MAN
 
Posts: 125
Joined: Thu Mar 10, 2011 2:44 pm

Re: "custom" player icon in HUD

Postby kraada » Wed Jun 08, 2011 1:19 pm

Format Summary expressions are used for the summary line in reports (ie- the bottom row) in the main application - they don't apply to display on the HUD.

Could you export and attach that stat to a support ticket? I can see the value in displaying this but we'll need to do some testing to figure out what needs to happen to fix this and the easiest way to make sure it doesn't get lost is to create a ticket.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests