SpielBackupAlt/addons/dialogic/Editor/Events/Parts/Logic/SetValuePicker.tscn

124 lines
5.1 KiB
Plaintext
Executable File

[gd_scene load_steps=8 format=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Logic/OperationPicker.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Text/CustomLineEdit.tscn" type="PackedScene" id=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/ResourcePickers/Definitions/DefinitionPicker.tscn" type="PackedScene" id=3]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Logic/EventPart_SetValuePicker.gd" type="Script" id=4]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Text/GreyLabel.tscn" type="PackedScene" id=5]
[sub_resource type="Image" id=4]
data = {
"data": PoolByteArray( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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16 )
[node name="SetValuePicker" type="VBoxContainer"]
margin_right = 40.0
margin_bottom = 40.0
size_flags_vertical = 4
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBox" type="HBoxContainer" parent="."]
margin_right = 726.0
margin_bottom = 27.0
[node name="DefinitionPicker" parent="HBox" instance=ExtResource( 3 )]
margin_top = 2.0
margin_right = 98.0
margin_bottom = 24.0
[node name="OperationPicker" parent="HBox" instance=ExtResource( 1 )]
margin_left = 102.0
margin_top = 2.0
margin_right = 196.0
margin_bottom = 24.0
[node name="InputValue" type="HBoxContainer" parent="HBox"]
margin_left = 200.0
margin_right = 344.0
margin_bottom = 27.0
[node name="Spacer" type="Control" parent="HBox/InputValue"]
margin_right = 10.0
margin_bottom = 27.0
rect_min_size = Vector2( 10, 0 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="InputField" parent="HBox/InputValue" instance=ExtResource( 2 )]
margin_left = 14.0
margin_right = 144.0
margin_bottom = 27.0
[node name="RandomValue" type="HBoxContainer" parent="HBox"]
margin_left = 348.0
margin_right = 680.0
margin_bottom = 27.0
custom_constants/separation = 5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" parent="HBox/RandomValue" instance=ExtResource( 5 )]
margin_top = 6.0
margin_right = 156.0
margin_bottom = 20.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = " a random number from"
[node name="LowerLimit" type="SpinBox" parent="HBox/RandomValue"]
margin_left = 161.0
margin_right = 235.0
margin_bottom = 27.0
allow_greater = true
allow_lesser = true
[node name="Label2" parent="HBox/RandomValue" instance=ExtResource( 5 )]
margin_left = 240.0
margin_top = 6.0
margin_right = 253.0
margin_bottom = 20.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "to"
[node name="UpperLimit" type="SpinBox" parent="HBox/RandomValue"]
margin_left = 258.0
margin_right = 332.0
margin_bottom = 27.0
allow_greater = true
allow_lesser = true
[node name="Spacer" type="Control" parent="HBox"]
margin_left = 684.0
margin_right = 694.0
margin_bottom = 27.0
rect_min_size = Vector2( 10, 0 )
[node name="RandomEnabled" type="Button" parent="HBox"]
self_modulate = Color( 1, 1, 1, 0.501961 )
margin_left = 698.0
margin_right = 726.0
margin_bottom = 27.0
hint_tooltip = "Set to a random integer"
focus_mode = 0
toggle_mode = true
icon = SubResource( 3 )
flat = true
[connection signal="value_changed" from="HBox/RandomValue/LowerLimit" to="." method="_on_LowerLimit_value_changed"]
[connection signal="value_changed" from="HBox/RandomValue/UpperLimit" to="." method="_on_UpperLimit_value_changed"]
[connection signal="toggled" from="HBox/RandomEnabled" to="." method="_on_RandomEnabled_toggled"]