Asobo\Generic\Emissive.xml
Templates
-
ASOBO_GT_Material_Emissive_Sim
Definition from XML<Template Name="ASOBO_GT_Material_Emissive_Sim"> <DefaultTemplateParameters> <EMISSIVE_SIMVAR_SCALE>1</EMISSIVE_SIMVAR_SCALE> <EMISSIVE_SIMVAR_BIAS>0</EMISSIVE_SIMVAR_BIAS> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition Valid="DONT_OVERRIDE_BASE_EMISSIVE"> <True> <OVERRIDE_BASE_EMISSIVE>FALSE</OVERRIDE_BASE_EMISSIVE> </True> <False> <OVERRIDE_BASE_EMISSIVE>TRUE</OVERRIDE_BASE_EMISSIVE> </False> </Condition> </OverrideTemplateParameters> <UseTemplate Name="ASOBO_GT_Part_ID"/> <Material> <EmissiveFactor> <Parameter> <Sim> <Variable>#EMISSIVE_SIMVAR#</Variable> <Units>#EMISSIVE_SIMVAR_UNITS#</Units> <Scale>#EMISSIVE_SIMVAR_SCALE#</Scale> <Bias>#EMISSIVE_SIMVAR_BIAS#</Bias> </Sim> </Parameter> <OverrideBaseEmissive>#OVERRIDE_BASE_EMISSIVE#</OverrideBaseEmissive> </EmissiveFactor> </Material> </Template>Parameters initialization:
-
Default
Parameters set:
- EMISSIVE_SIMVAR_SCALE
- EMISSIVE_SIMVAR_BIAS
-
Override
Condition: Valid(DONT_OVERRIDE_BASE_EMISSIVE)
-
Case: True
Parameters set:
- OVERRIDE_BASE_EMISSIVE
-
Case: False
Parameters set:
- OVERRIDE_BASE_EMISSIVE
-
Parameters read:
- EMISSIVE_SIMVAR
- EMISSIVE_SIMVAR_UNITS
- EMISSIVE_SIMVAR_SCALE
- EMISSIVE_SIMVAR_BIAS
- OVERRIDE_BASE_EMISSIVE
Templates used:
-
Default
-
ASOBO_GT_Material_Emissive_Code
Definition from XML<Template Name="ASOBO_GT_Material_Emissive_Code"> <DefaultTemplateParameters> <FAILURE>1</FAILURE> </DefaultTemplateParameters> <OverrideTemplateParameters> <Condition NotEmpty="EMISSIVE_CODE_FACTOR"> <True> <EMISSIVE_CODE_FACTOR>#EMISSIVE_CODE_FACTOR# *</EMISSIVE_CODE_FACTOR> </True> <False> <EMISSIVE_CODE_FACTOR/> </False> </Condition> <Condition Valid="DONT_OVERRIDE_BASE_EMISSIVE"> <True> <OVERRIDE_BASE_EMISSIVE>FALSE</OVERRIDE_BASE_EMISSIVE> </True> <False> <OVERRIDE_BASE_EMISSIVE>TRUE</OVERRIDE_BASE_EMISSIVE> </False> </Condition> <Condition NotEmpty="OVERRIDE_EMISSIVE_CODE"> <True> <EMISSIVE_CODE>#OVERRIDE_EMISSIVE_CODE#</EMISSIVE_CODE> </True> </Condition> </OverrideTemplateParameters> <UseTemplate Name="ASOBO_GT_Part_ID"/> <Condition Valid="INTERCEPT_INTERACTIONS"> <UseTemplate Name="ASOBO_GT_MouseRect"> <NO_HIGHLIGHT_NODE_ID>True</NO_HIGHLIGHT_NODE_ID> <MOUSEFLAGS>Lock</MOUSEFLAGS> <CALLBACKCODE>0</CALLBACKCODE> </UseTemplate> </Condition> <Material> <EmissiveFactor> <Parameter> <Code>#EMISSIVE_CODE# #FAILURE# * #EMISSIVE_CODE_FACTOR#</Code> </Parameter> <OverrideBaseEmissive>#OVERRIDE_BASE_EMISSIVE#</OverrideBaseEmissive> </EmissiveFactor> </Material> </Template>Parameters initialization:
-
Default
Parameters set:
- FAILURE
-
Override
Condition: NotEmpty(EMISSIVE_CODE_FACTOR)
-
Case: True
Parameters set:
- EMISSIVE_CODE_FACTOR (using EMISSIVE_CODE_FACTOR)
-
Case: False
Parameters set:
- EMISSIVE_CODE_FACTOR
Condition: Valid(DONT_OVERRIDE_BASE_EMISSIVE)
-
Case: True
Parameters set:
- OVERRIDE_BASE_EMISSIVE
-
Case: False
Parameters set:
- OVERRIDE_BASE_EMISSIVE
Condition: NotEmpty(OVERRIDE_EMISSIVE_CODE)
-
Case: True
Parameters set:
- EMISSIVE_CODE (using OVERRIDE_EMISSIVE_CODE)
-
Parameters read:
- EMISSIVE_CODE
- FAILURE
- EMISSIVE_CODE_FACTOR
- OVERRIDE_BASE_EMISSIVE
Templates used:
Condition: Valid(INTERCEPT_INTERACTIONS)
-
Case: True
Templates used:
-
ASOBO_GT_MouseRect
Parameters set:
- NO_HIGHLIGHT_NODE_ID
- MOUSEFLAGS
- CALLBACKCODE
-
ASOBO_GT_MouseRect
-
Default
-
ASOBO_GT_Component_Emissive_Gauge
Definition from XML<Template Name="ASOBO_GT_Component_Emissive_Gauge"> <Parameters Type="Default"> <COMPONENT_ID>#NODE_ID#</COMPONENT_ID> </Parameters> <Component ID="#COMPONENT_ID#" Node="#NODE_ID#"> <Switch> <Case Valid="POTENTIOMETER"> <UseTemplate Name="ASOBO_GT_Emissive_Potentiometer"/> </Case> <Case Valid="SIMVAR_POWER_SETTING"> <UseTemplate Name="ASOBO_GT_Emissive_Power_Setting"/> </Case> <Default> <UseTemplate Name="ASOBO_GT_Emissive_Gauge"/> </Default> </Switch> <Condition Valid="CAMERA_TITLE"> <CameraTitle>#CAMERA_TITLE#</CameraTitle> </Condition> </Component> </Template>Parameters initialization:
-
Default
Parameters set:
- COMPONENT_ID (using NODE_ID)
Parameters read:
- COMPONENT_ID
- NODE_ID
Components:
-
#COMPONENT_ID# (Node: #NODE_ID#)
Condition: Switch
-
Case: Valid(POTENTIOMETER)
Templates used:
-
Case: Valid(SIMVAR_POWER_SETTING)
Templates used:
-
Default case:
Templates used:
Condition: Valid(CAMERA_TITLE)
-
Case: True
Parameters read:
- CAMERA_TITLE
-
-
Default
-
ASOBO_GT_Emissive_Gauge
Definition from XML<Template Name="ASOBO_GT_Emissive_Gauge"> <Parameters Type="Default"> <Condition Check="FAILURE_CIRCUIT"> <False> <FAILURE>(A:CIRCUIT GENERAL PANEL ON, Bool)</FAILURE> </False> <True> <FAILURE>(A:CIRCUIT ON:#FAILURE_CIRCUIT#, Bool)</FAILURE> </True> </Condition> <Condition Valid="BLINK"> <BLINK_FREQUENCY>1</BLINK_FREQUENCY> <BLINK_DURATION>50</BLINK_DURATION> </Condition> </Parameters> <Parameters Type="Override"> <Condition Valid="BLINK"> <EMISSIVE_CODE>#EMISSIVE_CODE# (P:Absolute time, seconds) #BLINK_FREQUENCY# % #BLINK_FREQUENCY# 100 #BLINK_DURATION# - 100 / * > *</EMISSIVE_CODE> </Condition> </Parameters> <Parameters Type="Override"> <Condition Check="ALT_CODE"> <EMISSIVE_CODE>#EMISSIVE_CODE# #ALT_CODE# max</EMISSIVE_CODE> </Condition> </Parameters> <Condition Valid="EMISSIVE_DRIVES_VISIBILITY"> <True> <UseTemplate Name="ASOBO_GT_Visibility_Code"> <VISIBILITY_CODE>#EMISSIVE_CODE# 0 > #FAILURE# and</VISIBILITY_CODE> </UseTemplate> </True> </Condition> <UseTemplate Name="ASOBO_GT_Material_Emissive_Code"/> </Template>Parameters initialization:
-
Default
Condition: Check(FAILURE_CIRCUIT)
-
Case: False
Parameters set:
- FAILURE
-
Case: True
Parameters set:
- FAILURE (using FAILURE_CIRCUIT)
Condition: Valid(BLINK)
-
Case: True
Parameters set:
- BLINK_FREQUENCY
- BLINK_DURATION
-
-
Override
Condition: Valid(BLINK)
-
Case: True
Parameters set:
- EMISSIVE_CODE (using EMISSIVE_CODE, BLINK_FREQUENCY, BLINK_DURATION)
-
-
Override
Condition: Check(ALT_CODE)
-
Case: True
Parameters set:
- EMISSIVE_CODE (using EMISSIVE_CODE, ALT_CODE)
-
Templates used:
Condition: Valid(EMISSIVE_DRIVES_VISIBILITY)
-
Case: True
Templates used:
-
ASOBO_GT_Visibility_Code
Parameters set:
- VISIBILITY_CODE (using EMISSIVE_CODE, FAILURE)
-
ASOBO_GT_Visibility_Code
-
Default
-
ASOBO_GT_Emissive_Potentiometer
Definition from XML<Template Name="ASOBO_GT_Emissive_Potentiometer"> <DefaultTemplateParameters> <EMISSIVE_CODE>1</EMISSIVE_CODE> </DefaultTemplateParameters> <UseTemplate Name="ASOBO_GT_Emissive_Gauge"> <EMISSIVE_CODE>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent over 100) #EMISSIVE_CODE# *</EMISSIVE_CODE> </UseTemplate> </Template>Parameters initialization:
-
Default
Parameters set:
- EMISSIVE_CODE
Templates used:
-
ASOBO_GT_Emissive_Gauge
Parameters set:
- EMISSIVE_CODE (using POTENTIOMETER, EMISSIVE_CODE)
-
Default
-
ASOBO_GT_Emissive_Power_Setting
Definition from XML<Template Name="ASOBO_GT_Emissive_Power_Setting"> <DefaultTemplateParameters> <EMISSIVE_CODE>1</EMISSIVE_CODE> </DefaultTemplateParameters> <UseTemplate Name="ASOBO_GT_Emissive_Gauge"> <EMISSIVE_CODE>(A:#SIMVAR_POWER_SETTING#, Percent over 100) #EMISSIVE_CODE# *</EMISSIVE_CODE> </UseTemplate> </Template>Parameters initialization:
-
Default
Parameters set:
- EMISSIVE_CODE
Templates used:
-
ASOBO_GT_Emissive_Gauge
Parameters set:
- EMISSIVE_CODE (using SIMVAR_POWER_SETTING, EMISSIVE_CODE)
-
Default
-
ASOBO_GT_Emissive_Gauge_Sim
Definition from XML<Template Name="ASOBO_GT_Emissive_Gauge_Sim"> <DefaultTemplateParameters> <FAILURE>(A:CIRCUIT GENERAL PANEL ON, Bool)</FAILURE> <EMISSIVE_SIMVAR_SCALE>1</EMISSIVE_SIMVAR_SCALE> <EMISSIVE_SIMVAR_BIAS>0</EMISSIVE_SIMVAR_BIAS> <EMISSIVE_SIMVAR_UNITS>Bool</EMISSIVE_SIMVAR_UNITS> <EMISSIVE_DRIVES_VISIBILITY>False</EMISSIVE_DRIVES_VISIBILITY> </DefaultTemplateParameters> <Condition Valid="EMISSIVE_DRIVES_VISIBILITY"> <True> <UseTemplate Name="ASOBO_GT_Visibility_Code"> <VISIBILITY_CODE>(A:#EMISSIVE_SIMVAR#, #EMISSIVE_SIMVAR_UNITS#) #ALT_CODE# max #EMISSIVE_SIMVAR_SCALE# * #EMISSIVE_SIMVAR_BIAS# + 0 > #FAILURE# and</VISIBILITY_CODE> </UseTemplate> </True> </Condition> <UseTemplate Name="ASOBO_GT_Material_Emissive_Code"> <EMISSIVE_CODE>(A:#EMISSIVE_SIMVAR#, #EMISSIVE_SIMVAR_UNITS#) #EMISSIVE_SIMVAR_SCALE# * #EMISSIVE_SIMVAR_BIAS# +</EMISSIVE_CODE> <Condition Check="ALT_CODE"> <EMISSIVE_CODE>(A:#EMISSIVE_SIMVAR#, #EMISSIVE_SIMVAR_UNITS#) #ALT_CODE# max #EMISSIVE_SIMVAR_SCALE# * #EMISSIVE_SIMVAR_BIAS# +</EMISSIVE_CODE> </Condition> </UseTemplate> </Template>Parameters initialization:
-
Default
Parameters set:
- FAILURE
- EMISSIVE_SIMVAR_SCALE
- EMISSIVE_SIMVAR_BIAS
- EMISSIVE_SIMVAR_UNITS
- EMISSIVE_DRIVES_VISIBILITY
Templates used:
-
ASOBO_GT_Material_Emissive_Code
Parameters set:
- EMISSIVE_CODE (using EMISSIVE_SIMVAR, EMISSIVE_SIMVAR_UNITS, EMISSIVE_SIMVAR_SCALE, EMISSIVE_SIMVAR_BIAS)
Condition: Check(ALT_CODE)
-
Case: True
Parameters set:
- EMISSIVE_CODE (using EMISSIVE_SIMVAR, EMISSIVE_SIMVAR_UNITS, ALT_CODE, EMISSIVE_SIMVAR_SCALE, EMISSIVE_SIMVAR_BIAS)
Condition: Valid(EMISSIVE_DRIVES_VISIBILITY)
-
Case: True
Templates used:
-
ASOBO_GT_Visibility_Code
Parameters set:
- VISIBILITY_CODE (using EMISSIVE_SIMVAR, EMISSIVE_SIMVAR_UNITS, ALT_CODE, EMISSIVE_SIMVAR_SCALE, EMISSIVE_SIMVAR_BIAS, FAILURE)
-
ASOBO_GT_Visibility_Code
-
Default
-
ASOBO_GT_Screen_Template
Definition from XML<Template Name="ASOBO_GT_Screen_Template"> <DefaultTemplateParameters> <POTENTIOMETER>4</POTENTIOMETER> <SCREEN_LIGHT_DIMMING_SCALE>0.5</SCREEN_LIGHT_DIMMING_SCALE> <SCREEN_MIN_EMISSIVE_PERCENT>0.05</SCREEN_MIN_EMISSIVE_PERCENT> <MIN_AMBIENT_EMISSIVE_PERCENT>0.1</MIN_AMBIENT_EMISSIVE_PERCENT> <MAX_EMISSIVE_PERCENT>1</MAX_EMISSIVE_PERCENT> <MAX_AMBIENT_PERCENT>1</MAX_AMBIENT_PERCENT> <INSTR_ID>1</INSTR_ID> <ID>1</ID> <SCREEN_PREFIX/> <SCREEN_ID/> </DefaultTemplateParameters> <OverrideTemplateParameters> <EMISSIVE_BASE_RANGE Process="Float">#MAX_EMISSIVE_PERCENT# #SCREEN_MIN_EMISSIVE_PERCENT# -</EMISSIVE_BASE_RANGE> <AMBIENT_BASE_RANGE Process="Float">#MAX_AMBIENT_PERCENT# #MIN_AMBIENT_EMISSIVE_PERCENT# -</AMBIENT_BASE_RANGE> </OverrideTemplateParameters> <UseTemplate Name="ASOBO_GT_Helper_Suffix_ID_Appender"> <TEMPLATE_TO_CALL>ASOBO_GT_Screen_SubTemplate</TEMPLATE_TO_CALL> </UseTemplate> </Template>Parameters initialization:
-
Default
Parameters set:
- POTENTIOMETER
- SCREEN_LIGHT_DIMMING_SCALE
- SCREEN_MIN_EMISSIVE_PERCENT
- MIN_AMBIENT_EMISSIVE_PERCENT
- MAX_EMISSIVE_PERCENT
- MAX_AMBIENT_PERCENT
- INSTR_ID
- ID
- SCREEN_PREFIX
- SCREEN_ID
-
Override
Parameters set:
- EMISSIVE_BASE_RANGE (using MAX_EMISSIVE_PERCENT, SCREEN_MIN_EMISSIVE_PERCENT)
- AMBIENT_BASE_RANGE (using MAX_AMBIENT_PERCENT, MIN_AMBIENT_EMISSIVE_PERCENT)
Templates used:
-
ASOBO_GT_Helper_Suffix_ID_Appender
- May include a subtemplate using the parameter 'TEMPLATE_TO_CALL' and resolve to the following template(s):
Parameters set:
- TEMPLATE_TO_CALL
-
Default
-
ASOBO_GT_Screen_SubTemplate
Definition from XML<Template Name="ASOBO_GT_Screen_SubTemplate"> <DefaultTemplateParameters> <NODE_ID>#SCREEN_PREFIX##SCREEN_ID#</NODE_ID> <SCREEN_AVERAGE_LUMINOSITY>(L:#SCREEN_PREFIX##SCREEN_ID#_ScreenLuminosity)</SCREEN_AVERAGE_LUMINOSITY> <Condition Check="CIRCUIT_ID"> <True> <FAILURE>(A:CIRCUIT ON:#CIRCUIT_ID#, Bool)</FAILURE> </True> <False> <FAILURE>(A:CIRCUIT GENERAL PANEL ON, Bool)</FAILURE> </False> </Condition> <Condition Valid="STATIC_INTENSITY"> <True> <BASE_INTENSITY_FACTOR>#SCREEN_LIGHT_DIMMING_SCALE#</BASE_INTENSITY_FACTOR> </True> <False> <Condition Valid="SIMVAR_POWER_SETTING"> <True> <BASE_INTENSITY_FACTOR>(A:#SIMVAR_POWER_SETTING#, Percent over 100) #SCREEN_LIGHT_DIMMING_SCALE# *</BASE_INTENSITY_FACTOR> </True> <False> <BASE_INTENSITY_FACTOR>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent over 100) #SCREEN_LIGHT_DIMMING_SCALE# *</BASE_INTENSITY_FACTOR> </False> </Condition> </False> </Condition> <Condition NotEmpty="AUTOMATIC_BRIGHTNESS"> <True> <AUTOMATIC_BRIGHTNESS_FACTOR>(A:GLASSCOCKPIT AUTOMATIC BRIGHTNESS, Percent over 100)</AUTOMATIC_BRIGHTNESS_FACTOR> </True> <False> <AUTOMATIC_BRIGHTNESS_FACTOR>1</AUTOMATIC_BRIGHTNESS_FACTOR> </False> </Condition> </DefaultTemplateParameters> <OverrideTemplateParameters> <SCREEN_EMISSIVE_CODE>#BASE_INTENSITY_FACTOR# #EMISSIVE_BASE_RANGE# * #AUTOMATIC_BRIGHTNESS_FACTOR# * #SCREEN_MIN_EMISSIVE_PERCENT# +</SCREEN_EMISSIVE_CODE> <AMBIENT_EMISSIVE_CODE>#SCREEN_AVERAGE_LUMINOSITY# #BASE_INTENSITY_FACTOR# * #AMBIENT_BASE_RANGE# * #MIN_AMBIENT_EMISSIVE_PERCENT# + #FAILURE# #SCREEN_AVERAGE_LUMINOSITY# 0 > and * 100 *</AMBIENT_EMISSIVE_CODE> </OverrideTemplateParameters> <Condition Check="AMBIENT_POTENTIOMETER"> <UseTemplate Name="ASOBO_LIGHTING_Ambient_Template"> <BOUNCE_POTENTIOMETER_PERCENT>#AMBIENT_EMISSIVE_CODE#</BOUNCE_POTENTIOMETER_PERCENT> <POTENTIOMETER>#AMBIENT_POTENTIOMETER#</POTENTIOMETER> </UseTemplate> </Condition> <Component ID="#NODE_ID#_Emissive" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Emissive_Gauge"> <PART_ID>#SCREEN_PREFIX##SCREEN_ID#</PART_ID> <EMISSIVE_CODE>#SCREEN_EMISSIVE_CODE#</EMISSIVE_CODE> </UseTemplate> </Component> </Template>Parameters initialization:
-
Default
Parameters set:
- NODE_ID (using SCREEN_PREFIX, SCREEN_ID)
- SCREEN_AVERAGE_LUMINOSITY (using SCREEN_PREFIX, SCREEN_ID)
Condition: Check(CIRCUIT_ID)
-
Case: True
Parameters set:
- FAILURE (using CIRCUIT_ID)
-
Case: False
Parameters set:
- FAILURE
Condition: Valid(STATIC_INTENSITY)
-
Case: True
Parameters set:
- BASE_INTENSITY_FACTOR (using SCREEN_LIGHT_DIMMING_SCALE)
-
Case: False
Condition: Valid(SIMVAR_POWER_SETTING)
-
Case: True
Parameters set:
- BASE_INTENSITY_FACTOR (using SIMVAR_POWER_SETTING, SCREEN_LIGHT_DIMMING_SCALE)
-
Case: False
Parameters set:
- BASE_INTENSITY_FACTOR (using POTENTIOMETER, SCREEN_LIGHT_DIMMING_SCALE)
-
Condition: NotEmpty(AUTOMATIC_BRIGHTNESS)
-
Case: True
Parameters set:
- AUTOMATIC_BRIGHTNESS_FACTOR
-
Case: False
Parameters set:
- AUTOMATIC_BRIGHTNESS_FACTOR
-
Override
Parameters set:
- SCREEN_EMISSIVE_CODE (using BASE_INTENSITY_FACTOR, EMISSIVE_BASE_RANGE, AUTOMATIC_BRIGHTNESS_FACTOR, SCREEN_MIN_EMISSIVE_PERCENT)
- AMBIENT_EMISSIVE_CODE (using SCREEN_AVERAGE_LUMINOSITY, BASE_INTENSITY_FACTOR, AMBIENT_BASE_RANGE, MIN_AMBIENT_EMISSIVE_PERCENT, FAILURE)
Parameters read:
- NODE_ID
Components:
-
#NODE_ID#_Emissive (Node: #NODE_ID#)
Templates used:
-
ASOBO_GT_Emissive_Gauge
Parameters set:
- PART_ID (using SCREEN_PREFIX, SCREEN_ID)
- EMISSIVE_CODE (using SCREEN_EMISSIVE_CODE)
-
ASOBO_GT_Emissive_Gauge
Condition: Check(AMBIENT_POTENTIOMETER)
-
Case: True
Templates used:
-
ASOBO_LIGHTING_Ambient_Template
Parameters set:
- BOUNCE_POTENTIOMETER_PERCENT (using AMBIENT_EMISSIVE_CODE)
- POTENTIOMETER (using AMBIENT_POTENTIOMETER)
-
ASOBO_LIGHTING_Ambient_Template
-
Default