Step 6 - Fuel and temperature gauges¶
In this step, you create the fuel and temperature gauges.
Control rectangular fuel and temperature gauges¶
In this procedure you add control for the rectangular-style fuel and temperature gauges.
To control the rectangular fuel and temperature gauges:
In the Node Tree, in the Gauges > SpeedoMeter > ShapeRect > Speedometer_Simple_Rect_2024:2036 node, select the FuelBar node. In the Properties, bind the Rectangle Width property to:
6 + {#Control/Control.Fuel} * 323
The binding expression uses the 6-pixel offset to show the fuel indicator as a dot when the gauge value is 0. You multiply the value by 323 because that is the width of the gauge.
Repeat the previous step for the Fuel_Bar node in the ShapeRect > Speedometer_Rich_Rect_2134:1222 node.
In the Node Tree, in the Gauges > TachoMeter > ShapeRect > Tachometer_Simple_Rect_2024:2034 node, select the TempBar node. In the Properties, bind the Rectangle Width property to:
6 + {#Control/Control.Temp} * 323
Repeat the previous step for the Temp_Bar node in the ShapeRect > Tachometer_Rich_Rect_2134:1223 node.
You can now control the fuel and temperature gauges in rectangular-style gauges from the Control node with the Fuel Control and Temperature Control properties.
Create round fuel and temperature gauges¶
In this procedure you create the round-style fuel and temperature gauges.
To create the round fuel and temperature gauges:
Create the round fuel gauge for the speedometer simple gauge:
In the Speedometer_Simple_Round_2024:2035, create an Ellipse 2D node, name it Filling_Round, and move it above the Speed Bar node. In the Properties, add and set:
Ellipse > Ellipse Center property fields X and Y to 240
Ellipse > Ellipse Width and Ellipse Height to 470
Ellipse > Start Angle to 208
Shape 2D > Stroke Brush to Figma/Materials/Items/Shapes/Ellipse (Bar)_2024:1978
Shape > Stroke Thickness to 10
Shape > Stroke Cap to Round
Brushes > Foreground Brush to < No Brush >
In the Node Tree, right-click the Filling_Round node and select Convert Nodes to Prefabs.
In the Speedometer_Simple_Round_2024:2035, in the Filling_Round prefab instance, bind the Sweep Angle property to
-{#Control/Control.Fuel} * 56
You can now control the round fuel gauge from the Control node with the Fuel Control property.
Drag the Fuel Text node after the Background node and delete the Fuel Bar node.
Create the round temperature gauge for the tachometer simple gauge:
From the Prefabs, drag the Filling_Round prefab to the Tachometer_Simple_Round_2024:2033 node above the Tachometer Bar node. In the Properties, set the Stroke Brush to Figma/Materials/Items/Shapes/Ellipse (Bar)_2024:2018.
In the Tachometer_Simple_Round_2024:2033, in the Filling_Round prefab instance, bind the Sweep Angle property to
-{#Control/Control.Temp} * 56
You can now control the round temperature gauge from the Control node with the Temperature Control property.
Create the round fuel gauge for the speedometer rich gauge:
From the Prefabs, drag the Filling_Round prefab to the Speedometer_Rich_Round_2158:1294 node above the GaugeMeter node. In the Properties, add and set:
Stroke Brush to Figma/Materials/Items/Shapes/Ellipse (Bar)_2158:1249
Vertical Alignment and Horizontal Alignment to Center
Render Transformation property field Translation Y to -1
In the Speedometer_Rich_Round_2158:1294, in the Filling_Round prefab instance, bind the Sweep Angle property to
-{#Control/Control.Fuel} * 56
You can now control the rich round fuel gauge from the Control node with the Fuel Control property.
Create the round temperature gauge for the tachometer rich gauge:
From the Speedometer_Rich_Round_2158:1294 node, copy the Filling_Round prefab instance and paste it to the Tachometer_Rich_Round_2158:1295 above the GaugeMeter node. In the Properties, set:
Set the Stroke Brush property to Figma/Materials/Items/Shapes/Ellipse (Bar)_2158:1277.
In the Tachometer_Rich_Round_2158:1295, in the Filling_Round prefab instance, modify Sweep Angle binding to
-{#Control/Control.Temp} * 56
You can now control the rich round fuel gauge from the Control node with the Temperature Control property.
You can now control the fuel and temperature gauges in round-style gauges from the Control node with the Fuel Control and Temperature Control properties.