[Go back to index]

Asobo\Generic\Complex\Misc.xml

Source XML
<ModelBehaviors> <!-- Needle Animation that looks up a simvar value and uses frame between a min and max val Required parameter: ANIM_NAME SIMVAR UNITS MIN_VALUE MAX_VALUE --> <Template Name="ASOBO_GT_Needle_Code"> <DefaultTemplateParameters> <SWITCH_POSITION_TYPE>O</SWITCH_POSITION_TYPE> <SWITCH_POSITION_VAR>SwitchState</SWITCH_POSITION_VAR> <ID></ID> <ANIMATION_OFFSET_CODE></ANIMATION_OFFSET_CODE> <SIMVAR_ADJUSTMENT_CODE></SIMVAR_ADJUSTMENT_CODE> </DefaultTemplateParameters> <EditableTemplateParameters> <AddParams> <HIGHLIGHT_NODE_ID></HIGHLIGHT_NODE_ID> </AddParams> </EditableTemplateParameters> <Component ID="#NODE_ID##ID#" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Anim_Code"> <Condition Check="HIGHLIGHT_NODE_ID"> <PART_ID></PART_ID> </Condition> <Condition Check="OVERRIDE_ANIM_CODE"> <True> <ANIM_CODE>#OVERRIDE_ANIM_CODE#</ANIM_CODE> </True> <False> <ANIM_CODE> (A:#SIMVAR#, #UNITS#) #SIMVAR_ADJUSTMENT_CODE# #MIN_VALUE# - #MAX_VALUE# #MIN_VALUE# - / #ANIMATION_OFFSET_CODE# 100 * </ANIM_CODE> </False> </Condition> </UseTemplate> </Component> <Condition Check="HIGHLIGHT_NODE_ID"> <UseTemplate Name="ASOBO_GT_ComponentWith_PART_ID"> <NODE_ID>#HIGHLIGHT_NODE_ID#</NODE_ID> </UseTemplate> </Condition> </Template> <!-- Create a component node with a nested PART_ID node [Required]NODE_ID(Text): Name of the node and part_id by default PART_ID(Text, default:NODE_ID): Override part_id --> <Template Name = "ASOBO_GT_ComponentWith_PART_ID"> <DefaultTemplateParameters> <ID>1</ID> </DefaultTemplateParameters> <Component ID="#NODE_ID#_PartID" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Part_ID"> <Condition Check="PART_ID"> <False> <PART_ID>#NODE_ID#</PART_ID> </False> </Condition> </UseTemplate> <Condition Valid="CAMERA_TITLE"> <CameraTitle>#CAMERA_TITLE#</CameraTitle> </Condition> </Component> </Template> <!-- Generates PartIds from PART_ID parameters --> <Template Name = "ASOBO_GT_Part_ID"> <EditableTemplateParameters> <AddParams> <NODE_ID></NODE_ID> </AddParams> </EditableTemplateParameters> <UseTemplate Name="ASOBO_GT_Part_ID_SubTemplate"></UseTemplate> <Condition Check="OTHER_PART_ID"> <UseTemplate Name="ASOBO_GT_Part_ID_SubTemplate"> <PART_ID>#OTHER_PART_ID#</PART_ID> </UseTemplate> </Condition> </Template> <Template Name = "ASOBO_GT_Part_ID_SubTemplate"> <Condition Check="PART_ID"> <Condition Check="PART_ID" Match=""> <False> <PartID>#PART_ID#</PartID> <Condition Check="ID"> <Condition Check="NO_ID_IN_PARTID"> <False> <PartID>#PART_ID##ID#</PartID> </False> </Condition> </Condition> </False> </Condition> </Condition> </Template> <!-- Create a component which contains a PartId used for Highlighting a Gauge --> <Template Name = "ASOBO_GT_Highlight_Template"> <EditableTemplateParameters> <AddParams> <HIGHLIGHT_NODE_ID></HIGHLIGHT_NODE_ID> </AddParams> </EditableTemplateParameters> <UseTemplate Name="ASOBO_GT_ComponentWith_PART_ID"> <NODE_ID>#HIGHLIGHT_NODE_ID#</NODE_ID> </UseTemplate> </Template> <!-- Create a component which blocks interactions --> <Template Name = "ASOBO_GT_Interaction_Blocker"> <Component ID="#NODE_ID#" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Interaction_NoInteraction"> </UseTemplate> </Component> </Template> </ModelBehaviors>

Templates

