Jump to content
UBot Underground

Recommended Posts

Hello everyone.

While i was searching for some things to style my bots i found this very helpful HTML tag (never used before) here: http://www.w3schools.com/tags/tag_meter.asp

 

I guess for many of you, this is not something new, but just in case someone want to display simple progress bar in the bot without much of headache, here is a code too:

set(#result,0,"Global")
set(#nmb,100,"Global")
loop(#nmb) {
    increment(#result)
    wait(0.2)
}
ui stat monitor("<p>Progress: {#result} accouts checked
<meter style=\"width:100%;height:14px;\" value=\"{#result}\" min=\"0\" max=\"{#nmb}\"></meter>","")

Hope it will help some newbie like me :) Good luck

  • Like 1
Link to post
Share on other sites

Nice.. thanks for sharing.

 

Here's another:

set(#result,0,"Global")
set(#nmb,100,"Global")
loop(#nmb) {
    increment(#result)
    wait(0.2)
}
ui stat monitor("Downloading progress:
<progress value=\"{#result}\" max=\"100\">
</progress>","")
Unfortunately, this doesnt work well on uihtml.
Link to post
Share on other sites

style your progress bar via css and webkit.

 

I have lots of different style sheets for the ui stat monitor if you like.

 

progress[value]::-webkit-progress-bar { background-color: #eee; border-radius: 2px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset; }

  • Like 1
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...