Jump to content
UBot Underground

Recommended Posts

Hey Guys,

 

I got a question about the ui html stat monitor.  Tried searching the forum for a while but couldn't come up with an answer...  :(

 

What I am trying to do is this.

 

I have a stat monitor that is updated three times.

 

The first time it updates, it is signing up to an account.

 

I would like the color of the font to be blue while creating an account.

 

Next it get's updated either if successful or failed.

 

For successful, I would like the font to be green.  Red if unsuccessful.

 

Can anybody point me in the right direction please...

 

Ex:

 

Stat monitor:

ui stat monitor("Thread 1:", #stat_thread1)

 

When signing up:

set(#stat_thread1, "Signing up to {#url1}", "Global")

Should be in blue Text in UI HTML stat monitor

 

 

If successful:

set(#stat_thread1, "Sign Up Successful", "Global")

Should be in green Text in UI HTML stat monitor

 

 

If Failed:

set(#stat_thread1, "Sign-Up Failed", "Global")

Should be in red Text in UI HTML stat monitor

 

Notice the above code is for regular ui stat monitor, but I can't figure out how to do this in ui html panel.

 

Please help me guys.  Been pulling my hair out for EVER on this one.

TIA,

Justin

Link to post
Share on other sites

It's the color of text inside the stat monitor (i.e.- the set) needs to change based on what the variable is, as the variable is changed.

 

Hope that makes sense...

Link to post
Share on other sites
set(#checking, "<font color=\"green\">Hello</font>", "Global")

wait(1)

set(#checking, "<font color=\"red\">Hello</font>", "Global")

wait(1)

set(#checking, "<font color=\"blue\">Hello</font>", "Global")

wait(1)

 
  • Like 1
Link to post
Share on other sites
  • 3 weeks later...

Accordingly, in the UI panel you would then have something like this:

 

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-Type\" content=\"text/html; charset=utf-8\" />
<title>your title</title>
</head>
<body>
    <div variable=\"#stat_thread1\" fillwith=\"innerhtml\"> </div>
  </body>
</html>", 40)

 

You have to understand that the UI Html panel is not updated automatically, you have to set the values of #stat_thread1 yourself when you want.

 

Hope that this adds something to Abbas' help. (notice that #checking and #stat_thread1 are used the same)

 

jimb

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...