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.
