Divine Posted June 11, 2013 Share Posted June 11, 2013 (edited) Divine's GUI Paint System What is this paint system, and how can it benefit me?: This is an open source class which you can implement into any script for extremely quick + clean paint. It is not paint, but can be used instead or along with paint. It is a seperate window which displays whatever information you wish to display!How easy is it?: Notice how few lines create and draw the entire window: Media: Does it consume a lot of memory?: Very low memory usage, much smaller than drawing paint on the client screen.Instructions for use: Add the new .java file into your project (GUIPaint.java). Code with few easy methods. Make sure to include the compiled .class inside the script jar, or along with the other script classes. Code Syntax: This code goes in onPaint(Graphics g) inside YOUR script. Always start with this line: GUIPaint.buildFrame("GUI WINDOW TITLE"); Then, you MUST define a category. When you want to set a new category, after the last cell in the previous category, use the same code again. GUIPaint.setCategory("Category Name"); Next, add as many cells as you wish! If you go too high, specify in GUIPaint.buildFrame(name, MAX_CELLS) to increase the maximum amount of cells. The default is 20. Also, addCell supports value types of String, doubles, booleans, longs, and integers. GUIPaint.addCell("NAME OF ITEM (WITHOUT COLON)", "VALUE"); Always End with RefreshPaint(): GUIPaint.RefreshPaint(); To have the Window CLOSE on script exit, add GUIHandler.CloseGUI() inside your onExit(): public void onExit() { GUIPaint.CloseGUI(); } A good example of a full implementation, displaying static text: public void onPaint(Graphics g) { GUIPaint.buildFrame("Clay Miner"); GUIPaint.setCategory("Time"); GUIPaint.addCell("Time Running", "00:00:00"); GUIPaint.setCategory("Clay"); GUIPaint.addCell("Clay", 0); GUIPaint.addCell("Clay / Hour", 0); GUIPaint.setCategory("Experience"); GUIPaint.addCell("Experience", 0); GUIPaint.addCell("Experience / Hour", 0); GUIPaint.RefreshPaint(); } public void onExit() { GUIPaint.CloseGUI(); } Download the GUIPaint class HERE:http://uppit.com/vrkhkxohfryb/GUIPaint.java Edited July 13, 2013 by Divine 6 Link to comment Share on other sites More sharing options...
blackmill Posted June 11, 2013 Share Posted June 11, 2013 The Paint of the Future, looks like toad and darkside are out of a job. Link to comment Share on other sites More sharing options...
rjpurk Posted June 11, 2013 Share Posted June 11, 2013 Very nice! i always hated it when a paint overlapped your chat screen and it didnt have an hide function. whats the point of having a nice paint anyway :P? i like it clean and easy, as long as it works its fine. Link to comment Share on other sites More sharing options...
Divine Posted June 11, 2013 Author Share Posted June 11, 2013 Very nice! i always hated it when a paint overlapped your chat screen and it didnt have an hide function. whats the point of having a nice paint anyway ? i like it clean and easy, as long as it works its fine. Exactly :-). Link to comment Share on other sites More sharing options...
Peter Posted June 11, 2013 Share Posted June 11, 2013 Very nice Divine, won't use though will stick to my classic Paint. Link to comment Share on other sites More sharing options...
Divine Posted June 11, 2013 Author Share Posted June 11, 2013 (edited) Very nice Divine, won't use though will stick to my classic Paint. Soon adding support for custom paint, but inside another window. Basically imagine instead of painting an image with text on it on top of the client, have it paint the image with text inside of a Canvas in a Collapsible, GUI Window. Expect that in Version 2 as an additional type of GUI, coming out in the future. Edited June 11, 2013 by Divine Link to comment Share on other sites More sharing options...
Swift Posted June 11, 2013 Share Posted June 11, 2013 It does use a lot less memory. Because people either download the image from the internet or just use a paint maker. Though if you downloaded the image then saved it to a folder and run it locally it would use a lot less memory. On Topic: Very useful to new scripters. Good Job! Link to comment Share on other sites More sharing options...
BotRS123 Posted June 11, 2013 Share Posted June 11, 2013 This is pretty interesting. I may consider using this. Link to comment Share on other sites More sharing options...
Wizard Posted June 11, 2013 Share Posted June 11, 2013 Not very original, I thought it was a GUI based on built in graphics and not SWING. Still cool tho. Link to comment Share on other sites More sharing options...
Zuluguy Posted June 29, 2013 Share Posted June 29, 2013 I would much prefer something like this on all bots rather than Paints. I use my old 3gb ram laptop to bot on and when using a script that has a fancy paint there is a definite FPS drop which annoys me so much! Any bots I make will definitely use this. Thanks for this! Link to comment Share on other sites More sharing options...
03storic Posted July 6, 2013 Share Posted July 6, 2013 I am bookmarking this for sure. Link to comment Share on other sites More sharing options...
Illumi Posted July 6, 2013 Share Posted July 6, 2013 Thanks for this. Will help me in the future. Link to comment Share on other sites More sharing options...
abibot Posted July 12, 2013 Share Posted July 12, 2013 Thanks! This is working great! Link to comment Share on other sites More sharing options...
Divine Posted July 13, 2013 Author Share Posted July 13, 2013 Version 2.0 Is out. Link to comment Share on other sites More sharing options...
abibot Posted July 13, 2013 Share Posted July 13, 2013 Version 2.0 Is out. I like the categories! Link to comment Share on other sites More sharing options...