Jump to content

PaintLib - Create good paints the OOP way


Recommended Posts

Posted (edited)

Screenshots plox!

I'll get some in the morning, you can make your own shit you don't need screenshots

EDIT: here's something basic I made for a test

8e53af4ae35b9b4ef57d5a7491c3a8d4.png

Code:

p = new Paint(this);
		DynamicLabel dl = new DynamicLabel(568, 353, "", new Font("Open Sans", Font.PLAIN, 14)) {

			@Override
			public void onUpdate(Paint parent) {
				setText("" + currentTime);
			}
			
		};
		try {
			
			BufferedImage bimage = ImageIO.read(new URL("http://i.imgur.com/2Q1c8gr.png"));
			p.add(new Picture(0, 338, bimage));
			
			bimage = ImageIO.read(new URL("http://i.imgur.com/mUn12cu.png"));
			p.add(new DynamicOrb(27, 365, dl, bimage, 25, 25));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		getBot().getCanvas().addMouseListener(p);
		getBot().getCanvas().addMouseMotionListener(p);
Edited by Bobrocket
  • Like 1
  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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