SmileyBot 13 Posted April 13, 2013 Report Share Posted April 13, 2013 Can Someone please tell me how to put 2 variables in one statement for a ui HTML panel?<div variable="#bot_status" "#countdown_seconds30" fillwith="innertext">Status</div> The above should show: Paused For 30 Seconds : 30 (countdown) This script works when i remove the ui HTML panel Cheers ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <meta http-equiv=\"Content-Language\" content=\"en-us\" /> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title></title> </head> <body> <table style=\"width: 950px; height: 49px; font-size: medium; color: #FFFF00; background-color: #0000FF;\" align=\"center\"> <tr style=\"font-family: \'Comic Sans MS\'; font-size: x-small;\"> <td style=\"height: 25px; text-align: center; font-size: small; \" valign=\"top\" rowspan=\"3\"> Status <div variable=\"#bot_status\" \"#countdown_seconds30\" fillwith=\"innertext\">Status</div> </td> </tr> </table> </body> </html>", 100.) ui stat monitor("", "{#bot_status} : {#countdown_seconds30}") set(#bot_status, "Paused For 30 Seconds", "Global") COUNTDOWN SECONDS30() define COUNTDOWN SECONDS30 { set(#countdown_seconds30, 30, "Global") loop while($comparison(#countdown_seconds30, ">", 0)) { decrement(#countdown_seconds30) wait(1) } set(#countdown_seconds30, $nothing, "Global") } Quote Link to post Share on other sites
Legend 181 Posted April 13, 2013 Report Share Posted April 13, 2013 Here's one way... ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"Content-Language\" content=\"en-us\" /><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title></title></head><body><table style=\"width: 950px; height: 49px; font-size: medium; color: #FFFF00; background-color: #0000FF;\" align=\"center\"><tr style=\"font-family: \'Comic Sans MS\'; font-size: x-small;\"> <td width=\"168\" rowspan=\"3\" valign=\"top\" style=\"height: 25px; text-align: center; font-size: small; \"><div variable=\"#bot_status\" fillwith=\"innertext\"> <div align=\"right\"></div> </div></td> <td width=\"22\" rowspan=\"3\" valign=\"top\" style=\"height: 25px; text-align: center; font-size: small; \"><div align=\"left\"></div> <div variable=\"#countdown_seconds30\" fillwith=\"innertext\"></td><td width=\"744\" rowspan=\"3\" valign=\"top\" style=\"height: 25px; text-align: center; font-size: small; \"></td></tr></table></body></html>", 100.)ui stat monitor("", "{#bot_status} : {#countdown_seconds30}")set(#bot_status, "Paused For 30 Seconds :", "Global")COUNTDOWN SECONDS30()define COUNTDOWN SECONDS30 { set(#countdown_seconds30, 30, "Global") loop while($comparison(#countdown_seconds30, ">", 0)) { decrement(#countdown_seconds30) wait(1) } set(#countdown_seconds30, $nothing, "Global")} Quote Link to post Share on other sites
SmileyBot 13 Posted April 13, 2013 Author Report Share Posted April 13, 2013 Thanks for that, but i was really wanting the outcome to only use one cell Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.