123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854 |
- [gd_scene load_steps=3 format=1]
- [ext_resource path="res://joysticks.gd" type="Script" id=1]
- [ext_resource path="res://jsdiagram.tscn" type="PackedScene" id=2]
- [node name="joysticks" type="Node2D"]
- script/script = ExtResource( 1 )
- __meta__ = { "__editor_plugin_screen__":"Script" }
- [node name="label_buttons" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 235.0
- margin/right = 65.0
- margin/bottom = 248.0
- text = "Buttons:"
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn0" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 20.0
- margin/top = 255.0
- margin/right = 45.0
- margin/bottom = 268.0
- text = "0"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn1" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 45.0
- margin/top = 255.0
- margin/right = 70.0
- margin/bottom = 268.0
- text = "1"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn2" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 70.0
- margin/top = 255.0
- margin/right = 95.0
- margin/bottom = 268.0
- text = "2"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn3" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 95.0
- margin/top = 255.0
- margin/right = 120.0
- margin/bottom = 268.0
- text = "3"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn4" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 120.0
- margin/top = 255.0
- margin/right = 145.0
- margin/bottom = 268.0
- text = "4"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn5" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 145.0
- margin/top = 255.0
- margin/right = 170.0
- margin/bottom = 268.0
- text = "5"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn6" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 170.0
- margin/top = 255.0
- margin/right = 195.0
- margin/bottom = 268.0
- text = "6"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn7" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 195.0
- margin/top = 255.0
- margin/right = 220.0
- margin/bottom = 268.0
- text = "7"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn8" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 220.0
- margin/top = 255.0
- margin/right = 245.0
- margin/bottom = 268.0
- text = "8"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn9" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 20.0
- margin/top = 275.0
- margin/right = 45.0
- margin/bottom = 288.0
- text = "9"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn10" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 45.0
- margin/top = 275.0
- margin/right = 70.0
- margin/bottom = 288.0
- text = "10"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn11" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 70.0
- margin/top = 275.0
- margin/right = 95.0
- margin/bottom = 288.0
- text = "11"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn12" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 95.0
- margin/top = 275.0
- margin/right = 120.0
- margin/bottom = 288.0
- text = "12"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn13" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 120.0
- margin/top = 275.0
- margin/right = 145.0
- margin/bottom = 288.0
- text = "13"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn14" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 145.0
- margin/top = 275.0
- margin/right = 170.0
- margin/bottom = 288.0
- text = "14"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="btn15" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 170.0
- margin/top = 275.0
- margin/right = 195.0
- margin/bottom = 288.0
- text = "15"
- align = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_prog0" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 60.0
- margin/right = 250.0
- margin/bottom = 76.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog1" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 80.0
- margin/right = 250.0
- margin/bottom = 96.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog2" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 100.0
- margin/right = 250.0
- margin/bottom = 116.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog3" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 120.0
- margin/right = 250.0
- margin/bottom = 136.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog4" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 140.0
- margin/right = 250.0
- margin/bottom = 156.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog5" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 160.0
- margin/right = 250.0
- margin/bottom = 176.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog6" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 180.0
- margin/right = 250.0
- margin/bottom = 196.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_prog7" type="ProgressBar" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 200.0
- margin/right = 250.0
- margin/bottom = 216.0
- range/min = -100.0
- range/max = 100.0
- range/step = 0.0001
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- percent/visible = false
- [node name="axis_val0" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 60.0
- margin/right = 250.0
- margin/bottom = 75.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val1" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 80.0
- margin/right = 250.0
- margin/bottom = 95.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val2" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 100.0
- margin/right = 250.0
- margin/bottom = 115.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val3" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 120.0
- margin/right = 250.0
- margin/bottom = 135.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val4" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 140.0
- margin/right = 250.0
- margin/bottom = 155.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val5" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 160.0
- margin/right = 250.0
- margin/bottom = 175.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val6" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 180.0
- margin/right = 250.0
- margin/bottom = 195.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="axis_val7" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 50.0
- margin/top = 200.0
- margin/right = 250.0
- margin/bottom = 215.0
- text = "0"
- align = 1
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis0" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 60.0
- margin/right = 51.0
- margin/bottom = 75.0
- text = "Axis 0"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis1" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 80.0
- margin/right = 51.0
- margin/bottom = 95.0
- text = "Axis 1"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis2" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 100.0
- margin/right = 51.0
- margin/bottom = 115.0
- text = "Axis 2"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis3" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 120.0
- margin/right = 51.0
- margin/bottom = 135.0
- text = "Axis 3"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis4" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 140.0
- margin/right = 51.0
- margin/bottom = 155.0
- text = "Axis 4"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis5" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 160.0
- margin/right = 51.0
- margin/bottom = 175.0
- text = "Axis 5"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis6" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 180.0
- margin/right = 51.0
- margin/bottom = 195.0
- text = "Axis 6"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_axis7" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 200.0
- margin/right = 51.0
- margin/bottom = 215.0
- text = "Axis 7"
- valign = 2
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="label_device" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 10.0
- margin/right = 60.0
- margin/bottom = 30.0
- text = "Device"
- valign = 1
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="joy_num" type="SpinBox" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 65.0
- margin/top = 10.0
- margin/right = 127.0
- margin/bottom = 33.0
- range/min = 0.0
- range/max = 16.0
- range/step = 1.0
- range/page = 0.0
- range/value = 0.0
- range/exp_edit = false
- range/rounded = false
- editable = true
- prefix = ""
- suffix = ""
- [node name="joy_name" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 10.0
- margin/top = 35.0
- margin/right = 250.0
- margin/bottom = 50.0
- custom_colors/font_color = Color( 0.229156, 1, 0.239205, 1 )
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="Vibration_weak_value" type="SpinBox" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 163.0
- margin/top = 324.0
- margin/right = 237.0
- margin/bottom = 348.0
- range/min = 0.0
- range/max = 1.0
- range/step = 0.05
- range/page = 0.0
- range/value = 1.0
- range/exp_edit = false
- range/rounded = false
- editable = true
- prefix = ""
- suffix = ""
- [node name="Vibration_strong_value" type="SpinBox" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 163.0
- margin/top = 362.0
- margin/right = 237.0
- margin/bottom = 386.0
- range/min = 0.0
- range/max = 1.0
- range/step = 0.05
- range/page = 0.0
- range/value = 1.0
- range/exp_edit = false
- range/rounded = false
- editable = true
- prefix = ""
- suffix = ""
- [node name="Vibration_duration_value" type="SpinBox" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 163.0
- margin/top = 403.0
- margin/right = 237.0
- margin/bottom = 427.0
- range/min = 0.0
- range/max = 10.0
- range/step = 0.1
- range/page = 0.0
- range/value = 1.0
- range/exp_edit = false
- range/rounded = false
- editable = true
- prefix = ""
- suffix = ""
- [node name="start_vibration" type="Button" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 288.0
- margin/top = 352.0
- margin/right = 389.0
- margin/bottom = 372.0
- toggle_mode = false
- click_on_press = true
- enabled_focus_mode = 0
- shortcut = null
- text = "Start Vibration"
- flat = false
- [node name="stop_vibration" type="Button" parent="."]
- focus/ignore_mouse = false
- focus/stop_mouse = true
- size_flags/horizontal = 2
- size_flags/vertical = 2
- margin/left = 406.0
- margin/top = 352.0
- margin/right = 507.0
- margin/bottom = 372.0
- toggle_mode = false
- click_on_press = true
- enabled_focus_mode = 2
- shortcut = null
- text = "Stop Vibration"
- flat = false
- [node name="Weak_label" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 8.0
- margin/top = 329.0
- margin/right = 150.0
- margin/bottom = 343.0
- text = "Vibration Weak Motor:"
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="Strong_label" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 8.0
- margin/top = 367.0
- margin/right = 150.0
- margin/bottom = 381.0
- text = "Vibration Strong Motor:"
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="Duration_label" type="Label" parent="."]
- focus/ignore_mouse = true
- focus/stop_mouse = true
- size_flags/horizontal = 2
- margin/left = 8.0
- margin/top = 408.0
- margin/right = 155.0
- margin/bottom = 439.0
- text = "Vibration Duration:"
- percent_visible = 1.0
- lines_skipped = 0
- max_lines_visible = -1
- [node name="diagram" parent="." instance=ExtResource( 2 )]
- transform/pos = Vector2( 403.304, 161.318 )
- [connection signal="pressed" from="start_vibration" to="." method="_on_start_vibration_pressed"]
- [connection signal="pressed" from="stop_vibration" to="." method="_on_stop_vibration_pressed"]
|