c0nan Posted June 22, 2016 Share Posted June 22, 2016 (edited) Heyyo, I am trying to use the onPaint() method in my script but it is not showing up for some reason. @Override public void onPaint(Graphics2D g) { timeRan = System.currentTimeMillis() - this.timeBegan; g.drawString(ft(timeRan), 1, 1); currentXp = skills.getExperience(Skill.WOODCUTTING); xpGained = currentXp - beginningXp; g.drawString("" + xpGained, 1, 1); } Is there something wronge with that code? Thanks in advance BR c0nan Edited June 22, 2016 by c0nan Quote Link to comment Share on other sites More sharing options...
Vilius Posted June 22, 2016 Share Posted June 22, 2016 g.drawString("" + xpGained, 1, 1); The numbers in that code mean the x, y position of the paint, you need to change it to somethin like 1,15 to draw it correctly. Because it draws text from the bottom up. 1 Quote Link to comment Share on other sites More sharing options...
c0nan Posted June 22, 2016 Author Share Posted June 22, 2016 g.drawString("" + xpGained, 1, 1); The numbers in that code mean the x, y position of the paint, you need to change it to somethin like 1,15 to draw it correctly. Because it draws text from the bottom up. Oh damn, haha Now I can see it , Thanks for you help! Quote Link to comment Share on other sites More sharing options...
Optimum Scripts Posted June 22, 2016 Share Posted June 22, 2016 Add these at the top: gd.setColor(Color.WHITE); gd.setFont(new Font("Arial", Font.PLAIN, 18)); Quote Link to comment Share on other sites More sharing options...