How do you color-code your cargo boxes or containers?

Discussion in 'General Discussion' started by japp_02, Mar 21, 2022.

  1. japp_02

    japp_02 Commander

    Joined:
    Feb 11, 2021
    Messages:
    525
    Likes Received:
    200
    I have seen this in a workshop BP, most cargo boxes colored in red, green, yellow etc. I know that you must put a code in brackets before the name, like "- [xxxx]Neodynium". But where do you get these codes?
    Thanks,
     
    #1
  2. Fenris

    Fenris Commander

    Joined:
    Jul 19, 2018
    Messages:
    79
    Likes Received:
    181
    It's a hex code for colors. Here is a cool little tool if you want to create your own and don't know the code. https://www.w3schools.com/colors/colors_picker.asp

    So if you wanted your ammo box to show up red in the menu, you'd type:
    [c][ff0000]Ammo

    So "[c][colorcode]Name"
     
    #2
    Last edited: Mar 21, 2022
    CrazyZ and Myrmidon like this.
  3. DarkMatter

    DarkMatter Ensign

    Joined:
    Oct 27, 2021
    Messages:
    12
    Likes Received:
    5
    I think that : [rrggbb]container_name
    is enought
     
    #3
    Myrmidon likes this.
  4. Germanicus

    Germanicus Rear Admiral

    Joined:
    Jan 22, 2018
    Messages:
    5,032
    Likes Received:
    8,757
    I normally use the Texture Color Tool and place the Color Code into the appropriate boxes and get so my color Scheme.
    But I think you want to achieve something different.
     
    #4
    Myrmidon likes this.
  5. Garaman

    Garaman Captain

    Joined:
    Aug 23, 2020
    Messages:
    553
    Likes Received:
    677
    The [c] tag before the [rrggbb] changes the color slightly. Without the [c] everything gets a slight blue tint to it. For example, try with white: "[c][ffffff]Cargo" vs just "[ffffff]Cargo".

    There are some other tags that work, though you are very character limited. Copied this from the Discord so it can be searched on the forum.

    ---

    Code:
    Supported markup tags for container names.
    Leave out closing tags for brevity if you don't need them.
    
    [b][/b] = Bold
    [i][/i] = Italic
    [u][/u] = Underline
    [s][/s] = Strikethrough
    [sup][/sup] = Superscript
    [sub][/sub] = Subscript
    [c][/c] = Sets text base color to white instead of default light-blue
    [######][-] = Color (replace #'s with 6- or 8-digit hex color.
                  The 8-value hex supports transparency. "[-]" is the closing tag.)
    [##] = Set alpha (replace #'s with 2-digit hex value)
    
    [c] and [######] will interact with each other. The hex color seems to multiply
    against the base color, so if you use a hex color without [c] it will be tinted
    the default light-blue color. For example, "[c][FFFFFF]" is required for pure white.
    Skipping the [c] tag can save characters if you don't mind the tint.
     
    #5
    DarkMatter likes this.
  6. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,729
    Likes Received:
    2,058
    Whatever is permitted in the new LCD text should work for containers' labeling also. Am I wrong?
     
    #6
  7. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,425
    Likes Received:
    12,030
    You are correct. Color coding containers is amazing.
     
    #7
  8. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,729
    Likes Received:
    2,058
    But limited in terms of "real estate". Imagine each one of them have their own "LCD emitter".
     
    #8
    Fenris and Germanicus like this.
  9. japp_02

    japp_02 Commander

    Joined:
    Feb 11, 2021
    Messages:
    525
    Likes Received:
    200
    That's all very interesting, I thank you all for taking your time and elaborating on this. It's good to know that I can take the LCD mechanics as a base for the code syntax.
     
    #9
    Germanicus and Myrmidon like this.
  10. Garaman

    Garaman Captain

    Joined:
    Aug 23, 2020
    Messages:
    553
    Likes Received:
    677
    It's only a limited subset of the LCD commands that works. For example: pos, voffset, size, and rotate do not work if I recall. I believe the list I posted was all the commands I tried that actually had an effect.
     
    #10
    Germanicus and Myrmidon like this.
  11. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,729
    Likes Received:
    2,058
    Truth to be told an in-game color picker tool would be useful.
     
    #11
    Germanicus likes this.

Share This Page