Thread: [Kronos] - text in interface overlay

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [Kronos] - text in interface overlay 
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    I am trying to change the text in the interface overlay but can't find the child id
    How it's original :
    Attached image

    How it is now:
    Attached image

    the code:


    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
            player.getPacketSender().sendString(OVERLAY, 5, "text1");
    Now I want the text under "text1" and the "0" but can't find the child id. any idea?
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    You could try this and see if it become a new line.
    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\ntext2");


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by arch337 View Post
    You could try this and see if it become a new line.
    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\ntext2");
    Tried it, but the text2 just gets next to the text1 and not under
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Lumbo View Post
    Tried it, but the text2 just gets next to the text1 and not under
    Try add more \n like

    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\n\ntext2");
    even
    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\n\n\ntext2");


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by arch337 View Post
    Try add more \n like

    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\n\ntext2");
    even
    Code:
    player.getPacketSender().sendString(OVERLAY, 5, "text1\n\n\ntext2");
    Nope, added even more '\n' but just the same output 'text1text2'
    Reply With Quote  
     

  6. #6  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Lumbo View Post
    Nope, added even more '\n' but just the same output 'text1text2'
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
            player.getPacketSender().sendString(OVERLAY, 5, "text1");
    player.getPacketSender().sendString(OVERLAY + 1, 5, "text2");
    And if that do not wwork:
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
            player.getPacketSender().sendString(OVERLAY, 5, "text1\\ntext2");


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by arch337 View Post
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
            player.getPacketSender().sendString(OVERLAY, 5, "text1");
    player.getPacketSender().sendString(OVERLAY + 1, 5, "text2");
    And if that do not wwork:
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
            player.getPacketSender().sendString(OVERLAY, 5, "text1\\ntext2");
    First 1 does only show 'text1' , and the second does output 'text1\ntext2' ;(
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    bump
    Reply With Quote  
     

  9. #9  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Lumbo View Post
    bump
    You could try do something like:
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
    for(int i = 136; i < OVERLAY + 10; i++)
            player.getPacketSender().sendString(i, 5, "text " + (i - 136));
    And if nothing show up on any other string then there is something else that overwrite on the interface.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    May 2019
    Posts
    36
    Thanks given
    12
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by arch337 View Post
    You could try do something like:
    Code:
    private static final int OVERLAY = 139;
            player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY);
    for(int i = 136; i < OVERLAY + 10; i++)
            player.getPacketSender().sendString(i, 5, "text " + (i - 136));
    And if nothing show up on any other string then there is something else that overwrite on the interface.
    This does crash, I'll try with another interface..... did really want to have this one...Isn't there a way to find it out? in Cache or something?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 2
    Last Post: 01-24-2020, 01:43 PM
  2. Replies: 5
    Last Post: 03-22-2016, 05:16 PM
  3. [718]Clickable text in interface
    By Coinflipper in forum Help
    Replies: 7
    Last Post: 06-25-2014, 11:07 AM
  4. Change text in interface? [667]
    By alon in forum Help
    Replies: 3
    Last Post: 02-09-2014, 07:10 PM
  5. Weird text in interface
    By Glenn in forum Help
    Replies: 4
    Last Post: 08-03-2011, 09:34 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •