Results 1 to 3 of 3

Thread: How to Change Onscreen Label of Object

  1. #1
    Tuner in Training
    Join Date
    Sep 2016
    Posts
    12

    How to Change Onscreen Label of Object

    I/m using the Aviation template and have figured out how to change displayed field, but not the field description. Can this be done,and how?
    Thanks

  2. #2
    HPT Employee Weston@HPTuners's Avatar
    Join Date
    Jul 2014
    Location
    39.735034, -103.894459
    Posts
    868
    There are a couple different ways, depending on the object type:

    1) When you double-click on the display object to open its properties box, most data object types will have a "Label:" text box somewhat near the bottom of that properties box. Please just ignore the other "Label:" box that's very near that top, as that one is only for the name of the object as it appears in the list (our next program update will rename it to clarify this a bit).
    . a) If you are working with one of the more basic text-based objects, it's essentially the same, but wont actually say "Label:" for this. It will instead have a large text box and then a "Mode" setting above it to control how that's shown with the number ("Number Only", "Number & Text", "Text & Number", etc). Note that for some of these displays, there may be a separate Text object that serves as only the label; that should be apparent in the Display Objects list, and they'll usually be grouped together as well.

    2) If it's instead an Enhanced Display Object, you'll then see an "Open Script Editor" button in its properties box, which you'll need to click on... This is a more custom object type, so depending on how it is setup, the displayed label will either use the basic "Text Label:" setting on the "Object Parameters" tab, or you can go find it in the "Background Script" (typically right near the top). If you edit a label within one of the script tabs, you'll need to make sure that it remains in quotes.


    For example with the "Aviation - 1" template, the Speed, RPM, and Throttle all fall under case #1, which is the typical situation for most objects and templates. However, this particular aviation template utilizes a lot of Enhanced display objects (ie case #2), and its "Altitude" climb/min/max text displays are part of that. For those specific displays, they all use the simple "Text Label:" setting under the "Object Parameters" tab in the Script Editor. Looking at this now, we may be able to simplify this a bit going forward. I'll see what we can do...

  3. #3
    Tuner in Training
    Join Date
    Sep 2016
    Posts
    12
    Quote Originally Posted by Weston@HPTuners View Post
    There are a couple different ways, depending on the object type:

    1) When you double-click on the display object to open its properties box, most data object types will have a "Label:" text box somewhat near the bottom of that properties box. Please just ignore the other "Label:" box that's very near that top, as that one is only for the name of the object as it appears in the list (our next program update will rename it to clarify this a bit).
    . a) If you are working with one of the more basic text-based objects, it's essentially the same, but wont actually say "Label:" for this. It will instead have a large text box and then a "Mode" setting above it to control how that's shown with the number ("Number Only", "Number & Text", "Text & Number", etc). Note that for some of these displays, there may be a separate Text object that serves as only the label; that should be apparent in the Display Objects list, and they'll usually be grouped together as well.

    2) If it's instead an Enhanced Display Object, you'll then see an "Open Script Editor" button in its properties box, which you'll need to click on... This is a more custom object type, so depending on how it is setup, the displayed label will either use the basic "Text Label:" setting on the "Object Parameters" tab, or you can go find it in the "Background Script" (typically right near the top). If you edit a label within one of the script tabs, you'll need to make sure that it remains in quotes.


    For example with the "Aviation - 1" template, the Speed, RPM, and Throttle all fall under case #1, which is the typical situation for most objects and templates. However, this particular aviation template utilizes a lot of Enhanced display objects (ie case #2), and its "Altitude" climb/min/max text displays are part of that. For those specific displays, they all use the simple "Text Label:" setting under the "Object Parameters" tab in the Script Editor. Looking at this now, we may be able to simplify this a bit going forward. I'll see what we can do...
    OK, thanks.I think Will need a bit more learning on my part, but program looks good for go here.