forked from FirstPersonKSP/AvionicsSystems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpropDigitalIndicator.xml
More file actions
160 lines (153 loc) · 6.02 KB
/
propDigitalIndicator.xml
File metadata and controls
160 lines (153 loc) · 6.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<PropConfig>
<!--
This file is a prop configuration template for the Prop Config utility
described on the MAS wiki at https://github.com/MOARdV/AvionicsSystems/wiki/Prop-Config
The tool and this XML file are used to quickly generate multiple props
without the tedious effort of copying config files and making small edits
while hoping you didn't overlook something.
Copyright (c) 2019 MOARdV
This file is licensed by MOARdV under the Creative Commons Attribution-Share Alike
4.0 International license (CC BY-SA) https://creativecommons.org/licenses/by-sa/4.0/
-->
<!--
DigitalIndicator is a collection of rectangular props used for numeric displays or small status
panels. The common usage is as a multi-digit 7-segment LED / LCD display.
Note that this XML file does not contain all of the digital indicators!
The Power Off feature is set up as always-on (unless there's a power disruption). It could be changed
to have an on-off switch behavior by changing the variable field in TRANSLATION.
The 'folder' attribute identifies the directory where the config files will be written. This folder
is relative to the current working directory.
-->
<EmissiveScreen folder="DigitalIndicator_EmissiveScreen">
<style name="5char">
<MODEL>
<model>ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_EmisiiveScreen_5char</model>
<texture>DigitalIndicator_Diffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_Diffuse</texture>
<texture>SmallLablePlateDiffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateDiffuse</texture>
<texture>SmallLablePlateEmissive,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateEmissive</texture>
</MODEL>
<TRANSLATION id="0">
<name>DigitalIndicatorScreenObj</name>
<transform>DigitalIndicatorScreenObj</transform>
<startTranslation>0, 0, 0</startTranslation>
<endTranslation>0, -0.004, 0</endTranslation>
<variable>1 - fc.Conditioned(1)</variable>
</TRANSLATION>
<TRANSLATION id="1">
<name>DigitalIndicatorScreenOFFObj</name>
<transform>DigitalIndicatorScreenOFFObj</transform>
<startTranslation>0, 0, 0</startTranslation>
<endTranslation>0, -0.004, 0</endTranslation>
<variable>fc.Conditioned(1)</variable>
</TRANSLATION>
<TEXT_LABEL id="0">
<name>DisplayNameTextObj</name>
<transform>DisplayNameTextObj</transform>
<fontSize>6</fontSize>
<lineSpacing>0.9</lineSpacing>
<font>Liberation Sans</font>
<style>Bold</style>
<alignment>Center</alignment>
<anchor>LowerCenter</anchor>
<emissive>active</emissive>
<variable>fc.Conditioned(fc.GetPersistentAsNumber("Backlight"))</variable>
<blend>true</blend>
<activeColor>COLOR_ASET_SWITCHER_NAME_POSITIVECOLOR</activeColor>
<passiveColor>COLOR_ASET_SWITCHER_NAME_ZEROCOLOR</passiveColor>
</TEXT_LABEL>
<TEXT_LABEL id="1">
<name>DigitIndicatorTextObj</name>
<transform>DigitIndicatorTextObj</transform>
<fontSize>20</fontSize>
<lineSpacing>0.9</lineSpacing>
<font>Digital-7 Mono</font>
<style>Italic</style>
<alignment>Right</alignment>
<anchor>UpperRight</anchor>
<emissive>active</emissive>
<variable>fc.Conditioned(1)</variable>
<activeColor>COLOR_ASET_NUMINPUT_DISPLAY_POSITIVECOLOR</activeColor>
<passiveColor>0, 0, 0, 255</passiveColor>
</TEXT_LABEL>
<TEXT_LABEL id="2">
<name>DigitIndicatorText2Obj</name>
<transform>DigitIndicatorText2Obj</transform>
<fontSize>20</fontSize>
<lineSpacing>0.9</lineSpacing>
<font>Digital-7 Mono</font>
<style>Italic</style>
<alignment>Right</alignment>
<anchor>UpperRight</anchor>
<emissive>active</emissive>
<variable>fc.Conditioned(1)</variable>
<activeColor>COLOR_ASET_NUMINPUT_DISPLAY_GHOSTCOLOR</activeColor>
<passiveColor>0, 0, 0, 255</passiveColor>
<text>88888</text>
</TEXT_LABEL>
<COLOR_SHIFT id="0">
<name>DigitalIndicatorScreenOFFObj</name>
<transform>DigitalIndicatorScreenOFFObj</transform>
<passiveColor>COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR</passiveColor>
<colorName>_Color</colorName>
</COLOR_SHIFT>
<COLOR_SHIFT id="1">
<name>DigitalIndicatorScreenOFFObj</name>
<transform>DigitalIndicatorScreenOFFObj</transform>
<passiveColor>0,0,0,0</passiveColor>
<colorName>_EmissiveColor</colorName>
</COLOR_SHIFT>
<COLOR_SHIFT id="2">
<name>DigitalIndicatorScreenObj</name>
<transform>DigitalIndicatorScreenObj</transform>
<passiveColor>COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR</passiveColor>
<colorName>_Color</colorName>
</COLOR_SHIFT>
<COLOR_SHIFT id="3">
<name>DigitalIndicatorScreenObj</name>
<transform>DigitalIndicatorScreenObj</transform>
<passiveColor>COLOR_ASET_NUMINPUT_DISPLAY_EMISSIVE_PASSIVECOLOR</passiveColor>
<colorName>_EmissiveColor</colorName>
</COLOR_SHIFT>
</style>
<prop>
<name>MAS_DigitalIndicator_5char_ElectricCharge</name>
<style>5char</style>
<TEXT_LABEL id="0">
<text>ELEC. CHARGE</text>
</TEXT_LABEL>
<TEXT_LABEL id="1">
<text>{0,5:0} $#$ fc.Min(fc.ResourceCurrent("ElectricCharge"), 99999)</text>
</TEXT_LABEL>
</prop>
<prop>
<name>MAS_DigitalIndicator_5char_LiquidFuel</name>
<style>5char</style>
<TEXT_LABEL id="0">
<text>LQD. FUEL</text>
</TEXT_LABEL>
<TEXT_LABEL id="1">
<text>{0,5:0} $#$ fc.Min(fc.ResourceCurrent("LiquidFuel"), 99999)</text>
</TEXT_LABEL>
</prop>
<prop>
<name>MAS_DigitalIndicator_5char_Monopropellant</name>
<style>5char</style>
<TEXT_LABEL id="0">
<text>MONOPROP.</text>
</TEXT_LABEL>
<TEXT_LABEL id="1">
<text>{0,5:0} $#$ fc.Min(fc.ResourceCurrent("MonoPropellant"), 99999)</text>
</TEXT_LABEL>
</prop>
<prop>
<name>MAS_DigitalIndicator_5char_Oxidizer</name>
<style>5char</style>
<TEXT_LABEL id="0">
<text>OXIDIZER</text>
</TEXT_LABEL>
<TEXT_LABEL id="1">
<text>{0,5:0} $#$ fc.Min(fc.ResourceCurrent("Oxidizer"), 99999)</text>
</TEXT_LABEL>
</prop>
</EmissiveScreen>
</PropConfig>