ItemLevelDisplay
- Last UpdatedDec 16, 2023
- 3 minute read
The ItemLevelDisplay node is used to map a vertical gauge indicator, such as a thermometer.
-
The ItemLevelDisplay node inherits from ItemTextureDisplay.
Platform support
This node is fully supported on XR-Windows platform.
It is partially supported on XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Partial support |
Partial support |
Partial support |
Partial support |
|
|
|
|
|
|
Code example
This is a code example for ItemLevelDisplay.
<ItemLevelDisplay range="0 10"/>
Default actions
The default actions for ItemLevelDisplay.
|
Action |
Hotkey |
Text |
Description |
|---|---|---|---|
|
check |
X |
Check |
Checks the item. |
ItemLevelDisplay fields
These are the fields for ItemLevelDisplay node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > NodeBaseMovable > Item > ItemTextureDisplay > ItemLevelDisplay
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
backColor |
svec3 |
Optional |
0 0 0 |
Color for the value column background (0-1) RGB (0 0 0 for black, 1 1 1 for white). |
|
color |
svec3 |
Optional |
1 1 1 |
Color for the value column (0-1) RGB (0 0 0 for black, 1 1 1 for white). |
|
font |
sstring |
Optional |
Arial,Bold,8 |
The font to use for the marker values and the marker unit. The font name must be a system font. Only Bold and Regular parameters are accepted. |
|
generateBackgorund |
sbool |
Optional |
true |
If set to true, the gauge label is overwritten with markers and other information. |
|
markerColor |
svec3 |
Optional |
0.7 0.7 0.7 |
Marker and text color. The color is expressed in normalized (0-1) RGB (0 0 0 for black, 1 1 1 for white). |
|
markerLength |
sfloat |
Optional |
-1 (radius/10) |
Length in pixels of the value markers. |
|
markerLengthInner |
sfloat |
Optional |
-1 (radius/10) |
Length in pixels of the value inner markers. |
|
markerNum |
sint |
Optional |
4 |
Number of markers in the gauge. Each marker also displays the associated value. |
|
markerNumInner |
sint |
Optional |
10 |
Number of inner marker in the gauge. These are little markers between main markers. Each marker display also the associated value. |
|
markerThickness |
sfloat |
Optional |
3 |
Thickness in pixels of the value markers. |
|
markerThicknessInner |
sfloat |
Optional |
2 |
Thickness in pixels of the inner markers. |
|
markerUnitText |
sstring |
Optional |
mw/pl |
Gauge unit measure text. |
|
markerUnitTextPosition |
svec2 |
Optional |
0.5 0.5 (center_x,center_y-radius/2)) |
Unit measure text center position. |
|
markerZeroRad |
sfloat |
Optional |
-2.35 |
Offset that can be used to rotate the markers and align them correctly. |
|
range |
svec2 |
Optional |
0 1 |
Minimum-maximum range for the value. |
|
rect |
svec4 |
Optional |
0 0 64 256 |
Value column rectangle (full area). |
|
value |
sfloat |
Optional |
Not set |
Value of the variable displayed by the gauge, in the needleScale range. |