Thread: Collection Log

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 Collection Log 
    Donator


    Join Date
    Sep 2013
    Posts
    159
    Thanks given
    133
    Thanks received
    57
    Rep Power
    130
    Attached image


    Here's a video (1.12MB).
    Sorry no embed
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    Join Date
    Mar 2013
    Posts
    579
    Thanks given
    684
    Thanks received
    137
    Rep Power
    217
    Quote Originally Posted by Simplex View Post
    Attached image


    Here's a video (1.12MB).
    Sorry no embed
    nice work bro good job
    Reply With Quote  
     

  4. #3  
    Donator


    Join Date
    Nov 2011
    Posts
    784
    Thanks given
    108
    Thanks received
    705
    Rep Power
    5000
    Looks amazing, good work!
    Reply With Quote  
     

  5. #4  
    Discord Johnyblob22#7757


    Join Date
    Mar 2016
    Posts
    1,384
    Thanks given
    365
    Thanks received
    575
    Rep Power
    5000
    love it gonna try and remake something like this but in 667
    Attached image
    Reply With Quote  
     

  6. #5  
    Extreme Donator

    Unzy's Avatar
    Join Date
    Feb 2017
    Posts
    1,086
    Thanks given
    0
    Thanks received
    2,881
    Rep Power
    5000
    Nice unique idea!
    Attached image
    Reply With Quote  
     

  7. #6  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Quote Originally Posted by Unzy View Post
    Nice unique idea!
    Not unique btw: https://twitter.com/JagexLenny/statu...78119734534144
    Attached image
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    Very special and asthetic


    Though I the menus feel like they don't belong to the interface imo :\
    Reply With Quote  
     

  10. #8  
    Donator


    Join Date
    Sep 2013
    Posts
    159
    Thanks given
    133
    Thanks received
    57
    Rep Power
    130
    Quote Originally Posted by Tyrant View Post
    Very special and asthetic


    Though I the menus feel like they don't belong to the interface imo :\
    The sprites are cropped directly from Mod Lenny's twitter previews of the Collection Log.
    What I have is very near what Jagex will be releasing on OSRS in the coming weeks.
    Reply With Quote  
     

  11. #9  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    It's a simple interface with some text and items on it lol, we added it a long time ago on Elkoy. I don't think it's worth a show-off but well done nonetheless!
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  12. Thankful user:


  13. #10  
    Respected Member


    Polar's Avatar
    Join Date
    Sep 2015
    Age
    28
    Posts
    420
    Thanks given
    0
    Thanks received
    418
    Rep Power
    3098
    Heh, I did the same but didn't finish the design for it. I'm curious how you went about doing it. I handle all the menus client sided and just send inventories containing the earned items.

    Attached image

    Code:
    [proc,collectionlog_switchsubcategory](struct $subcat)
    cc_deleteall(701:12);
    
    def_string $subcat_name = struct_param($subcat, 595);
    def_enum $subcat_objects = struct_param($subcat, 597);
    def_inv $subcat_inv = struct_param($subcat, 596);
    
    def_int $objects = enum_getoutputcount($subcat_objects);
    
    def_obj $object = -1;
    def_int $object_total = 0;
    
    def_int $object_padding = (if_getwidth(701:12) - (6 * 36)) / 8;
    
    def_int $obtained = 0;
    
    for (def_int $i = 0; $i < $objects; $i = $i + 1) {
        $object = enum(int, obj, $subcat_objects, $i);
        $object_total = inv_total($subcat_inv, $object);
    
        cc_create(701:12, ^iftype_graphic, $i);
        cc_setposition(2 + (($i % 6) * (36 + $object_padding)), (($i / 6) * (36 + $object_padding)), ^setpos_abs_left, ^setpos_abs_top);
        cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
        cc_setgraphicshadow(0x333333);
        cc_setoutline(true);
        cc_setop(1, "Check");
        cc_setopbase("<col=ff9040><oc_name($object)></col>");
        cc_setonop("collectionlog_obj_op(oc_name($object), $object_total)");
    
        if ($object_total > 0) {
            cc_setobject($object, $object_total);
            $obtained = $obtained + 1;
        } else {
            cc_setobject_nonum($object, 0);
            cc_settrans(135);
        }
    }
    
    // update the boss name component text
    if_settext($subcat_name, 701:6);
    
    // update the obtained component text and color
    if_settext("<tostring($obtained)>/<tostring($objects)>", 701:8);
    
    if ($obtained == $objects) {
        if_setcolor(0x00FF00, 701:8);
    } else {
        if_setcolor(0xFFFF00, 701:8);
    }
    
    def_int $kills = ~collectionlog_killcount;
    
    if ($kills >= 0) {
        // update "Boss name kills" component
        if_settext("<$subcat_name> kills:", 701:9);
        if_sethide(false, 701:9);
    
        // update kill count component text
        if_settext(~script46(~collectionlog_killcount, ","), 701:10);
        if_sethide(false, 701:10);
    } else {
        if_sethide(true, 701:9);
        if_sethide(true, 701:10);
    }
    
    def_int $scroll_height = ($objects / 6) * (36 + $object_padding);
    
    // we need to account for overflow so add 36 to the height if there is a remainder
    if ($objects % 6 != 0) {
        $scroll_height = $scroll_height + 36;
    }
    
    // hide scrollbar if it isn't needed
    if ($scroll_height > if_getheight(701:12)) {
        if_sethide(false, 701:13);
    } else {
        if_sethide(true, 701:13);
    }
    
    if_setscrollpos(0, 0, 701:12);
    if_setscrollsize(0, $scroll_height, 701:12);
    ~scrollbar_vertical(701:13, 701:12, 792, 789, 790, 791, 773, 788);
    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. [317] Extremity - Collection Log
    By nuka in forum Show-off
    Replies: 3
    Last Post: 08-30-2018, 08:13 AM
  2. Fixing Log In\Out Problem
    By _Fear in forum Tutorials
    Replies: 11
    Last Post: 04-14-2010, 10:35 PM
  3. Trades log files.
    By Simox in forum Tutorials
    Replies: 2
    Last Post: 07-24-2007, 10:11 PM
  4. Starter Command (with logs)
    By Systəx in forum Tutorials
    Replies: 11
    Last Post: 07-23-2007, 08: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
  •