Solved Variables, other more options then to use range?

Discussion in 'Mod Support' started by karost, Jun 19, 2017.

  1. karost

    karost
    Expand Collapse

    Joined:
    Jul 13, 2016
    Messages:
    124
    In this code-line:
    Code:
    "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
            ["$trcgearrat", "range", "", "Transfercase", 1, 0.8, 3.0, "TC Gear Ratio", "Percentage of adjustment range"]
            ],
    This part: "range", can I use anything else than range as a type?

    Thank you for your response.

    // karost
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    type = range is here for the UI
    There isn't any other types for now.

    if you want to do a "dropdown list" with defined values you may need to use jbeam parts instead
     
  3. karost

    karost
    Expand Collapse

    Joined:
    Jul 13, 2016
    Messages:
    124
    Thank you, this helps out!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice