Thread: Repositioning Scrollbar

Results 1 to 7 of 7
  1. #1 Repositioning Scrollbar 
    Quality over quantity


    Join Date
    Dec 2011
    Age
    25
    Posts
    1,320
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Is it possible to re-position and/or remove the scroll bar on an existing cache packed interface? If so, how?

    The actual bar but not the arrow will show up on the interface in Lin's interface editor, but not the arrow keys. There's also no sprites that place the bar there?
    I tried looking in client.java but couldn't figure it out :l

    I want to remove the scrollbar from my quest tab interface and re-position it in my bank without having to create a whole new interface.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Nov 2013
    Posts
    270
    Thanks given
    107
    Thanks received
    76
    Rep Power
    0
    You can overwrite specified child ids.
    Reply With Quote  
     

  3. #3  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    25
    Posts
    1,320
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Quote Originally Posted by ub3r View Post
    You can overwrite specified child ids.
    How am I supposed to find out the ID for it? >.> There's no sprite for it when I open the interface in Lin's
    Reply With Quote  
     

  4. #4  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,108
    Thanks given
    2,402
    Thanks received
    2,825
    Rep Power
    4604
    You don't have anything like this in your client by chance?

    Code:
    for (int id = 0; id < 6; id++) {
    				scrollBar[id] = new Sprite(mediaArchive, "scrollbar", id);
    			}
    Reply With Quote  
     

  5. #5  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    25
    Posts
    1,320
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Quote Originally Posted by Jason View Post
    You don't have anything like this in your client by chance?

    Code:
    for (int id = 0; id < 6; id++) {
    				scrollBar[id] = new Sprite(mediaArchive, "scrollbar", id);
    			}
    they are all called seperately

    Code:
    			scrollBar1 = new Sprite(streamLoader_2, "scrollbar", 0);
    			scrollBar2 = new Sprite(streamLoader_2, "scrollbar", 1);
    			scrollBar3 = new Sprite(streamLoader_2, "scrollbar", 2);
    			scrollBar4 = new Sprite(streamLoader_2, "scrollbar", 3);
    here's the method drawing the type of scrollbar used in my quest and bank interface

    Code:
    public void drawScrollbar1(int j, int k, int l, int i1, int j1) {
    		scrollBar1.drawSprite(i1, l);
    		scrollBar2.drawSprite(i1, (l + j) - 16);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x000001, 16);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x3d3426, 15);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x342d21, 13);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x2e281d, 11);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x29241b, 10);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x252019, 9);
    		DrawingArea.drawPixels(j - 32, l + 16, i1, 0x000001, 1);
    		int k1 = ((j - 32) * j) / j1;
    		if(k1 < 8)
    			k1 = 8;
    		int l1 = ((j - 32 - k1) * k) / (j1 - j);
    		DrawingArea.drawPixels(k1, l + 16 + l1, i1, barFillColor, 16);
    		DrawingArea.method341(l + 16 + l1, 0x000001, k1, i1);
    		DrawingArea.method341(l + 16 + l1, 0x817051, k1, i1 + 1);
    		DrawingArea.method341(l + 16 + l1, 0x73654a, k1, i1 + 2);
    		DrawingArea.method341(l + 16 + l1, 0x6a5c43, k1, i1 + 3);
    		DrawingArea.method341(l + 16 + l1, 0x6a5c43, k1, i1 + 4);
    		DrawingArea.method341(l + 16 + l1, 0x655841, k1, i1 + 5);
    		DrawingArea.method341(l + 16 + l1, 0x655841, k1, i1 + 6);
    		DrawingArea.method341(l + 16 + l1, 0x61553e, k1, i1 + 7);
    		DrawingArea.method341(l + 16 + l1, 0x61553e, k1, i1 + 8);
    		DrawingArea.method341(l + 16 + l1, 0x5d513c, k1, i1 + 9);
    		DrawingArea.method341(l + 16 + l1, 0x5d513c, k1, i1 + 10);
    		DrawingArea.method341(l + 16 + l1, 0x594e3a, k1, i1 + 11);
    		DrawingArea.method341(l + 16 + l1, 0x594e3a, k1, i1 + 12);
    		DrawingArea.method341(l + 16 + l1, 0x514635, k1, i1 + 13);
    		DrawingArea.method341(l + 16 + l1, 0x4b4131, k1, i1 + 14);
    		DrawingArea.method339(l + 16 + l1, 0x000001, 15, i1);
    		DrawingArea.method339(l + 17 + l1, 0x000001, 15, i1);
    		DrawingArea.method339(l + 17 + l1, 0x655841, 14, i1);
    		DrawingArea.method339(l + 17 + l1, 0x6a5c43, 13, i1);
    		DrawingArea.method339(l + 17 + l1, 0x6d5f48, 11, i1);
    		DrawingArea.method339(l + 17 + l1, 0x73654a, 10, i1);
    		DrawingArea.method339(l + 17 + l1, 0x76684b, 7, i1);
    		DrawingArea.method339(l + 17 + l1, 0x7b6a4d, 5, i1);
    		DrawingArea.method339(l + 17 + l1, 0x7e6e50, 4, i1);
    		DrawingArea.method339(l + 17 + l1, 0x817051, 3, i1);
    		DrawingArea.method339(l + 17 + l1, 0x000001, 2, i1);
    		DrawingArea.method339(l + 18 + l1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 18 + l1, 0x564b38, 15, i1);
    		DrawingArea.method339(l + 18 + l1, 0x5d513c, 14, i1);
    		DrawingArea.method339(l + 18 + l1, 0x625640, 11, i1);
    		DrawingArea.method339(l + 18 + l1, 0x655841, 10, i1);
    		DrawingArea.method339(l + 18 + l1, 0x6a5c43, 7, i1);
    		DrawingArea.method339(l + 18 + l1, 0x6e6046, 5, i1);
    		DrawingArea.method339(l + 18 + l1, 0x716247, 4, i1);
    		DrawingArea.method339(l + 18 + l1, 0x7b6a4d, 3, i1);
    		DrawingArea.method339(l + 18 + l1, 0x817051, 2, i1);
    		DrawingArea.method339(l + 18 + l1, 0x000001, 1, i1);
    		DrawingArea.method339(l + 19 + l1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 19 + l1, 0x514635, 15, i1);
    		DrawingArea.method339(l + 19 + l1, 0x564b38, 14, i1);
    		DrawingArea.method339(l + 19 + l1, 0x5d513c, 11, i1);
    		DrawingArea.method339(l + 19 + l1, 0x61553e, 9, i1);
    		DrawingArea.method339(l + 19 + l1, 0x655841, 7, i1);
    		DrawingArea.method339(l + 19 + l1, 0x6a5c43, 5, i1);
    		DrawingArea.method339(l + 19 + l1, 0x6e6046, 4, i1);
    		DrawingArea.method339(l + 19 + l1, 0x73654a, 3, i1);
    		DrawingArea.method339(l + 19 + l1, 0x817051, 2, i1);
    		DrawingArea.method339(l + 19 + l1, 0x000001, 1, i1);
    		DrawingArea.method339(l + 20 + l1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 20 + l1, 0x4b4131, 15, i1);
    		DrawingArea.method339(l + 20 + l1, 0x544936, 14, i1);
    		DrawingArea.method339(l + 20 + l1, 0x594e3a, 13, i1);
    		DrawingArea.method339(l + 20 + l1, 0x5d513c, 10, i1);
    		DrawingArea.method339(l + 20 + l1, 0x61553e, 8, i1);
    		DrawingArea.method339(l + 20 + l1, 0x655841, 6, i1);
    		DrawingArea.method339(l + 20 + l1, 0x6a5c43, 4, i1);
    		DrawingArea.method339(l + 20 + l1, 0x73654a, 3, i1);
    		DrawingArea.method339(l + 20 + l1, 0x817051, 2, i1);
    		DrawingArea.method339(l + 20 + l1, 0x000001, 1, i1);
    		DrawingArea.method341(l + 16 + l1, 0x000001, k1, i1 + 15);
    		DrawingArea.method339(l + 15 + l1 + k1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x000001, 15, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x3f372a, 14, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x443c2d, 10, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x483e2f, 9, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x4a402f, 7, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x4b4131, 4, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x564b38, 3, i1);
    		DrawingArea.method339(l + 14 + l1 + k1, 0x000001, 2, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x443c2d, 15, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x4b4131, 11, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x514635, 9, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x544936, 7, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x564b38, 6, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x594e3a, 4, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x625640, 3, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x6a5c43, 2, i1);
    		DrawingArea.method339(l + 13 + l1 + k1, 0x000001, 1, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x443c2d, 15, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x4b4131, 14, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x544936, 12, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x564b38, 11, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x594e3a, 10, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x5d513c, 7, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x61553e, 4, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x6e6046, 3, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x7b6a4d, 2, i1);
    		DrawingArea.method339(l + 12 + l1 + k1, 0x000001, 1, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x000001, 16, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x4b4131, 15, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x514635, 14, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x564b38, 13, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x594e3a, 11, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x5d513c, 9, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x61553e, 7, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x655841, 5, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x6a5c43, 4, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x73654a, 3, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x7b6a4d, 2, i1);
    		DrawingArea.method339(l + 11 + l1 + k1, 0x000001, 1, i1);
    	}
    Then in drawInterface method, the only place that method is called
    Code:
    				if(class9_1.scrollMax > class9_1.height)
    					drawScrollbar1(class9_1.height, class9_1.scrollPosition, l2, k2 + class9_1.width, class9_1.scrollMax);
    I was just having trouble understanding all this, if it'd be possible to remove/re-position. If this helps you help me let me know. thanks.
    Reply With Quote  
     

  6. #6  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,108
    Thanks given
    2,402
    Thanks received
    2,825
    Rep Power
    4604
    The sprite scrollBar1, and scrollBar2 are the two sprite objects being drawn, why not just draw them on the screen to find out which is which, or save them to a file. The five variables in teh function probably have to do with position and size, as well as the current bar offset, just tamper with them a bit and rename the fields.
    Reply With Quote  
     

  7. #7  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    25
    Posts
    1,320
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Quote Originally Posted by Jason View Post
    The sprite scrollBar1, and scrollBar2 are the two sprite objects being drawn, why not just draw them on the screen to find out which is which, or save them to a file. The five variables in teh function probably have to do with position and size, as well as the current bar offset, just tamper with them a bit and rename the fields.
    You've lost me. I know which scrollBars are which sprites. But I don't see where or how to remove/position the scrollbar for a specific interface ID. It doesn't call the scrollbar for IDs, and each interface is positioned differently and a different length. Thanks for replying but I'm still not understanding what to do.
    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. Replies: 132
    Last Post: 07-27-2010, 05:13 PM
  2. Text reposition
    By Bars in forum Help
    Replies: 0
    Last Post: 02-12-2009, 09:29 PM
  3. Client SCROLLBAR
    By eXtrosion in forum Help
    Replies: 3
    Last Post: 10-23-2008, 08:17 PM
  4. Positioning your ChatBox Scrollbar
    By ZachHaley in forum Tutorials
    Replies: 22
    Last Post: 06-09-2008, 11:09 PM
  5. Requesting ScrollBar Color Change!
    By Ninja Cat in forum RS2 Client
    Replies: 4
    Last Post: 11-02-2007, 06:50 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
  •