You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
8.1 KiB
102 lines
8.1 KiB
[gd_scene load_steps=9 format=3 uid="uid://ir6334lqtuwt"]
|
|
|
|
[ext_resource type="Script" path="res://addons/dialogic/Editor/Events/Fields/field_condition.gd" id="1_owjj0"]
|
|
[ext_resource type="PackedScene" uid="uid://d3bhehatwoio" path="res://addons/dialogic/Editor/Events/Fields/field_options_fixed.tscn" id="2_f6v80"]
|
|
[ext_resource type="PackedScene" uid="uid://c0vkcehgjsjy" path="res://addons/dialogic/Editor/Events/Fields/field_text_singleline.tscn" id="3_3kfwc"]
|
|
[ext_resource type="PackedScene" uid="uid://kdpp3mibml33" path="res://addons/dialogic/Editor/Events/Fields/field_number.tscn" id="4_6q3a6"]
|
|
[ext_resource type="PackedScene" uid="uid://dm5hxmhyyxgq" path="res://addons/dialogic/Editor/Events/Fields/field_bool_check.tscn" id="5_1x02a"]
|
|
[ext_resource type="PackedScene" uid="uid://dpwhshre1n4t6" path="res://addons/dialogic/Editor/Events/Fields/field_options_dynamic.tscn" id="6_5a2xd"]
|
|
|
|
[sub_resource type="Image" id="Image_cgfp5"]
|
|
data = {
|
|
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
|
"format": "RGBA8",
|
|
"height": 16,
|
|
"mipmaps": false,
|
|
"width": 16
|
|
}
|
|
|
|
[sub_resource type="ImageTexture" id="ImageTexture_4jujf"]
|
|
image = SubResource("Image_cgfp5")
|
|
|
|
[node name="Field_Condition" type="HBoxContainer"]
|
|
offset_right = 77.0
|
|
offset_bottom = 31.0
|
|
script = ExtResource("1_owjj0")
|
|
|
|
[node name="SimpleEditor" type="HBoxContainer" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value1Type" parent="SimpleEditor" instance=ExtResource("2_f6v80")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
tooltip_text = "Change type"
|
|
text = ""
|
|
|
|
[node name="Value1Text" parent="SimpleEditor" instance=ExtResource("3_3kfwc")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value1Number" parent="SimpleEditor" instance=ExtResource("4_6q3a6")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value1Bool" parent="SimpleEditor" instance=ExtResource("5_1x02a")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value1Variable" parent="SimpleEditor" instance=ExtResource("6_5a2xd")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
placeholder_text = "Variable"
|
|
|
|
[node name="Operator" parent="SimpleEditor" instance=ExtResource("2_f6v80")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value2Type" parent="SimpleEditor" instance=ExtResource("2_f6v80")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
tooltip_text = "Change type"
|
|
text = ""
|
|
|
|
[node name="Value2Text" parent="SimpleEditor" instance=ExtResource("3_3kfwc")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value2Number" parent="SimpleEditor" instance=ExtResource("4_6q3a6")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="Value2Variable" parent="SimpleEditor" instance=ExtResource("6_5a2xd")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
placeholder_text = "Variable"
|
|
|
|
[node name="Value2Bool" parent="SimpleEditor" instance=ExtResource("5_1x02a")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="ComplexEditor" type="LineEdit" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
custom_minimum_size = Vector2(150, 0)
|
|
layout_mode = 2
|
|
mouse_filter = 1
|
|
theme_type_variation = &"DialogicEventEdit"
|
|
text = "VAR.Player.Health > 20 and VAR.Counter < 3 and randi()%3 == 2"
|
|
placeholder_text = "Enter condition"
|
|
expand_to_text_length = true
|
|
|
|
[node name="ToggleComplex" type="Button" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
tooltip_text = "Use complex expression"
|
|
toggle_mode = true
|
|
icon = SubResource("ImageTexture_4jujf")
|
|
|
|
[connection signal="value_changed" from="SimpleEditor/Value1Variable" to="." method="_on_value_1_variable_value_changed"]
|
|
[connection signal="text_changed" from="ComplexEditor" to="." method="_on_complex_editor_text_changed"]
|
|
[connection signal="toggled" from="ToggleComplex" to="." method="_on_toggle_complex_toggled"]
|