Thread: osrs achievement interface

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 osrs achievement interface 
    dumb
    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    413
    Thanks given
    286
    Thanks received
    152
    Rep Power
    176
    ill add minigame tab to this after, made this bc bored and itll look better on 317s instead of the shtty 1 that comes with it usually, doesnt include any handling but im sure u can figure it out



    things u need to add:
    the progress bar color color progresses from dark orange -> green depending on progress, need to set up a system that changes color depending on amount completed
    change color of text when hovering, p easy but i cbf adding that
    maybe right align the x/x text instead of center but looks fine otherwise

    Code:
    public static void achievementTest(GameFont[] tda) {
    		Widget interface_ = addTabInterface(12500);
    		Widget scrolls = addTabInterface(12505);
    		scrolls.width = 165;
    		scrolls.height = 226;
    		scrolls.scrollMax = 227;
    		addSprite(12501, 606);
    		addHoverButton_sprite_loader(12502, 609, 18, 18, "View Quests", -1, 12503, 1);
    		addHoveredButton_sprite_loader(12503, 610, 18, 18, 12499);
    		addText(12504, "Achievement Diary", tda, 2, 0xff9933, false, true);
    		addDiarySlot(12506, tda, "Ardougne");
    		addDiarySlot(12516, tda, "PvP");
    		addDiarySlot(12526, tda, "Boss achievements");
    		int intChild = 0;
    		int intChild2 = 0;
    		interface_.totalChildren(5);
    		interface_.child(intChild++, 12502, 171, 5);
    		interface_.child(intChild++, 12503, 171, 5);
    		interface_.child(intChild++, 12504, 9, 5);
    		interface_.child(intChild++, 12505, 8, 25);
    		interface_.child(intChild++, 12501, 6, 25);
    		scrolls.totalChildren(3);
    		scrolls.child(intChild2++, 12506, 6, 7);
    		scrolls.child(intChild2++, 12516, 6, 35);
    		scrolls.child(intChild2++, 12526, 6, 63);
    	}
    	
    	public static void addDiarySlot(int id, GameFont[] tda, String name) {
    		Widget widget = addTabInterface(id);
    		addHoverButton_sprite_loader(id + 1, 607, 151, 27, "View Diary Journal", -1, id + 2, 1);
    		addHoveredButton_sprite_loader(id + 2, 608, 151, 27, 12498);
    		addText(id + 3, name, tda, 0, 0xffff00, false, true);
    		addText(id + 4, "42/42", tda, 0, 0xffff00, true, true);
    		addPixels(id + 5, 0xd43c00, 8, 5, 0, true, 35);
    		addPixels(id + 6, 0xd34f00, 17, 5, 0, true, 35);
    		addPixels(id + 7, 0xd34f00, 26, 5, 0, true, 35);
    		addPixels(id + 8, 0x37b514, 35, 5, 0, true, 35);
    		int chatboxChild = 0;
    		widget.totalChildren(8);
    		widget.child(chatboxChild++, id+1, 0, 0);
    		widget.child(chatboxChild++, id+2, 0, 0);
    		widget.child(chatboxChild++, id+3, 2, 2);
    		widget.child(chatboxChild++, id+4, 136, 2);
    		widget.child(chatboxChild++, id+5, 4, 18);
    		widget.child(chatboxChild++, id+6, 40, 18);
    		widget.child(chatboxChild++, id+7, 76, 18);
    		widget.child(chatboxChild++, id+8, 112, 18);
    	}
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    Donator

    Superman's Avatar
    Join Date
    Feb 2015
    Posts
    866
    Thanks given
    309
    Thanks received
    223
    Rep Power
    1070
    nice job mate
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Donator


    Join Date
    Oct 2012
    Posts
    4,714
    Thanks given
    1,683
    Thanks received
    1,093
    Rep Power
    1405
    Sick as always boi.
    Quote Originally Posted by Velocity View Post
    i'd love to get called in the middle of the night just to hear an indian voice whisper "the nulls are back friend, how i fix"
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Gangster

    Unzy's Avatar
    Join Date
    Feb 2017
    Posts
    795
    Thanks given
    0
    Thanks received
    285
    Rep Power
    4308
    Top work mate
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. Thankful user:


  8. #5  
    Registered Member
    Join Date
    Nov 2009
    Posts
    53
    Thanks given
    0
    Thanks received
    5
    Rep Power
    12
    Simple but nice interface looks really clean gj.
    Reply With Quote  
     

  9. Thankful user:


  10. #6  
    Registered Member
    Join Date
    Apr 2017
    Posts
    31
    Thanks given
    6
    Thanks received
    9
    Rep Power
    11
    Looks really nice and clean good work
    Reply With Quote  
     

  11. #7  
    WHAT DO I PUT HERE!?

    Join Date
    Apr 2015
    Posts
    286
    Thanks given
    3
    Thanks received
    46
    Rep Power
    19
    This is really nice man, goodjob!
    Reply With Quote  
     

  12. #8  
    Donator


    Join Date
    Jan 2010
    Age
    24
    Posts
    3,916
    Thanks given
    249
    Thanks received
    436
    Rep Power
    473
    Am i wrong by saying your doing the hover of it by a sprite or is it done with the actuall interface code (type 3)?

    gj tho

    Edit: nvm you are using sprites for the hover, you can actually use type 3 for that too to change the box colors on hover
    Reply With Quote  
     

  13. Thankful user:


  14. #9  
    dumb
    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    413
    Thanks given
    286
    Thanks received
    152
    Rep Power
    176
    Quote Originally Posted by Nighel View Post
    Am i wrong by saying your doing the hover of it by a sprite or is it done with the actuall interface code (type 3)?

    gj tho

    Edit: nvm you are using sprites for the hover, you can actually use type 3 for that too to change the box colors on hover
    yeah after looking at how osrs handled it, i just used sprites and thanks ill remember that for simple boxes now
    Reply With Quote  
     

  15. #10  
    Registered Member
    Join Date
    Aug 2016
    Age
    20
    Posts
    151
    Thanks given
    25
    Thanks received
    2
    Rep Power
    28
    Very nice job, looks clean.
    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)

Similar Threads

  1. Achievement Interface
    By gold_fish in forum Graphics
    Replies: 10
    Last Post: 10-03-2013, 05:30 PM
  2. Replies: 30
    Last Post: 08-08-2011, 07:31 PM
  3. [Galkon's] 99% Achievement Interface
    By Xero in forum Snippets
    Replies: 16
    Last Post: 12-14-2010, 11:30 PM
  4. New Achievments Interface 60% [PI]
    By legacy508 in forum Show-off
    Replies: 9
    Last Post: 12-13-2010, 11:12 AM
  5. [546]Quest-Achievment Interfaces
    By Inspired Dreams in forum Tutorials
    Replies: 12
    Last Post: 05-31-2009, 02:57 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
  •