1
Help Me / Hand timmer button on main page
« on: May 22, 2010, 12:47:44 PM »
I am not up fully on how to program custom events and I am interested in (Using TD ver: 2.5.10) adding/ creating a hand timer button along with a bunch that came with a template that I am using. Every so often we have a player that takes forever and because I use a touch sensitive screen (screen shot attached), I would like to make up an event and button to start the hand timer for 1 minute.
I tried finding something related to this, with no luck unless I was just using the wrong search terms, found some code/event for last buy-in, but not this :-(
I know I can access this hand timer in the controls tab, but it would make a lot more sense if I can do this right on the main screen, buy just adding another button, so that when it is pressed, the hand timer clock window would pop up showing the hand timer counting down from a minute.
Once I have the event properly made, set actions to play a sound at the start like "you have one minute to decide on your move!" and then another event say 15 seconds, to say "You now have 15 seconds left to make a decision", and then one last warning "Time is up, you fold!"
Right now my button control code is as follows:
<nobr>
<tdbutton type="previousround" text="Round -" inheritFont="true">
<tdbutton type="nextround" text="Round +" inheritFont="true">
<tdbutton type="addplayers" text="+ Player" inheritFont="true">
<tdbutton type="buyin" text="Buy-in" inheritFont="true">
<tdbutton type="bustout" text="Bust Out" inheritFont="true">
<tdbutton type="rebuy" text="Rebuy" inheritFont="true">
<tdbutton type="addon" text="Add-on" inheritFont="true">
<tdbutton type="clock" text="Pause" inheritFont="true">
Thanks to members and Corey Copper, this has been a great program. Any help on this would be great.
I tried finding something related to this, with no luck unless I was just using the wrong search terms, found some code/event for last buy-in, but not this :-(
I know I can access this hand timer in the controls tab, but it would make a lot more sense if I can do this right on the main screen, buy just adding another button, so that when it is pressed, the hand timer clock window would pop up showing the hand timer counting down from a minute.
Once I have the event properly made, set actions to play a sound at the start like "you have one minute to decide on your move!" and then another event say 15 seconds, to say "You now have 15 seconds left to make a decision", and then one last warning "Time is up, you fold!"
Right now my button control code is as follows:
<nobr>
<tdbutton type="previousround" text="Round -" inheritFont="true">
<tdbutton type="nextround" text="Round +" inheritFont="true">
<tdbutton type="addplayers" text="+ Player" inheritFont="true">
<tdbutton type="buyin" text="Buy-in" inheritFont="true">
<tdbutton type="bustout" text="Bust Out" inheritFont="true">
<tdbutton type="rebuy" text="Rebuy" inheritFont="true">
<tdbutton type="addon" text="Add-on" inheritFont="true">
<tdbutton type="clock" text="Pause" inheritFont="true">
Thanks to members and Corey Copper, this has been a great program. Any help on this would be great.