Jump to content
UBot Underground

How Do I Get Variables To Display In The Header Part?


Recommended Posts

I dont really know how to explain well what I want to do so have made a screenshot.

If its not possible topass the variables to the header part, is there anyway to reduce the blue block?

ubot-headers.jpg

Link to post
Share on other sites

Use a stat monitor.

Example:

ui text box("Total Loops:",#total loops)
ui stat monitor("Total Loops:",#total loops)
ui stat monitor("Loop:",#count)
set(#count,0,"Global")
loop(#total loops) {
    wait(1)
    increment(#count)
}
wait(2)
set(#count,"completed","Global")

I see you have the Developer Edition, you can use the UI HTML Panel to create your ui instead of the default(blue block) and you can make your ui any height you want.

  • Like 1
Link to post
Share on other sites

Use a stat monitor.

Example:

ui text box("Total Loops:",#total loops)
ui stat monitor("Total Loops:",#total loops)
ui stat monitor("Loop:",#count)
set(#count,0,"Global")
loop(#total loops) {
    wait(1)
    increment(#count)
}
wait(2)
set(#count,"completed","Global")

Thanks for that! I have the basics working for me now.

Link to post
Share on other sites

Yes exactly the same.

They count up for a while and then simply stop.

Here is screenshot of code...

I have ui stat monitor at top of the page and the variables are being updated in the loop of the main process.

ubot-not-updating2.jpg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...