Thread: New Scrollbar

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1 New Scrollbar 
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    Purpose: To draw the newer scrollbar, instead of the old blocky ones.
    Difficulty: 0/10
    Required Knowledge: Copy and paste, eyesight.
    Classes Modified: client.java

    THIS IS REFACTORED ONLY.

    Add this in client.java:

    Code:
    	public void newScrollDrawing(int j, int k, int l, int i1, int j1) {
    		scrollBar1.drawSprite(i1, l);//if this gives an error, make it .method361 instead of drawSprite
    		scrollBar2.drawSprite(i1, (l + j) - 16);//if this gives an error, make it .method361 instead of drawSprite
    		DrawingArea.method336(j - 32, l + 16, i1, 0x000001, 16);
    		DrawingArea.method336(j - 32, l + 16, i1, 0x3d3426, 15);
    		DrawingArea.method336(j - 32, l + 16, i1, 0x342d21, 13);
    		DrawingArea.method336(j - 32, l + 16, i1, 0x2e281d, 11);
    		DrawingArea.method336(j - 32, l + 16, i1, 0x29241b, 10);
    		DrawingArea.method336(j - 32, l + 16, i1, 0x252019, 9);
    		DrawingArea.method336(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.method336(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);
    	}
    Replace all your: drawScrollBar

    with

    newScrollDrawing

    If you don't have the variable for barFillColor; add this above anIntArray1065 = new int[7]:

    Code:
    	barFillColor = 0x4d4233;
    Finished.



    Credits: JGMS/Royale. for the old old non-refactored version, me for perfecting/refactoring it, redoing some of it.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2007
    Age
    27
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    LOL nvm about that anyway nice tut
    Reply With Quote  
     

  3. #3  
    stormrunner
    Guest
    Omfg sweet
    Reply With Quote  
     

  4. #4  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    May want to add the barFIllColor Int up there and it's usage cause some people may not have. I already refactored it myself from JGMS also. Hehe GJ

    Also. Release the new chatbox w/o the chatmode clicking and all?


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Michael old
    Guest
    nice gonna convert to nonrenamed because that's just the client im usin atm
    Reply With Quote  
     

  6. #6  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by Linkin Park View Post
    nice gonna convert to nonrenamed because that's just the client im usin atm
    Don't need to convert! Get the images from galkons post then go here [Only registered and activated users can see links. ]


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    31
    Posts
    2,088
    Thanks given
    122
    Thanks received
    146
    Rep Power
    690
    So this looks 100% like RS's current one? Pixel perfect because RS's scroll is a lot lighter.


    The wor has begun.

    Reply With Quote  
     

  8. #8  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Congrats on 1000 posts Sigex. And I don't think he said 100 percent. I think it was when JGMS Released the Non-Refactored Version. So i would 100% Refactored of the old one.


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Derp.
    BenjaR's Avatar
    Join Date
    May 2008
    Age
    26
    Posts
    2,086
    Thanks given
    167
    Thanks received
    125
    Rep Power
    915
    Nice Galkon, although I'm not moving to renamed for a while
    Reply With Quote  
     

  10. #10  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by βeηjαmiη ♥ View Post
    Nice Galkon, although I'm not moving to renamed for a while
    why not Benjamin


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •