Results 1 to 2 of 2

Thread: How to Edit Size of Numerical Field In Objects?

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

    How to Edit Size of Numerical Field In Objects?

    Im able to edit the text and size of data label, but not the data(numerical) output for that label. How to ?
    thanks

  2. #2
    HPT Employee Weston@HPTuners's Avatar
    Join Date
    Jul 2014
    Location
    39.735034, -103.894459
    Posts
    868
    Which display object type are you working with?

    For Gauges and Bar Graphs, their properties box gives you quick controls for the color and sizes of both the Label text and the Data Number display. With Gauges, you can also open the Gauge Designer to take control of much more in-depth options.

    With Text Data displays, their entire text is all the same size which is set via the Size option in the properties box, and then you can either use the "Fix Box to Text" option to make the display object size adjust to that automatically, or you can opt to take direct control of the box Width and Height settings.

    And finally, for Enhanced display objects, this is our most advanced and variable display type, which is based on scripting code that the user can create or edit, so that does introduce some inherent complexity when it comes to offering simplified universal user controls... However, for most of these displays that are included with RaceRender, we did try to simplify this by putting sizes and other common adjustments near the top of the Background Script, so that it's easier for users to find and adjust these. If you open the Script Editor, then click on the Background Script tab, you should see them in reasonably plain English. That section is often pretty straight-forward, so you don't really need to know anything about writing code or logic in order to adjust them. The names can differ, but in many cases it's as simple as something like "FontSize = 52;", where you'd simply change the 52 to the size of your choice. In some more advanced cases, you might see something like "FontSize = SizeY * 0.90;", which is a simple formula to automatically set the font to 90% of the Canvas height (ie SizeY) setting from the "Object Parameters" tab. In that case, you could either adjust it via changing the 0.90 to another number, or you could hard-code it to a specific size by replacing that line with "FontSize = 52;", where 52 is the number of your choice. In the future, we may also add the ability to control some of these numerical parameters directly from the properties box to make it simpler for users, but what's offered there would vary depending on the individual display type (some displays are more dynamic than others).