Thread: How to change HP overlay font size?

Results 1 to 9 of 9
  1. #1 How to change HP overlay font size? 
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    Real quick. Could a mod delete the same thread like this in this link please? Accidentally posted in RS2 Server.
    https://www.rune-server.ee/runescape...ml#post5566247


    How can I turn this font size

    Attached image


    To this one? Where exactly would I be looking for it?

    Attached image

    I want to be able to change the font size for the names and the hp numbers.

    I've only been able to find about positioning the name, numbers, and box. as well as it's background transparency. I can't find anything on changing it's font.
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  2. #2  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    Hard to tell without you telling us any information at all about your source etc...
    Unless it has its own class I'm going to say somewhere in Client.java


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  3. #3  
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    Quote Originally Posted by A Mage View Post
    Hard to tell without you telling us any information at all about your source etc...
    Unless it has its own class I'm going to say somewhere in Client.java
    I'm using Ruse v2
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2018
    Posts
    121
    Thanks given
    82
    Thanks received
    55
    Rep Power
    0
    Quote Originally Posted by Versatile View Post
    I'm using Ruse v2
    if you look where it is drawing search like combat box or hpoverlay and then it will say like BoldFont change to small font
    Reply With Quote  
     

  5. #5  
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    Quote Originally Posted by Zac343 View Post
    if you look where it is drawing search like combat box or hpoverlay and then it will say like BoldFont change to small font
    This is what I have

    Code:
    public void drawCombatBox(int xPos, int yPos, int width, int height, int currentHp, int maxHp, int hpBarXPps) {		double percentOfHpLeft = (((double) currentHp / (double) maxHp) * 100);
    		double percentOfHpLost = 100-percentOfHpLeft;
    		int hpBarYPos = yPos + height - 20;
    		TextDrawingArea.drawAlphaFilledPixels(xPos, yPos, width, height, 000000, 80);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps + (int) percentOfHpLeft, 11356749, (int) percentOfHpLost);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps/*-(int)percentOfHpLost*/, 46336, (int) percentOfHpLeft);
    		newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
    	}
    i don't see how boldfont would work here.
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Versatile View Post
    This is what I have

    Code:
    public void drawCombatBox(int xPos, int yPos, int width, int height, int currentHp, int maxHp, int hpBarXPps) {		double percentOfHpLeft = (((double) currentHp / (double) maxHp) * 100);
    		double percentOfHpLost = 100-percentOfHpLeft;
    		int hpBarYPos = yPos + height - 20;
    		TextDrawingArea.drawAlphaFilledPixels(xPos, yPos, width, height, 000000, 80);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps + (int) percentOfHpLeft, 11356749, (int) percentOfHpLost);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps/*-(int)percentOfHpLost*/, 46336, (int) percentOfHpLeft);
    		newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
    	}
    i don't see how boldfont would work here.
    Code:
    newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
    Try to play with numbers: 16777215 or look up for new font for it

    edit: If you look for the newboldfont method you might figure out how it works
    Reply With Quote  
     

  7. #7  
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    Quote Originally Posted by replicant View Post
    Code:
    newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
    Try to play with numbers: 16777215 or look up for new font for it

    edit: If you look for the newboldfont method you might figure out how it works
    That's for the hexadecimal colours

    Code:
    void org.client.graphics.fonts.RSFontSystem.drawCenteredString(String string, int drawX, int drawY, int color, int shadow)
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  8. #8  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    Quote Originally Posted by Versatile View Post
    This is what I have

    Code:
    public void drawCombatBox(int xPos, int yPos, int width, int height, int currentHp, int maxHp, int hpBarXPps) {		double percentOfHpLeft = (((double) currentHp / (double) maxHp) * 100);
    		double percentOfHpLost = 100-percentOfHpLeft;
    		int hpBarYPos = yPos + height - 20;
    		TextDrawingArea.drawAlphaFilledPixels(xPos, yPos, width, height, 000000, 80);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps + (int) percentOfHpLeft, 11356749, (int) percentOfHpLost);
    		DrawingArea.drawPixels(15, hpBarYPos, hpBarXPps/*-(int)percentOfHpLost*/, 46336, (int) percentOfHpLeft);
    		newBoldFont.drawCenteredString(currentHp + "/" + maxHp, xPos + (width/2), hpBarYPos + 13,16777215,0);
    	}
    i don't see how boldfont would work here.
    Change newBoldFont to newSmallFont, that'll change the health text. You just need to find where its drawing the mob name now then change that to newRegularFont (looks like its using newSmallFont at the moment)


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    Quote Originally Posted by A Mage View Post
    Change newBoltFont to newSmallFont, that'll change the health text. You just need to find where its drawing the mob name now then change that to newRegularFont (looks like its using newSmallFont at the moment)
    They told me Jesus wasn't real. Guess they were wrong. Thanks Dad!
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How to change HP overlay font?
    By Versatile in forum Help
    Replies: 0
    Last Post: 08-22-2018, 05:39 PM
  2. How to change the Text/font size (+/-)
    By Inenting in forum Help
    Replies: 3
    Last Post: 07-31-2013, 11:43 PM
  3. How to change client font (Renamed)
    By Ecstasy in forum Help
    Replies: 1
    Last Post: 10-24-2009, 11:56 PM
  4. how to change the font color
    By Fearless in forum Forum Related Help
    Replies: 8
    Last Post: 07-12-2009, 06:14 AM
  5. [REQ]How to change font / add fonts?
    By alongu in forum Tutorials
    Replies: 3
    Last Post: 01-01-2008, 04:21 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •