Quote:
Originally Posted by fozzy71
That was my thought/intention for the future - was to be able to create a theme, and include the new sampled images for BetPot with the theme - but I have a feeling this would be problematic (and very time consuming), in many different ways.
it is easy, just very time consuming. This is why I hand crafted and included only image sets from two default themes - and that took me a while
Ber Nuthin's explanation is pretty much 100%.
BetPot and PokerPad differ in the techniques they use for capturing the numbers - PokerPad uses very effective but hard to understand OCR, checking each pixel and trying to interpret a character from the results. BetPot uses somewhat brutal image comparison on Stars - it gets the screenshot is has of a "6", and just checks if any areas of the call button have a 6 on it, and so on.
There are folders for each table size (0-6) in the "starspics" folder, for the pot size display font and the numbers on the call button (which are also used for raise).
Betpot checks the slider and gets a predominant colour, which it uses to decide which image set to use. (and also in effect checking you are able to act, exiting if no sloder is spotted). This is a hard value and is unforgiving, so it could support many and varied themes - I guess I could change that, but it could lead to wrong theme guessing and therefore errors in bet sizes.
The buttons do have some tolerance in them, all that really matters is the background is fairly close and the font face is identical.
To package a theme for betpot, you would need to run it with some of the test lines uncommented (so as to reveal the predominant slider colour) - then add that case to the slider testing bit in the main code, pointing at a folder containing your screen captures. - I'd separate that in to an ini file (so installers could write to it) if need be.
If you have a browse around the starspics folder it should be clear enough what is needed. Chances are, just images of very different call numbers, and a copy of the correct "pot" folder (either blue or yellow base) - we can't do anything anymore with the pot display, thanks to gx.ini
Yes, it can control everything. position of seats, cards all sorts.