Page 2 of 3

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 7:59 am
by 4StarGen
I didn't understand well...

Are you saying if the icon which we are trying to displayed is named fish.png, PT4 treat the icon like a 8 character long stat? Because if it this the case I think I have a workaround for that

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 8:13 am
by kraada
It's the entire text I think: {'IMG:Icons/ar_13.png:55}

So yes you can make the filename a bit smaller as well and that would help some.

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 11:30 am
by 4StarGen
I think I have a solution, but I don't understand how the expression works, if you help me I will more than glad to post the solution (if it works)

let's say I want to format a stat, let's say if VPIP > 10 then display the icon (as OP did), how can I do it? I tried to imitate what OP did but I failed... what is the syntax to format to images?

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 11:41 am
by kraada
This piece is what displays an icon; in particular this one displays the icon named ar_13.png in the Icons subfolder:

'{'+format('IMG:Icons/ar_13.png:55}'

Everything else in the screenshot from the first page is related to his particular if/then structure he was using. So something like this should work to show ar_13.png if the player has VPIP > 10 and 0 otherwise:

if( (cnt_vpip / (cnt_hands - cnt_walks)) * 100 > 10, '{'+format('IMG:Icons/ar_13.png:55}', 0)

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 11:47 am
by 4StarGen
Image

Re: Show graphic icon in the HUD

PostPosted: Tue Oct 14, 2014 1:57 pm
by kraada
I lost a ) - this works:

if( (cnt_vpip / (cnt_hands - cnt_walks)) * 100 > 10, '{'+format('IMG:Icons/ar_13.png:55}'), 0)

Re: Show graphic icon in the HUD

PostPosted: Thu Dec 25, 2014 7:24 am
by 4StarGen
I'd like to update users..... now the bug seems to be fixed

Image

Re: Show graphic icon in the HUD

PostPosted: Thu Dec 25, 2014 11:29 am
by WhiteRider
Thanks for confirming - this was addressed in a recent update.

Re: Show graphic icon in the HUD

PostPosted: Tue Apr 18, 2017 12:50 pm
by beninu
4StarGen wrote:I'd like to update users..... now the bug seems to be fixed

Image


I find your use of graphics in PT4 custom HUDs quite interesting. I've done it a lot myself, and among other things made a whole range of graphic "meters" that are much nicer to read than pure digits.I'd like to share experiences with you. Let me know if you are interested (perhaps in a PM). To let you know about a few of the things I've done look at the pics below. These are some of my own HUD's made for PT4 and they work perfectly. I've made a lot more than these, but they show a little of the things included in this.

See pics below. (Sorry about the quality of the pics, but the forum doesn't allow pics that are too large so they are shrunk quite a bit but you get the idea.). These HUD's work fine on standard PokerStars (or any other for that matter):


Here you see some "compare columns" I made (to the far right) to easily compare apponent to my own stats.
Image


Here you see a very simple first attempt to make a simple bars showing aggression frequency, aggression factor, and a graphical rep of M-Zone in the buttom of my HUD. It's developed a lot since then:
Image


Here you see a HUD I used on Stars that shows a few different graphical stats I made. (Don't mind the 3rd party skin - it's still PokerStars):
Image


And here you can also see that I made icons to show playertype like it could be seen in std. HUD before Stars disallowed it. (Now you have to program it yourself.... ;) )
Image



I've been creating these for years now, so I have a hughe library of stats and custom columns as well as stats in my PT4 PostgreSQL database. The above pictures merely scratch the surface. I have also made different stats for practically all the stats in the PostgreSQL table, to make them show up in a more readable manner - the same way it's done with for example the Hands (abbreviated) stat.
I've made capped stats of almost all stats that shows a percentage to make them show 99 in stead of 100% when they are in fact 100% and to show 0x (like 07 instead of 7) so all my numbers are exactly two digits long to make som nice readable HUDs instead of these skewed, ugly HUDs you get when you just pour in the default stats. This way you can make your stats look a lot more professional.

My latest project is to make use of the transparent background to create a HUD that will sit around the players avatar on the table (a little like Jivaro) to make the best use of the space around the player at the table.

Let me know if you are interested in exchanging ideas etc. (send me a PM)

Anyone with an interest in these GFX options in PT4 are welcome to write me.

Re: Show graphic icon in the HUD

PostPosted: Tue Apr 18, 2017 4:27 pm
by 4StarGen
Woah, awesome work, really, gratz for that

highfalutin