[REL] Better Build Bar [Not Currently Working]

Discussion in 'Released Mods' started by Corang, March 1, 2014.

  1. ace902902

    ace902902 Active Member

    Messages:
    548
    Likes Received:
    212
    can tis be an option? I want the shape of the build bar, but I want it to be completely visible.
  2. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    we are working on it
  3. ace902902

    ace902902 Active Member

    Messages:
    548
    Likes Received:
    212
  4. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    That's correct - I think you're confusing Transparency and Opacity in your function naming - turning opacity Off means making it transparent (invisible) ;)
  5. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    regardless, have you figured out why it isn't working?
  6. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    I haven't yet; need to fire up PA to check, and can't do that until I get home.
  7. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I think I may know what is happening. The if statement is only being called when it loads, and when it loads the box is unchecked, after you check the box the if/else statement isn't called again so it is still the same value. I propose that the if/else statement would have to be called everytime you check/uncheck the box, but I do not know how to do that
  8. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Just saw this:

    getElementbyId

    Should be

    getElementById
  9. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    so that helped a little, when I click the checkbox (the box is checked now) the bar goes transparent but when i click it again (the box is not checked) it just stays transparent.
  10. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    OH THANK GOD
    I finally got it:
    HTML:
    (function() {
    $( 'div.div_bottom_bar' ).append( "<div class='div_opacityCheck receiveMouse' id='div_opacityCheck'>Opacity <input type='Checkbox' id='opacityCheck'></input></div>" );
    })()
    
    
    function opacityOff() {
        $(".div_build_bar_midspan > div").css('margin', '0px 0px 0px 0px').css('opacity', '1');
    }
    
    
    function opacityOn() {
        $(".div_build_bar_midspan > div").css('margin', '0px 0px 0px 0px').css('opacity', '.8');
    }
    
    document.getElementById('opacityCheck').onchange = function status() {
        if ( document.getElementById('opacityCheck').checked === false ) {
            opacityOff();
        }
        else
        {
            opacityOn();
        };
    }
    LavaSnake likes this.
  11. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
  12. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    its done, update the mod on PAMM
  13. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
  14. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    exactly
  15. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    now help me out over here.
  16. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Nice ! And works fine with keys display of hotbuild.
    Only think I don't like is the transparency checkbox, you should move that to UI settings.
    Then it will be perfect :)
  17. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    @Corang, I have an idea to submit to you.

    personally I dig the transparency and the smaller icons so how about rolling with it 100% and removing the black borders altogether?

    I'd love it that way.
  18. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I will see what I can do, I just got home from school and I am about to have dinner then I will check it out
    tatsujb likes this.
  19. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I thought about it, but due to my little knowledge of js settingsmanager looked really complicated

    EDIT: What if I had it like the PiP where you click to bring up the options?
  20. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    It's actually not that hard to do a simple settings item and I could toss together a demo if you want.

Share This Page