Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Nov 6, 2023
2 parents 3e55023 + 826f233 commit b5fa04c
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 152 deletions.
42 changes: 18 additions & 24 deletions resources/engine/gui/template_animationgraph_node_animation.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
<template>

<template>

<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Animation" node-type-color="{$node-type-color}">

<!-- input container -->
<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<layout alignment="vertical" width="85%" height="auto">
<template
id="dropdown_animation"
id="{$id}_dropdown"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="dropdown_animation_input_type_panel.condition=dropdown"
on-initialize="{$id}_dropdown_input_type_panel.condition=dropdown"
/>

<template
id="progressbar_animation"
id="{$id}_progressbar"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="progressbar_animation_input_type_panel.condition=progressbar"
on-initialize="{$id}_progressbar_input_type_panel.condition=progressbar"
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output1"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

</layout>
<!-- --------------- -->

</layout>

</layout>
<!-- --------------- -->

</template>

</template>
42 changes: 23 additions & 19 deletions resources/engine/gui/template_animationgraph_node_blend.xml
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
<template>

<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Blend" node-type-color="{$node-type-color}">

<!-- base -->
<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<layout alignment="vertical" width="85%" height="auto">
<template
id="base"
id="{$id}_input"
src="resources/engine/gui/template_visualcode_input.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"

text="Base"
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

/>
</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

/>
</layout>
<!-- --------------- -->

</layout>
</layout>
<!-- --------------- -->

<!-- first blend input -->
<template
id="{$id}_blendinput1"
src="resources/engine/gui/template_animationgraph_blendinput.xml"

text="Blend 1"
/>
<!-- --------------- -->

</template>

</template>
40 changes: 17 additions & 23 deletions resources/engine/gui/template_animationgraph_node_blendspace.xml
Original file line number Diff line number Diff line change
@@ -1,51 +1,45 @@
<template>

<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Blend Space 2D" node-type-color="{$node-type-color}">

<!-- ----------- -->
<layout alignment="horizontal" width="100%" height="auto">
<layout alignment="vertical" width="85%" height="auto">
<template
id="input_x"
id="{$id}_inputx"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="input_x_input_type_panel.condition=input"
on-initialize="{$id}_inputx_input_type_panel.condition=input"

text="X"

input_text="1"
input_unit=""
input_options=""
/>

<template
id="input_y"
id="{$id}_inputy"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="input_y_input_type_panel.condition=input"
on-initialize="{$id}_inputy_input_type_panel.condition=input"

text="Y"

input_text="1"
input_unit=""
input_options=""
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output1"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

</layout>
<!-- --------------- -->

</layout>

</layout>
<!-- --------------- -->

</template>

</template>
23 changes: 23 additions & 0 deletions resources/engine/gui/template_animationgraph_node_output.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template>

<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Output" node-type-color="{$node-type-color}">

<!-- base -->
<layout alignment="horizontal" width="100%" height="auto">
<layout alignment="vertical" width="85%" height="auto">
<template
id="{$id}_input"
src="resources/engine/gui/template_visualcode_input.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"

text="In"
/>
</layout>
</layout>
<!-- --------------- -->

</template>

</template>
38 changes: 16 additions & 22 deletions resources/engine/gui/template_animationgraph_node_speedscale.xml
Original file line number Diff line number Diff line change
@@ -1,49 +1,43 @@
<template>


<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Speed Scale" node-type-color="{$node-type-color}">

<!-- ----------- -->
<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<layout alignment="vertical" width="85%" height="auto">
<template
id="base"
id="{$id}_input"
src="resources/engine/gui/template_visualcode_input.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"

text="In"
/>

<template
id="speed"
id="{$id}_speed"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="speed_input_type_panel.condition=input"
on-initialize="{$id}_speed_input_type_panel.condition=input"

text="Scale"

input_text="1.00"
input_options="type=float,,step=0.01,decimals=2"
input_image="resources/engine/images/inputslider.png"
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output1"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

</layout>
<!-- --------------- -->

</layout>

</layout>
<!-- --------------- -->

</template>

</template>
40 changes: 17 additions & 23 deletions resources/engine/gui/template_animationgraph_node_statemachine.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
<template>


<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="State Machine" node-type-color="{$node-type-color}">

<!-- ----------- -->
<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<layout alignment="vertical" width="85%" height="auto">
<template
id="dropdown_state"
id="{$id}_dropdown"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="dropdown_state_input_type_panel.condition=dropdown"
on-initialize="{$id}_dropdown_input_type_panel.condition=dropdown"
/>

<template
id="progressbar_state"
id="{$id}_progressbar"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="progressbar_state_input_type_panel.condition=progressbar"
on-initialize="{$id}_progressbar_input_type_panel.condition=progressbar"
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output1"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

</layout>
<!-- --------------- -->

</layout>

</layout>
<!-- --------------- -->

</template>

</template>
47 changes: 27 additions & 20 deletions resources/engine/gui/template_animationgraph_node_transition.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
<template>


<template id="{$id}" src="resources/engine/gui/template_visualcode_node.xml" node-name="Transition" node-type-color="{$node-type-color}">

<!-- base -->
<layout alignment="horizontal" width="100%" height="auto">

<!-- input container -->
<layout id="{$id}_input_container" alignment="vertical" width="85%" height="auto">

<layout alignment="vertical" width="85%" height="auto">
<template
id="dropdown_state"
id="{$id}_dropdown"
src="resources/engine/gui/template_visualcode_input.xml"
on-initialize="dropdown_state_input_type_panel.condition=dropdown"
on-initialize="{$id}_dropdown_input_type_panel.condition=dropdown"

text="Current"
/>

</layout>
<!-- --------------- -->

<!-- output container -->
<layout id="{$id}_output_container" alignment="vertical" width="15%" height="auto">

</layout>
<layout alignment="vertical" width="15%" height="auto">
<template
id="output1"
id="{$id}_output"
src="resources/engine/gui/template_visualcode_output.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"
/>

</layout>
<!-- --------------- -->

</layout>

</layout>
<!-- --------------- -->

<!-- first state input -->
<template
id="{$id}_state1"
src="resources/engine/gui/template_visualcode_input.xml"

pin_type_connected="resources/engine/images/visualcode_flow_connected.png"
pin_type_unconnected="resources/engine/images/visualcode_flow_unconnected.png"

text="State 1"
/>
<!-- --------------- -->

</template>

</template>
Loading

0 comments on commit b5fa04c

Please sign in to comment.