[gd_scene load_steps=2 format=2]

[ext_resource path="res://castagne/editor/tools/compile/CETool-Compile.gd" type="Script" id=1]

[node name="Compile" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )

[node name="CompileSmall" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Errors" type="ItemList" parent="CompileSmall"]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Analyzer" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Sidebar" type="VBoxContainer" parent="Analyzer"]
anchor_right = 0.2
anchor_bottom = 1.0
alignment = 1

[node name="Label2" type="Label" parent="Analyzer/Sidebar"]
margin_top = 411.0
margin_right = 384.0
margin_bottom = 425.0
text = "--- State Selection ---"
align = 1

[node name="StateName" type="LineEdit" parent="Analyzer/Sidebar"]
margin_top = 429.0
margin_right = 384.0
margin_bottom = 453.0
text = "Character"

[node name="LoadCurrentState" type="Button" parent="Analyzer/Sidebar"]
margin_top = 457.0
margin_right = 384.0
margin_bottom = 477.0
hint_tooltip = "Init phase is executed once for each new entity. This is used for states beginning with Init--"
size_flags_horizontal = 3
text = "Load Current State"

[node name="Label" type="Label" parent="Analyzer/Sidebar"]
margin_top = 481.0
margin_right = 384.0
margin_bottom = 495.0
text = "--- Phase Selection ---"
align = 1

[node name="Phases" type="GridContainer" parent="Analyzer/Sidebar"]
margin_top = 499.0
margin_right = 384.0
margin_bottom = 615.0
columns = 2

[node name="Init" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_right = 190.0
margin_bottom = 20.0
hint_tooltip = "Init phase is executed once for each new entity. This is used for states beginning with Init--"
size_flags_horizontal = 3
text = "Init"

[node name="Subentity" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_left = 194.0
margin_right = 384.0
margin_bottom = 20.0
hint_tooltip = "Freeze phase is activated on command for elements like hitstun, or super freeze. This is a different main loop type."
size_flags_horizontal = 3
text = "Subentity"

[node name="Action" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_top = 24.0
margin_right = 190.0
margin_bottom = 44.0
hint_tooltip = "Main phase where behavior is set up. Most of the time, the only phase you need to be concerned with."
size_flags_horizontal = 3
text = "Action"

[node name="Reaction" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_left = 194.0
margin_top = 24.0
margin_right = 384.0
margin_bottom = 44.0
hint_tooltip = "Phase executed after the physics resolution. Mostly useful to react to hits or movement changes, and where the transitions are actually made."
size_flags_horizontal = 3
text = "Reaction"

[node name="AI" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_top = 48.0
margin_right = 190.0
margin_bottom = 68.0
hint_tooltip = "Phase used to drive AI behavior by pressing buttons. Executed before the Action phase."
size_flags_horizontal = 3
text = "AI"

[node name="Manual" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_left = 194.0
margin_top = 48.0
margin_right = 384.0
margin_bottom = 68.0
hint_tooltip = "Special phase used internally by the engine to force full execution at times."
size_flags_horizontal = 3
text = "Manual"

[node name="Freeze" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_top = 72.0
margin_right = 190.0
margin_bottom = 92.0
hint_tooltip = "Freeze phase is activated on command for elements like hitstun, or super freeze. This is a different main loop type."
size_flags_horizontal = 3
text = "Freeze"

[node name="Halt" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_left = 194.0
margin_top = 72.0
margin_right = 384.0
margin_bottom = 92.0
hint_tooltip = "Freeze phase is activated on command for elements like hitstun, or super freeze. This is a different main loop type."
size_flags_horizontal = 3
text = "Halt"

[node name="Event" type="Button" parent="Analyzer/Sidebar/Phases"]
margin_top = 96.0
margin_right = 190.0
margin_bottom = 116.0
hint_tooltip = "Freeze phase is activated on command for elements like hitstun, or super freeze. This is a different main loop type."
size_flags_horizontal = 3
text = "Event"

[node name="EventName" type="OptionButton" parent="Analyzer/Sidebar/Phases"]
margin_left = 194.0
margin_top = 96.0
margin_right = 384.0
margin_bottom = 116.0
text = "No events!"
items = [ "No events!", null, false, 0, null ]
selected = 0

[node name="Label3" type="Label" parent="Analyzer/Sidebar"]
margin_top = 619.0
margin_right = 384.0
margin_bottom = 633.0
text = "--- Variables ---"
align = 1

[node name="VariablesTotal" type="Label" parent="Analyzer/Sidebar"]
margin_top = 637.0
margin_right = 384.0
margin_bottom = 668.0
text = "Global: 0 / Players: 0 / Entities: 0
Total: 0"
align = 1

[node name="Main" type="VBoxContainer" parent="Analyzer"]
anchor_left = 0.2
anchor_right = 1.0
anchor_bottom = 1.0
alignment = 1

[node name="Label" type="Label" parent="Analyzer/Main"]
margin_right = 1536.0
margin_bottom = 14.0
text = "--- Code Visualisation ---"
align = 1

[node name="State" type="Label" parent="Analyzer/Main"]
margin_top = 18.0
margin_right = 1536.0
margin_bottom = 32.0
text = "State: "
align = 1

[node name="HSeparator" type="HSeparator" parent="Analyzer/Main"]
margin_top = 36.0
margin_right = 1536.0
margin_bottom = 40.0

[node name="Display" type="TextEdit" parent="Analyzer/Main"]
margin_top = 44.0
margin_right = 1536.0
margin_bottom = 1080.0
size_flags_vertical = 3
text = "FUNCTION 1()
FUNCTION 2()"
readonly = true
highlight_current_line = true
syntax_highlighting = true
show_line_numbers = true

[connection signal="item_activated" from="CompileSmall/Errors" to="." method="_on_Errors_item_activated"]
[connection signal="text_changed" from="Analyzer/Sidebar/StateName" to="." method="_on_StateName_text_changed"]
[connection signal="pressed" from="Analyzer/Sidebar/LoadCurrentState" to="." method="_on_LoadCurrentState_pressed"]
[connection signal="item_selected" from="Analyzer/Sidebar/Phases/EventName" to="." method="_on_EventName_item_selected"]
