• Please note that this section is for questions regarding the forum itself - it is not for fan game-related questions. If you have a question about a fan game, ask in the appropriate thread.

  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Suggestion: Bootstrap loading bars

Alexander Nicholi

what do you know about computing?
  • 5,500
    Posts
    15
    Years
    Specifically, these. In BBCode, particularly for your ROM hacking community.

    I'm sure us hackers (and true blue software devs too) would really like to have this for progress information and the like – I've even seen a few hacks crudely implement it in text.
     
    A bit of CSS can imitate those progress bars nicely, so I don't think it would be really necessary.
    For example:
    75%

    Code:
    [PLAIN][cd=background-color:#0000D6;width:400px;height:20px;border-radius:5px][cd=float:left;background-color:#000090;width:300px;height:20px;border-radius:5px 0px 0px 5px][center][COLOR="White"]75%[/COLOR][/center][/cd][/cd][/PLAIN]
     
    In fact all that is, is CSS. (the first one at least) You could copy it over here verbatim:

    70%
    Code:
    [PLAIN][cd="width:50%; height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-o-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)"][cd="float:left;width:70%;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-o-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease"]70%[/cd][/cd][/PLAIN]
    Not that it wouldn't make a good little BBCode!

    Code:
    <div class="progressbar" style="width:50%; height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-o-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)"><div class="nopercent" style="float:left;width:{param}%;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-o-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .{param}s ease;-moz-transition:width .{param}s ease;-o-transition:width .{param}s ease;transition:width .{param}s ease">{param}%</div></div>
    Example:
    [progress]70[/progress]
     
    Last edited:
    They could be used outside of ROM hacking though, in many places. ROM Hacking isn't the only place that has projects going on, and I think these loading bars could be a useful little addition to many users across the forums. I'd like to see them implemented, if possible.
     
    If they're needed that badly in ROM Hacking it's always possible to put a template somewhere in the section.
    Or just add a BB code because that's the most user friendly thing to do. Once again, the code already exists (on Bootstrap) and requires minimal effort for implementation. There's no need to shoot down an idea simply because it has a workaround. Not everyone knows, or has the desire to know web languages. So I personally would rather the forum not force that upon them if possible.
     
    Hehehe, If you were to add this to the footer of PC's master style:
    Code:
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.3.min.js"></script>
    <script type="text/javascript">
    $('.progressbar > div').each(function(){
        this.removeAttribute("class")
    });
    </script>
    and this just above .audyfont in headinclude:
    Code:
    .nopercent {
        width: 0% !important;
    }
    the code I posted before would have a little fill up animation too :) and the speed it fills is set by {param}!
     
    Last edited:
    Or just add a BB code because that's the most user friendly thing to do. Once again, the code already exists (on Bootstrap) and requires minimal effort for implementation. There's no need to shoot down an idea simply because it has a workaround. Not everyone knows, or has the desire to know web languages. So I personally would rather the forum not force that upon them if possible.

    Okay, fair enough. I was thinking hacks for example needed smaller bars in a summary of the progress of different aspects (scrips, maps, sprites, ...), while you want a larger bar if you show the progress of one thing in general. But own CSS could always be used to style after all. If it's indeed as easy to implement as mentioned above, why not?
     
    Another version of the tag using {option} in place of the inside div's background colour could be nice.

    I'd be against having just that one, though. having to set a colour would be a pain imo.

    And width and height? prolly never happening. You only get one {option} so

    You could change the width with a little css wrapped around the tags though, like this:

    70%
    Code:
    [PLAIN][cd="width:100%; overflow:hidden;"][cd="width:200%;"][progress]70[/progress][/cd][/cd][/PLAIN]
    or like this:

    70%
    Code:
    [PLAIN][cd="width:50%; overflow:hidden;"][cd="width:100%;"][progress]70[/progress][/cd][/cd][/PLAIN]
     
    Last edited:
    Back
    Top