The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
paintbyhemmy
Posted by: unfinishedpaint | June 16, 2010 @ 2:01pm
Javascript Code
[
Download
]
//Paint public void onRepaint(Graphics g) { long millis = System.currentTimeMillis() - startTime; Mouse m = Bot.getClient().getMouse(); long PizzaPerHour = 0; int startlvl = 0; if (MakePizza > 0) PizzaPerHour = MakePizza * 3600 / (millis / 1000); long hours = millis / (1000 * 60 * 60); millis -= hours * (1000 * 60 * 60); long minutes = millis / (1000 * 60); millis -= minutes * (1000 * 60); long seconds = millis / 1000; //Status g.setColor( new Color(70, 234, 40, 150)); g.fillRect(337, 322, 60, 16); g.setColor(new Color(0, 0, 0)); g.drawRect(337, 322, 60, 16); g.setColor( new Color(70, 234, 40, 200)); g.drawRect(338, 323, 58, 14); g.setColor(new Color(255, 255, 255)); g.setFont(new Font("Comic Sans", Font.BOLD, 12)); g.setColor(Color.black); g.drawString("Status", 341,334); g.setColor( new Color(70, 234, 40, 100)); g.fillRect(337, 322, 60, 8); //Time Ran g.setColor( new Color(70, 234, 40, 150)); g.fillRect(226, 322, 110, 16); g.setColor(new Color(0, 0, 0)); g.drawRect(226, 322, 110, 16); g.setColor( new Color(70, 234, 40, 200)); g.drawRect(227, 323, 108, 14); g.setColor(new Color(255, 255, 255)); g.setFont(new Font("Comic Sans", Font.BOLD, 12)); g.setColor(Color.black); g.drawString( hours +"h " +minutes +"min " +seconds +"sec ", 234,334); g.setColor( new Color(70, 234, 40, 100)); g.fillRect(226, 322, 110, 8); if(m.x >= 337 && m.x < 397 && m.y >= 321 && m.y < 337) { g.setColor( new Color(70, 234, 40, 150)); g.fillRect(337, 175, 182, 147); g.setColor(new Color(0, 0, 0)); g.drawRect(337, 175, 182, 147); g.setColor(new Color(255, 255, 255)); g.setColor(Color.black); g.setFont(new Font("Comic Sans", Font.BOLD, 12)); g.drawString("PizzaMade: " + Integer.toString(PizzaMade) + "", 360, 217); g.drawString("Averaging: " +PizzaPerHour+ " Pizza/Hr", 360, 257); g.drawString("Status: "+status, 360, 317); g.setColor(new Color(255, 255, 255)); g.setColor(Color.white); g.drawString("I2HYCheeseProducer!", 360, 197); g.setColor(Color.red); } Color(white); g.setColor(new Color(255, 255, 255)); }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.57 / 8
44 Votes
http://codebin.yi.org/695
page generated in 0.00 seconds