initial shit
This commit is contained in:
104
Panels/ButtonDemoPanel.tscn
Normal file
104
Panels/ButtonDemoPanel.tscn
Normal file
@@ -0,0 +1,104 @@
|
||||
[gd_scene format=3 uid="uid://cl7s0blh2uvcn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cinx51fb3163j" path="res://Panels/DemoPanel_Evented.torch" id="1_egjy0"]
|
||||
[ext_resource type="PackedScene" uid="uid://3noosdfr8vt2" path="res://Objects/I3PositionSwitch.tscn" id="2_egjy0"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4skbeito3suj" path="res://Objects/ISwitch.tscn" id="2_wt1m2"]
|
||||
[ext_resource type="PackedScene" uid="uid://3gnlcoefcg04" path="res://Objects/IButton.tscn" id="3_ecd55"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1cwggrpop0lm" path="res://Objects/ILed.tscn" id="4_egjy0"]
|
||||
[ext_resource type="PackedScene" uid="uid://covkw4kvf310f" path="res://Objects/SGauge.tscn" id="5_wt1m2"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwd5j3opt1kf" path="res://Objects/SLabel.tscn" id="6_ecd55"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_qa2x2"]
|
||||
|
||||
[node name="ButtonDemoPanel" type="Node3D" unique_id=2132208088]
|
||||
script = ExtResource("1_egjy0")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1446696846]
|
||||
transform = Transform3D(0.8499854, 0, 0, 0, 0.060622327, 0, 0, 0, 0.4241688, 0.3620516, 0.07649438, 0.11413574)
|
||||
mesh = SubResource("BoxMesh_qa2x2")
|
||||
|
||||
[node name="Switches" type="Node3D" parent="." unique_id=226305122]
|
||||
|
||||
[node name="I3PositionSwitch" parent="Switches" unique_id=454776149 instance=ExtResource("2_egjy0")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.5965494, 0.106173694, 0.24083072)
|
||||
|
||||
[node name="ISwitch" parent="Switches" unique_id=308040824 instance=ExtResource("2_wt1m2")]
|
||||
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0, 0.017674267, 0.25783408)
|
||||
|
||||
[node name="IButton" parent="Switches" unique_id=161856390 instance=ExtResource("3_ecd55")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.158328, 0.006322846, 0.2579674)
|
||||
text = "PRESS"
|
||||
color = Color(0.53781974, 0.1420832, 0.2856657, 1)
|
||||
|
||||
[node name="ISwitch2" parent="Switches" unique_id=2099385450 instance=ExtResource("2_wt1m2")]
|
||||
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.32394218, 0.017674267, 0.2550794)
|
||||
|
||||
[node name="ISwitch3" parent="Switches" unique_id=224188860 instance=ExtResource("2_wt1m2")]
|
||||
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.46567643, 0.017674267, 0.25783408)
|
||||
isLoopingUpdate = true
|
||||
|
||||
[node name="ISwitch4" parent="Switches" unique_id=533097172 instance=ExtResource("2_wt1m2")]
|
||||
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.7249343, 0.017674267, 0.22710577)
|
||||
|
||||
[node name="IButton2" parent="Switches" unique_id=936504949 instance=ExtResource("3_ecd55")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.73907703, 0.06907676, 0.28837055)
|
||||
text = "RESET"
|
||||
color = Color(0.53781974, 0.1420832, 0.2856657, 1)
|
||||
|
||||
[node name="Instruments" type="Node3D" parent="." unique_id=1381623843]
|
||||
|
||||
[node name="ILed" parent="Instruments" unique_id=2112223431 instance=ExtResource("4_egjy0")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
||||
|
||||
[node name="ILed2" parent="Instruments" unique_id=79024419 instance=ExtResource("4_egjy0")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.16047925, 0, 0)
|
||||
|
||||
[node name="SGauge" parent="Instruments" unique_id=1241352669 instance=ExtResource("5_wt1m2")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.32863718, 0.112274766, -0.009751603)
|
||||
|
||||
[node name="ILed3" parent="Instruments" unique_id=924414462 instance=ExtResource("4_egjy0")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.48306805, 0, 0)
|
||||
|
||||
[node name="ILed4" parent="Instruments" unique_id=1645126863 instance=ExtResource("4_egjy0")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.6734964, 0, 0)
|
||||
|
||||
[node name="Labels" type="Node3D" parent="." unique_id=1044607918]
|
||||
|
||||
[node name="SLabel" parent="Labels" unique_id=29466195 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.01791925, 0.10718697, 0.15562294)
|
||||
Text = "Toggle"
|
||||
|
||||
[node name="SLabel2" parent="Labels" unique_id=1643418302 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.15064234, 0.10718697, 0.15562294)
|
||||
Text = "Press"
|
||||
|
||||
[node name="SLabel3" parent="Labels" unique_id=253475495 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.30069673, 0.10718697, 0.15562294)
|
||||
Text = "Gauge"
|
||||
|
||||
[node name="SLabel4" parent="Labels" unique_id=857194478 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.47425073, 0.10718697, 0.15562294)
|
||||
Text = "Flasher"
|
||||
|
||||
[node name="SLabel4" parent="Labels/SLabel4" unique_id=1325574951 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.20000002, 0, 0, 0, 0.20000002, 0, 0, 0, 0.20000002, -0.08165431, 0.10718697, 0.7921726)
|
||||
Text = "Press this button to set the speed"
|
||||
|
||||
[node name="SLabel5" parent="Labels" unique_id=471435141 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.6589825, 0.10718697, 0.15562294)
|
||||
Text = "3Pos RGB"
|
||||
|
||||
[node name="SLabel5" parent="Labels/SLabel5" unique_id=547055049 instance=ExtResource("6_ecd55")]
|
||||
transform = Transform3D(0.20000002, 0, 0, 0, 0.20000002, 0, 0, 0, 0.20000002, -0.02801156, 0.10718697, 0.7712231)
|
||||
Text = "Hold shift to decrease"
|
||||
|
||||
[connection signal="switchUpdated" from="Switches/I3PositionSwitch" to="." method="_on_i_3_position_switch_switch_updated"]
|
||||
[connection signal="switchUpdated" from="Switches/ISwitch" to="." method="Switch1Updated"]
|
||||
[connection signal="buttonUpdated" from="Switches/IButton" to="." method="Button1Updated"]
|
||||
[connection signal="switchUpdated" from="Switches/ISwitch2" to="." method="Switch2Updated"]
|
||||
[connection signal="turnedOff" from="Switches/ISwitch2" to="." method="_on_i_switch_2_turned_off"]
|
||||
[connection signal="turnedOn" from="Switches/ISwitch2" to="." method="_on_i_switch_2_turned_on"]
|
||||
[connection signal="switchUpdated" from="Switches/ISwitch3" to="." method="_on_i_switch_3_switch_updated"]
|
||||
[connection signal="turnedOff" from="Switches/ISwitch4" to="." method="_on_i_switch_4_turned_off"]
|
||||
[connection signal="turnedOn" from="Switches/ISwitch4" to="." method="_on_i_switch_4_turned_on"]
|
||||
[connection signal="buttonPressed" from="Switches/IButton2" to="." method="_on_i_button_2_button_pressed"]
|
||||
1862
Panels/DemoPanel_Evented.torch
Normal file
1862
Panels/DemoPanel_Evented.torch
Normal file
File diff suppressed because it is too large
Load Diff
745
Panels/GaugeTestPanel.torch
Normal file
745
Panels/GaugeTestPanel.torch
Normal file
@@ -0,0 +1,745 @@
|
||||
[orchestration type="OScript" load_steps=30 format=3 uid="uid://k47h424obarb"]
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_3ycyk"]
|
||||
guid = "5E81CF70-192B-4382-A62C-4FB3DF059F64"
|
||||
method = {
|
||||
"name": &"_process",
|
||||
"flags": 8,
|
||||
"args": [{
|
||||
"name": &"delta",
|
||||
"type": 3
|
||||
}]
|
||||
}
|
||||
id = 3
|
||||
|
||||
[obj type="OScriptGraph" id="OScriptGraph_orolp"]
|
||||
graph_name = &"EventGraph"
|
||||
flags = 8
|
||||
nodes = Array[int]([0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27])
|
||||
functions = Array[int]([3])
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_mlwi3"]
|
||||
node_path = NodePath("ISwitch")
|
||||
target_class_name = "Node3D"
|
||||
id = 0
|
||||
position = Vector2(-440, -440)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ISwitch",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D"
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_56ci7"]
|
||||
node_path = NodePath("SGauge")
|
||||
target_class_name = "Node3D"
|
||||
id = 1
|
||||
position = Vector2(-440, -360)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"SGauge",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D"
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_8v4dc"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 2
|
||||
size = Vector2(141, 128)
|
||||
position = Vector2(940, -280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_tdi6r"]
|
||||
function_id = "5E81CF70-192B-4382-A62C-4FB3DF059F64"
|
||||
id = 3
|
||||
position = Vector2(-440, -260)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"delta",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_31dxy"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 4
|
||||
size = Vector2(187, 66)
|
||||
position = Vector2(-240, -360)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"usage": 4102
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeBranch" id="OScriptNodeBranch_t3y6x"]
|
||||
id = 6
|
||||
position = Vector2(420, -420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 516,
|
||||
"label": "if [condition]"
|
||||
}, {
|
||||
"pin_name": &"condition",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false
|
||||
}, {
|
||||
"pin_name": &"true",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}, {
|
||||
"pin_name": &"false",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_hkvof"]
|
||||
op = 5
|
||||
code = &">="
|
||||
name = &"Greater-than or Equal"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 1
|
||||
id = 7
|
||||
position = Vector2(160, -300)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 80
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_hrsq7"]
|
||||
op = 6
|
||||
code = &"+"
|
||||
name = &"Addition"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 2
|
||||
id = 8
|
||||
position = Vector2(400, -300)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 1
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeBranch" id="OScriptNodeBranch_rj2ec"]
|
||||
id = 9
|
||||
position = Vector2(1140, -280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 516,
|
||||
"label": "if [condition]"
|
||||
}, {
|
||||
"pin_name": &"condition",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false
|
||||
}, {
|
||||
"pin_name": &"true",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}, {
|
||||
"pin_name": &"false",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_js8i5"]
|
||||
code = &"=="
|
||||
name = &"Equal"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 1
|
||||
id = 10
|
||||
position = Vector2(720, -280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 90
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_qu837"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 11
|
||||
size = Vector2(141, 128)
|
||||
position = Vector2(1360, -280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 79,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_3ycyk"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"isOn"
|
||||
property = {
|
||||
"name": &"isOn",
|
||||
"type": 1,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 12
|
||||
size = Vector2(186, 66)
|
||||
position = Vector2(-240, -440)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"isOn",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": false,
|
||||
"usage": 4102
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeBranch" id="OScriptNodeBranch_mlwi3"]
|
||||
id = 13
|
||||
position = Vector2(160, -420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 516,
|
||||
"label": "if [condition]"
|
||||
}, {
|
||||
"pin_name": &"condition",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false
|
||||
}, {
|
||||
"pin_name": &"true",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}, {
|
||||
"pin_name": &"false",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_56ci7"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 14
|
||||
size = Vector2(187, 66)
|
||||
position = Vector2(900, -140)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"usage": 4102
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_tdi6r"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 15
|
||||
size = Vector2(141, 128)
|
||||
position = Vector2(1360, -140)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_31dxy"]
|
||||
op = 6
|
||||
code = &"+"
|
||||
name = &"Addition"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 2
|
||||
id = 16
|
||||
position = Vector2(1160, -140)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 1
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeBranch" id="OScriptNodeBranch_3ycyk"]
|
||||
id = 17
|
||||
position = Vector2(940, -540)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 516,
|
||||
"label": "if [condition]"
|
||||
}, {
|
||||
"pin_name": &"condition",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false
|
||||
}, {
|
||||
"pin_name": &"true",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}, {
|
||||
"pin_name": &"false",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_mlwi3"]
|
||||
op = 3
|
||||
code = &"<="
|
||||
name = &"Less-than or Equal"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 1
|
||||
id = 18
|
||||
position = Vector2(720, -540)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 100
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_56ci7"]
|
||||
op = 7
|
||||
code = &"-"
|
||||
name = &"Subtract"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 2
|
||||
id = 19
|
||||
position = Vector2(1120, -420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 1
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_31dxy"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"Value"
|
||||
property = {
|
||||
"name": &"Value",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 20
|
||||
size = Vector2(141, 128)
|
||||
position = Vector2(1440, -540)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"Value",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeBranch" id="OScriptNodeBranch_hkvof"]
|
||||
id = 21
|
||||
position = Vector2(1180, -540)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 516,
|
||||
"label": "if [condition]"
|
||||
}, {
|
||||
"pin_name": &"condition",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false
|
||||
}, {
|
||||
"pin_name": &"true",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}, {
|
||||
"pin_name": &"false",
|
||||
"dir": 1,
|
||||
"flags": 516
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_rj2ec"]
|
||||
code = &"=="
|
||||
name = &"Equal"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 1
|
||||
id = 22
|
||||
position = Vector2(720, -420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_qu837"]
|
||||
op = 23
|
||||
code = &"not"
|
||||
name = &"Not"
|
||||
left_type = 1
|
||||
left_type_name = &"bool"
|
||||
return_type = 1
|
||||
id = 23
|
||||
position = Vector2(920, -420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 1,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_8v4dc"]
|
||||
node_path = NodePath("ILed")
|
||||
target_class_name = "Node3D"
|
||||
id = 24
|
||||
position = Vector2(1340, -360)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ILed",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D"
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_t3y6x"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"isLampOn"
|
||||
property = {
|
||||
"name": &"isLampOn",
|
||||
"type": 1,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 25
|
||||
size = Vector2(185, 126)
|
||||
position = Vector2(1729.494384765625, -268.65350341796875)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"isLampOn",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": true,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_hkvof"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"isLampOn"
|
||||
property = {
|
||||
"name": &"isLampOn",
|
||||
"type": 1,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 26
|
||||
size = Vector2(185, 126)
|
||||
position = Vector2(1540, -140)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"isLampOn",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_mlwi3"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"isLampOn"
|
||||
property = {
|
||||
"name": &"isLampOn",
|
||||
"type": 1,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 27
|
||||
size = Vector2(185, 126)
|
||||
position = Vector2(1620, -540)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"isLampOn",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[resource]
|
||||
base_type = &"Node3D"
|
||||
brief_description = "Empty template suitable for all Objects"
|
||||
functions = Array[OScriptFunction]([SubResource("OScriptFunction_3ycyk")])
|
||||
connections = Array[int]([6, 0, 2, 0, 1, 0, 4, 0, 13, 0, 6, 0, 4, 0, 7, 0, 4, 0, 8, 0, 2, 0, 9, 0, 4, 0, 10, 0, 9, 0, 11, 0, 0, 0, 12, 0, 3, 0, 13, 0, 1, 0, 14, 0, 6, 1, 15, 0, 14, 0, 16, 0, 13, 1, 17, 0, 4, 0, 18, 0, 4, 0, 19, 0, 21, 0, 20, 0, 17, 0, 21, 0, 4, 0, 22, 0, 22, 0, 23, 0, 11, 0, 25, 0, 15, 0, 26, 0, 20, 0, 27, 0, 1, 0, 2, 1, 7, 0, 6, 1, 10, 0, 9, 1, 1, 0, 11, 1, 12, 0, 13, 1, 1, 0, 15, 1, 18, 0, 17, 1, 1, 0, 20, 1, 23, 0, 21, 1, 24, 0, 25, 1, 24, 0, 26, 1, 24, 0, 27, 1, 8, 0, 2, 2, 16, 0, 15, 2, 19, 0, 20, 2])
|
||||
nodes = Array[OScriptNode]([SubResource("OScriptNodeSceneNode_mlwi3"), SubResource("OScriptNodeSceneNode_56ci7"), SubResource("OScriptNodePropertySet_8v4dc"), SubResource("OScriptNodeEvent_tdi6r"), SubResource("OScriptNodePropertyGet_31dxy"), SubResource("OScriptNodeBranch_t3y6x"), SubResource("OScriptNodeOperator_hkvof"), SubResource("OScriptNodeOperator_hrsq7"), SubResource("OScriptNodeBranch_rj2ec"), SubResource("OScriptNodeOperator_js8i5"), SubResource("OScriptNodePropertySet_qu837"), SubResource("OScriptNodePropertyGet_3ycyk"), SubResource("OScriptNodeBranch_mlwi3"), SubResource("OScriptNodePropertyGet_56ci7"), SubResource("OScriptNodePropertySet_tdi6r"), SubResource("OScriptNodeOperator_31dxy"), SubResource("OScriptNodeBranch_3ycyk"), SubResource("OScriptNodeOperator_mlwi3"), SubResource("OScriptNodeOperator_56ci7"), SubResource("OScriptNodePropertySet_31dxy"), SubResource("OScriptNodeBranch_hkvof"), SubResource("OScriptNodeOperator_rj2ec"), SubResource("OScriptNodeOperator_qu837"), SubResource("OScriptNodeSceneNode_8v4dc"), SubResource("OScriptNodePropertySet_t3y6x"), SubResource("OScriptNodePropertySet_hkvof"), SubResource("OScriptNodePropertySet_mlwi3")])
|
||||
graphs = Array[OScriptGraph]([SubResource("OScriptGraph_orolp")])
|
||||
24
Panels/GaugeTestPanel.tscn
Normal file
24
Panels/GaugeTestPanel.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene format=3 uid="uid://cmdoplechdjf2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://k47h424obarb" path="res://Panels/GaugeTestPanel.torch" id="1_3ycyk"]
|
||||
[ext_resource type="PackedScene" uid="uid://covkw4kvf310f" path="res://Objects/SGauge.tscn" id="2_mlwi3"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4skbeito3suj" path="res://Objects/ISwitch.tscn" id="3_56ci7"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1cwggrpop0lm" path="res://Objects/ILed.tscn" id="4_mlwi3"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_8v4dc"]
|
||||
|
||||
[node name="GaugeTestPanel" type="Node3D" unique_id=2008030013]
|
||||
script = ExtResource("1_3ycyk")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=821329739]
|
||||
transform = Transform3D(0.8499854, 0, 0, 0, 0.060622327, 0, 0, 0, 0.4241688, 0.3620516, 0.07649438, 0.11413574)
|
||||
mesh = SubResource("BoxMesh_8v4dc")
|
||||
|
||||
[node name="SGauge" parent="." unique_id=1241352669 instance=ExtResource("2_mlwi3")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0.13207138, 0.27062824)
|
||||
|
||||
[node name="ISwitch" parent="." unique_id=308040824 instance=ExtResource("3_56ci7")]
|
||||
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.0449643, 0.08974852, 0.3041313)
|
||||
|
||||
[node name="ILed" parent="." unique_id=2112223431 instance=ExtResource("4_mlwi3")]
|
||||
transform = Transform3D(0.01, 0, 0, 0, 0.01, 0, 0, 0, 0.01, -0.00047999248, 0.13739565, 0.30799976)
|
||||
Reference in New Issue
Block a user