Kushitious Posted November 25, 2015 Share Posted November 25, 2015 Im trying to add something like this. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted November 25, 2015 Share Posted November 25, 2015 http://osbot.org/api/org/osbot/rs07/api/Mouse.html http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted November 25, 2015 Share Posted November 25, 2015 Im trying to add something like this. Any help is appreciated. Something like this should do it: // Set colour to white g.setColor(Color.white); // Get current mouse position Point mousePoint = getMouse().getPosition(); // Draw a rectangle starting at x-10, y-10, with width and height of 20 g.drawRect(mousePoint.x - 10, mousePoint.y - 10, 20, 20); // Draw a line from top of screen (0), to bottom (500), with mouse x coordinate g.drawLine(mousePoint.x, 0, mousePoint.x, 500); // Draw a line from left of screen (0), to right (800), with mouse y coordinate g.drawLine(0, mousePoint.y, 800, mousePoint.y); Quote Link to comment Share on other sites More sharing options...
Vilius Posted November 25, 2015 Share Posted November 25, 2015 (edited) Im trying to add something like this. Any help is appreciated. Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/ https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough* But do as explv said, its literally the same thing I have or you could have just asked me how to do it Edited November 25, 2015 by Viliuks 2 Quote Link to comment Share on other sites More sharing options...
Kushitious Posted November 25, 2015 Author Share Posted November 25, 2015 Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/ https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough* But do as explv said, its literally the same thing I have or you could have just asked me how to do it I did ask you lmao, you said do getMouse.setColor; or some shit. anyway Thanks for the help guys i got it done. 1 Quote Link to comment Share on other sites More sharing options...
Vilius Posted November 25, 2015 Share Posted November 25, 2015 (edited) I did ask you lmao, you said do getMouse.setColor; or some shit. anyway Thanks for the help guys i got it done. I don't recall you asking me? Eitherway, I don't bite ask me stuff n things EDIT: nvm I remember, but you didn't specify how you want it to be drawn, I thought you meant to set the default osbots cursor ;-; Edited November 25, 2015 by Viliuks 1 Quote Link to comment Share on other sites More sharing options...
Sebastian Posted November 30, 2015 Share Posted November 30, 2015 (edited) Thanks Vilius Edited November 30, 2015 by OSRS Sebastian Quote Link to comment Share on other sites More sharing options...