Template list
  • ASOBO_GT_Needle_Code

    Definition from XML
    <Template Name="ASOBO_GT_Needle_Code"> <DefaultTemplateParameters> <SWITCH_POSITION_TYPE>O</SWITCH_POSITION_TYPE> <SWITCH_POSITION_VAR>SwitchState</SWITCH_POSITION_VAR> <ID/> <ANIMATION_OFFSET_CODE/> <SIMVAR_ADJUSTMENT_CODE/> </DefaultTemplateParameters> <EditableTemplateParameters> <AddParams> <HIGHLIGHT_NODE_ID/> </AddParams> </EditableTemplateParameters> <Component ID="#NODE_ID##ID#" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Anim_Code"> <Condition Check="HIGHLIGHT_NODE_ID"> <PART_ID/> </Condition> <Condition Check="OVERRIDE_ANIM_CODE"> <True> <ANIM_CODE>#OVERRIDE_ANIM_CODE#</ANIM_CODE> </True> <False> <ANIM_CODE> (A:#SIMVAR#, #UNITS#) #SIMVAR_ADJUSTMENT_CODE# #MIN_VALUE# - #MAX_VALUE# #MIN_VALUE# - / #ANIMATION_OFFSET_CODE# 100 * </ANIM_CODE> </False> </Condition> </UseTemplate> </Component> <Condition Check="HIGHLIGHT_NODE_ID"> <UseTemplate Name="ASOBO_GT_ComponentWith_PART_ID"> <NODE_ID>#HIGHLIGHT_NODE_ID#</NODE_ID> </UseTemplate> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • SWITCH_POSITION_TYPE
      • SWITCH_POSITION_VAR
      • ID
      • ANIMATION_OFFSET_CODE
      • SIMVAR_ADJUSTMENT_CODE

    Parameters read:

    • NODE_ID
    • ID

    Components:

    • #NODE_ID##ID# (Node: #NODE_ID#)

      Templates used:

      • ASOBO_GT_Anim_Code

        Condition: Check(HIGHLIGHT_NODE_ID)

        • Case: True

          Parameters set:

          • PART_ID

        Condition: Check(OVERRIDE_ANIM_CODE)

        • Case: True

          Parameters set:

          • ANIM_CODE (using OVERRIDE_ANIM_CODE)
        • Case: False

          Parameters set:

          • ANIM_CODE (using SIMVAR, UNITS, SIMVAR_ADJUSTMENT_CODE, MIN_VALUE, MAX_VALUE, ANIMATION_OFFSET_CODE)

    Condition: Check(HIGHLIGHT_NODE_ID)

  • ASOBO_GT_ComponentWith_PART_ID

    Definition from XML
    <Template Name="ASOBO_GT_ComponentWith_PART_ID"> <DefaultTemplateParameters> <ID>1</ID> </DefaultTemplateParameters> <Component ID="#NODE_ID#_PartID" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Part_ID"> <Condition Check="PART_ID"> <False> <PART_ID>#NODE_ID#</PART_ID> </False> </Condition> </UseTemplate> <Condition Valid="CAMERA_TITLE"> <CameraTitle>#CAMERA_TITLE#</CameraTitle> </Condition> </Component> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • ID

    Parameters read:

    • NODE_ID

    Components:

    • #NODE_ID#_PartID (Node: #NODE_ID#)

      Templates used:

      • ASOBO_GT_Part_ID

        Condition: Check(PART_ID)

        • Case: False

          Parameters set:

          • PART_ID (using NODE_ID)

      Condition: Valid(CAMERA_TITLE)

      • Case: True

        Parameters read:

        • CAMERA_TITLE
  • ASOBO_GT_Part_ID

    Definition from XML
    <Template Name="ASOBO_GT_Part_ID"> <EditableTemplateParameters> <AddParams> <NODE_ID/> </AddParams> </EditableTemplateParameters> <UseTemplate Name="ASOBO_GT_Part_ID_SubTemplate"/> <Condition Check="OTHER_PART_ID"> <UseTemplate Name="ASOBO_GT_Part_ID_SubTemplate"> <PART_ID>#OTHER_PART_ID#</PART_ID> </UseTemplate> </Condition> </Template>

    Templates used:

    Condition: Check(OTHER_PART_ID)

  • ASOBO_GT_Part_ID_SubTemplate

    Definition from XML
    <Template Name="ASOBO_GT_Part_ID_SubTemplate"> <Condition Check="PART_ID"> <Condition Check="PART_ID" Match=""> <False> <PartID>#PART_ID#</PartID> <Condition Check="ID"> <Condition Check="NO_ID_IN_PARTID"> <False> <PartID>#PART_ID##ID#</PartID> </False> </Condition> </Condition> </False> </Condition> </Condition> </Template>

    Condition: Check(PART_ID)

    • Case: True

      Condition: Check(PART_ID)

      • Case: False

        Parameters read:

        • PART_ID

        Condition: Check(ID)

        • Case: True

          Condition: Check(NO_ID_IN_PARTID)

          • Case: False

            Parameters read:

            • PART_ID
            • ID
  • ASOBO_GT_Highlight_Template

    Definition from XML
    <Template Name="ASOBO_GT_Highlight_Template"> <EditableTemplateParameters> <AddParams> <HIGHLIGHT_NODE_ID/> </AddParams> </EditableTemplateParameters> <UseTemplate Name="ASOBO_GT_ComponentWith_PART_ID"> <NODE_ID>#HIGHLIGHT_NODE_ID#</NODE_ID> </UseTemplate> </Template>

    Templates used:

  • ASOBO_GT_Interaction_Blocker

    Definition from XML
    <Template Name="ASOBO_GT_Interaction_Blocker"> <Component ID="#NODE_ID#" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Interaction_NoInteraction"/> </Component> </Template>

    Parameters read:

    • NODE_ID

    Components: