Jump to content

Name Covering Paint


Apaec

Recommended Posts

I noticed a few people have been using a paint to cover the name of the user of their script (like this:)

  Reveal hidden contents

So here is the code for you to do that.

  Reveal hidden contents

Put that ^^^ outside of your onPaint() block to define a colour in which to paint the rectangle. If you want more unique colours visit THIS PAGE to generate your own colour. To implement the colour its just

  Reveal hidden contents

Then, in your onPaint() block you are going to want to drop this:

  Reveal hidden contents

And there you have it! name covered smile.png

 

Edited by Apaec
  • Like 1
Link to comment
Share on other sites

  On 4/13/2014 at 1:19 AM, oTroll said:

I know this is so offtopic, but do you know how to add a button that hides/shows the paint?

 

 

  On 4/13/2014 at 2:15 AM, Bitter said:

You need two images. The paint, and the button to open/close paint.

After you have that, have a look at this. (Make sure you have the button in the topright of the chatbox. tongue.png

 

http://osbot.org/forum/topic/46251-hide-and-unhiding-paint/

 

 

Yeah that topic seems to cover it well. If you have any other questions about this pm me :)

Link to comment
Share on other sites

Guest Apogee
  On 4/13/2014 at 2:03 PM, oTroll said:

Thanks smile.png

 

 

Absolutely. I've been spam-asking questions all around the forums trying to get answers. So if you have a nooby-ish questions like that, i can probably answer it :P

Link to comment
Share on other sites

Dis is da shitty way to do eht.

 

Betta way is dis

 

Color da_good_good_colla = new Color(178, 163, 132);

 

use sum dat string metrics shit get dat string pixel length

oooooo string pixel length

draw dat nice long rectangle box with dat nice string pixel length plus bout a 2

damnnnnn

now u got dat matching color matchin length block ooo

oooo look how assume did da tellin

Edited by ProbsNotAssumeTb
Link to comment
Share on other sites

  On 4/16/2014 at 12:55 AM, ProbsNotAssumeTb said:

Dis is da shitty way to do eht.

 

Betta way is dis

 

Color da_good_good_colla = new Color(178, 163, 132);

 

use sum dat string metrics shit get dat string pixel length

oooooo string pixel length

draw dat nice long rectangle box with dat nice string pixel length plus bout a 9

damnnnnn

now u got dat matching color matchin length block ooo

oooo look how assume did da tellin

i got cleaned because u dumbfuck

 

- hanks

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...