joypads.tscn 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. [gd_scene load_steps=8 format=3 uid="uid://b2dl5qw1jss2w"]
  2. [ext_resource type="Script" path="res://joypads.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://bsrktfrmtkqvo" path="res://joypad_diagram.tscn" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://na4hexkywup6" path="res://remap/remap_wizard.tscn" id="3"]
  5. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_g3l3j"]
  6. content_margin_top = 10.0
  7. content_margin_bottom = 10.0
  8. bg_color = Color(0.2, 0.2, 0.2, 1)
  9. corner_radius_top_left = 3
  10. corner_radius_top_right = 3
  11. corner_radius_bottom_right = 3
  12. corner_radius_bottom_left = 3
  13. corner_detail = 3
  14. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_do8y5"]
  15. content_margin_top = 10.0
  16. content_margin_bottom = 10.0
  17. bg_color = Color(1, 1, 1, 0.4)
  18. corner_radius_top_left = 3
  19. corner_radius_top_right = 3
  20. corner_radius_bottom_right = 3
  21. corner_radius_bottom_left = 3
  22. corner_detail = 3
  23. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ehk82"]
  24. content_margin_top = 10.0
  25. content_margin_bottom = 10.0
  26. bg_color = Color(0.2, 0.2, 0.2, 1)
  27. corner_radius_top_left = 3
  28. corner_radius_top_right = 3
  29. corner_radius_bottom_right = 3
  30. corner_radius_bottom_left = 3
  31. corner_detail = 3
  32. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ujhcf"]
  33. content_margin_top = 10.0
  34. content_margin_bottom = 10.0
  35. bg_color = Color(1, 1, 1, 0.4)
  36. corner_radius_top_left = 3
  37. corner_radius_top_right = 3
  38. corner_radius_bottom_right = 3
  39. corner_radius_bottom_left = 3
  40. corner_detail = 3
  41. [node name="joypads" type="Control"]
  42. layout_mode = 3
  43. anchors_preset = 8
  44. anchor_left = 0.5
  45. anchor_top = 0.5
  46. anchor_right = 0.5
  47. anchor_bottom = 0.5
  48. offset_left = -270.0
  49. offset_top = -240.0
  50. offset_right = 270.0
  51. offset_bottom = 240.0
  52. grow_horizontal = 2
  53. grow_vertical = 2
  54. script = ExtResource("1")
  55. [node name="JoypadDiagram" parent="." instance=ExtResource("2")]
  56. position = Vector2(415, 183)
  57. scale = Vector2(0.5, 0.5)
  58. [node name="DeviceInfo" type="HBoxContainer" parent="."]
  59. layout_mode = 1
  60. anchors_preset = 10
  61. anchor_right = 1.0
  62. offset_top = -10.0
  63. offset_bottom = 40.0
  64. grow_horizontal = 2
  65. [node name="Label" type="Label" parent="DeviceInfo"]
  66. layout_mode = 2
  67. size_flags_vertical = 1
  68. text = "Device"
  69. [node name="JoyNumber" type="SpinBox" parent="DeviceInfo"]
  70. layout_mode = 2
  71. size_flags_vertical = 0
  72. max_value = 16.0
  73. [node name="VSeparator" type="VSeparator" parent="DeviceInfo"]
  74. modulate = Color(1, 1, 1, 0)
  75. layout_mode = 2
  76. [node name="JoyName" type="RichTextLabel" parent="DeviceInfo"]
  77. custom_minimum_size = Vector2(0, 50)
  78. layout_mode = 2
  79. size_flags_horizontal = 3
  80. focus_mode = 2
  81. bbcode_enabled = true
  82. text = "Controller Name Here"
  83. scroll_active = false
  84. context_menu_enabled = true
  85. selection_enabled = true
  86. [node name="Axes" type="VBoxContainer" parent="."]
  87. layout_mode = 0
  88. offset_top = 62.0
  89. offset_right = 255.0
  90. offset_bottom = 322.0
  91. theme_override_constants/separation = -2
  92. [node name="Axis0" type="HBoxContainer" parent="Axes"]
  93. layout_mode = 2
  94. [node name="Label" type="Label" parent="Axes/Axis0"]
  95. layout_mode = 2
  96. size_flags_horizontal = 3
  97. size_flags_vertical = 1
  98. size_flags_stretch_ratio = 0.3
  99. text = "Axis 0"
  100. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis0"]
  101. layout_mode = 2
  102. size_flags_horizontal = 3
  103. size_flags_vertical = 4
  104. theme_override_styles/background = SubResource("StyleBoxFlat_g3l3j")
  105. theme_override_styles/fill = SubResource("StyleBoxFlat_do8y5")
  106. min_value = -100.0
  107. step = 0.0001
  108. show_percentage = false
  109. [node name="Value" type="RichTextLabel" parent="Axes/Axis0/ProgressBar"]
  110. custom_minimum_size = Vector2(0, 24)
  111. layout_mode = 0
  112. anchor_right = 1.0
  113. anchor_bottom = 1.0
  114. grow_horizontal = 2
  115. grow_vertical = 2
  116. bbcode_enabled = true
  117. text = "[center]0[/center]"
  118. scroll_active = false
  119. [node name="Axis1" type="HBoxContainer" parent="Axes"]
  120. layout_mode = 2
  121. [node name="Label" type="Label" parent="Axes/Axis1"]
  122. layout_mode = 2
  123. size_flags_horizontal = 3
  124. size_flags_vertical = 1
  125. size_flags_stretch_ratio = 0.3
  126. text = "Axis 1"
  127. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis1"]
  128. layout_mode = 2
  129. size_flags_horizontal = 3
  130. size_flags_vertical = 4
  131. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  132. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  133. min_value = -100.0
  134. step = 0.0001
  135. show_percentage = false
  136. [node name="Value" type="RichTextLabel" parent="Axes/Axis1/ProgressBar"]
  137. custom_minimum_size = Vector2(0, 24)
  138. layout_mode = 0
  139. anchor_right = 1.0
  140. anchor_bottom = 1.0
  141. grow_horizontal = 2
  142. grow_vertical = 2
  143. bbcode_enabled = true
  144. text = "[center]0[/center]"
  145. scroll_active = false
  146. [node name="Axis2" type="HBoxContainer" parent="Axes"]
  147. layout_mode = 2
  148. [node name="Label" type="Label" parent="Axes/Axis2"]
  149. layout_mode = 2
  150. size_flags_horizontal = 3
  151. size_flags_vertical = 1
  152. size_flags_stretch_ratio = 0.3
  153. text = "Axis 2"
  154. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis2"]
  155. layout_mode = 2
  156. size_flags_horizontal = 3
  157. size_flags_vertical = 4
  158. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  159. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  160. min_value = -100.0
  161. step = 0.0001
  162. show_percentage = false
  163. [node name="Value" type="RichTextLabel" parent="Axes/Axis2/ProgressBar"]
  164. custom_minimum_size = Vector2(0, 24)
  165. layout_mode = 0
  166. anchor_right = 1.0
  167. anchor_bottom = 1.0
  168. grow_horizontal = 2
  169. grow_vertical = 2
  170. bbcode_enabled = true
  171. text = "[center]0[/center]"
  172. scroll_active = false
  173. [node name="Axis3" type="HBoxContainer" parent="Axes"]
  174. layout_mode = 2
  175. [node name="Label" type="Label" parent="Axes/Axis3"]
  176. layout_mode = 2
  177. size_flags_horizontal = 3
  178. size_flags_vertical = 1
  179. size_flags_stretch_ratio = 0.3
  180. text = "Axis 3"
  181. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis3"]
  182. layout_mode = 2
  183. size_flags_horizontal = 3
  184. size_flags_vertical = 4
  185. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  186. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  187. min_value = -100.0
  188. step = 0.0001
  189. show_percentage = false
  190. [node name="Value" type="RichTextLabel" parent="Axes/Axis3/ProgressBar"]
  191. custom_minimum_size = Vector2(0, 24)
  192. layout_mode = 0
  193. anchor_right = 1.0
  194. anchor_bottom = 1.0
  195. grow_horizontal = 2
  196. grow_vertical = 2
  197. bbcode_enabled = true
  198. text = "[center]0[/center]"
  199. scroll_active = false
  200. [node name="Axis4" type="HBoxContainer" parent="Axes"]
  201. layout_mode = 2
  202. [node name="Label" type="Label" parent="Axes/Axis4"]
  203. layout_mode = 2
  204. size_flags_horizontal = 3
  205. size_flags_vertical = 1
  206. size_flags_stretch_ratio = 0.3
  207. text = "Axis 4"
  208. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis4"]
  209. layout_mode = 2
  210. size_flags_horizontal = 3
  211. size_flags_vertical = 4
  212. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  213. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  214. min_value = -100.0
  215. step = 0.0001
  216. show_percentage = false
  217. [node name="Value" type="RichTextLabel" parent="Axes/Axis4/ProgressBar"]
  218. custom_minimum_size = Vector2(0, 24)
  219. layout_mode = 0
  220. anchor_right = 1.0
  221. anchor_bottom = 1.0
  222. grow_horizontal = 2
  223. grow_vertical = 2
  224. bbcode_enabled = true
  225. text = "[center]0[/center]"
  226. scroll_active = false
  227. [node name="Axis5" type="HBoxContainer" parent="Axes"]
  228. layout_mode = 2
  229. [node name="Label" type="Label" parent="Axes/Axis5"]
  230. layout_mode = 2
  231. size_flags_horizontal = 3
  232. size_flags_vertical = 1
  233. size_flags_stretch_ratio = 0.3
  234. text = "Axis 5"
  235. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis5"]
  236. layout_mode = 2
  237. size_flags_horizontal = 3
  238. size_flags_vertical = 4
  239. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  240. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  241. min_value = -100.0
  242. step = 0.0001
  243. show_percentage = false
  244. [node name="Value" type="RichTextLabel" parent="Axes/Axis5/ProgressBar"]
  245. custom_minimum_size = Vector2(0, 24)
  246. layout_mode = 0
  247. anchor_right = 1.0
  248. anchor_bottom = 1.0
  249. grow_horizontal = 2
  250. grow_vertical = 2
  251. bbcode_enabled = true
  252. text = "[center]0[/center]"
  253. scroll_active = false
  254. [node name="Axis6" type="HBoxContainer" parent="Axes"]
  255. layout_mode = 2
  256. [node name="Label" type="Label" parent="Axes/Axis6"]
  257. layout_mode = 2
  258. size_flags_horizontal = 3
  259. size_flags_vertical = 1
  260. size_flags_stretch_ratio = 0.3
  261. text = "Axis 6"
  262. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis6"]
  263. layout_mode = 2
  264. size_flags_horizontal = 3
  265. size_flags_vertical = 4
  266. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  267. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  268. min_value = -100.0
  269. step = 0.0001
  270. show_percentage = false
  271. [node name="Value" type="RichTextLabel" parent="Axes/Axis6/ProgressBar"]
  272. custom_minimum_size = Vector2(0, 24)
  273. layout_mode = 0
  274. anchor_right = 1.0
  275. anchor_bottom = 1.0
  276. grow_horizontal = 2
  277. grow_vertical = 2
  278. bbcode_enabled = true
  279. text = "[center]0[/center]"
  280. scroll_active = false
  281. [node name="Axis7" type="HBoxContainer" parent="Axes"]
  282. layout_mode = 2
  283. [node name="Label" type="Label" parent="Axes/Axis7"]
  284. layout_mode = 2
  285. size_flags_horizontal = 3
  286. size_flags_vertical = 1
  287. size_flags_stretch_ratio = 0.3
  288. text = "Axis 7"
  289. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis7"]
  290. layout_mode = 2
  291. size_flags_horizontal = 3
  292. size_flags_vertical = 4
  293. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  294. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  295. min_value = -100.0
  296. step = 0.0001
  297. show_percentage = false
  298. [node name="Value" type="RichTextLabel" parent="Axes/Axis7/ProgressBar"]
  299. custom_minimum_size = Vector2(0, 24)
  300. layout_mode = 0
  301. anchor_right = 1.0
  302. anchor_bottom = 1.0
  303. grow_horizontal = 2
  304. grow_vertical = 2
  305. bbcode_enabled = true
  306. text = "[center]0[/center]"
  307. scroll_active = false
  308. [node name="Axis8" type="HBoxContainer" parent="Axes"]
  309. layout_mode = 2
  310. [node name="Label" type="Label" parent="Axes/Axis8"]
  311. layout_mode = 2
  312. size_flags_horizontal = 3
  313. size_flags_vertical = 1
  314. size_flags_stretch_ratio = 0.3
  315. text = "Axis 8"
  316. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis8"]
  317. layout_mode = 2
  318. size_flags_horizontal = 3
  319. size_flags_vertical = 4
  320. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  321. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  322. min_value = -100.0
  323. step = 0.0001
  324. show_percentage = false
  325. [node name="Value" type="RichTextLabel" parent="Axes/Axis8/ProgressBar"]
  326. custom_minimum_size = Vector2(0, 24)
  327. layout_mode = 0
  328. anchor_right = 1.0
  329. anchor_bottom = 1.0
  330. grow_horizontal = 2
  331. grow_vertical = 2
  332. bbcode_enabled = true
  333. text = "[center]0[/center]"
  334. scroll_active = false
  335. [node name="Axis9" type="HBoxContainer" parent="Axes"]
  336. layout_mode = 2
  337. [node name="Label" type="Label" parent="Axes/Axis9"]
  338. layout_mode = 2
  339. size_flags_horizontal = 3
  340. size_flags_vertical = 1
  341. size_flags_stretch_ratio = 0.3
  342. text = "Axis 9"
  343. [node name="ProgressBar" type="ProgressBar" parent="Axes/Axis9"]
  344. layout_mode = 2
  345. size_flags_horizontal = 3
  346. size_flags_vertical = 4
  347. theme_override_styles/background = SubResource("StyleBoxFlat_ehk82")
  348. theme_override_styles/fill = SubResource("StyleBoxFlat_ujhcf")
  349. min_value = -100.0
  350. step = 0.0001
  351. show_percentage = false
  352. [node name="Value" type="RichTextLabel" parent="Axes/Axis9/ProgressBar"]
  353. custom_minimum_size = Vector2(0, 24)
  354. layout_mode = 0
  355. anchor_right = 1.0
  356. anchor_bottom = 1.0
  357. grow_horizontal = 2
  358. grow_vertical = 2
  359. bbcode_enabled = true
  360. text = "[center]0[/center]"
  361. scroll_active = false
  362. [node name="Buttons" type="VBoxContainer" parent="."]
  363. layout_mode = 1
  364. anchors_preset = 3
  365. anchor_left = 1.0
  366. anchor_top = 1.0
  367. anchor_right = 1.0
  368. anchor_bottom = 1.0
  369. offset_left = -250.0
  370. offset_top = -138.0
  371. offset_bottom = -22.0
  372. grow_horizontal = 0
  373. grow_vertical = 0
  374. [node name="Label" type="Label" parent="Buttons"]
  375. layout_mode = 2
  376. size_flags_horizontal = 2
  377. size_flags_vertical = 0
  378. text = "Buttons:"
  379. [node name="ButtonGrid" type="GridContainer" parent="Buttons"]
  380. layout_mode = 2
  381. columns = 8
  382. [node name="0" type="Label" parent="Buttons/ButtonGrid"]
  383. layout_mode = 2
  384. size_flags_horizontal = 3
  385. size_flags_vertical = 1
  386. text = "0"
  387. [node name="1" type="Label" parent="Buttons/ButtonGrid"]
  388. layout_mode = 2
  389. size_flags_horizontal = 3
  390. size_flags_vertical = 1
  391. text = "1"
  392. [node name="2" type="Label" parent="Buttons/ButtonGrid"]
  393. layout_mode = 2
  394. size_flags_horizontal = 3
  395. size_flags_vertical = 1
  396. text = "2"
  397. [node name="3" type="Label" parent="Buttons/ButtonGrid"]
  398. layout_mode = 2
  399. size_flags_horizontal = 3
  400. size_flags_vertical = 1
  401. text = "3"
  402. [node name="4" type="Label" parent="Buttons/ButtonGrid"]
  403. layout_mode = 2
  404. size_flags_horizontal = 3
  405. size_flags_vertical = 1
  406. text = "4"
  407. [node name="5" type="Label" parent="Buttons/ButtonGrid"]
  408. layout_mode = 2
  409. size_flags_horizontal = 3
  410. size_flags_vertical = 1
  411. text = "5"
  412. [node name="6" type="Label" parent="Buttons/ButtonGrid"]
  413. layout_mode = 2
  414. size_flags_horizontal = 3
  415. size_flags_vertical = 1
  416. text = "6"
  417. [node name="7" type="Label" parent="Buttons/ButtonGrid"]
  418. layout_mode = 2
  419. size_flags_horizontal = 3
  420. size_flags_vertical = 1
  421. text = "7"
  422. [node name="8" type="Label" parent="Buttons/ButtonGrid"]
  423. layout_mode = 2
  424. size_flags_horizontal = 3
  425. size_flags_vertical = 1
  426. text = "8"
  427. [node name="9" type="Label" parent="Buttons/ButtonGrid"]
  428. layout_mode = 2
  429. size_flags_horizontal = 3
  430. size_flags_vertical = 1
  431. text = "9"
  432. [node name="10" type="Label" parent="Buttons/ButtonGrid"]
  433. layout_mode = 2
  434. size_flags_horizontal = 3
  435. size_flags_vertical = 1
  436. text = "10"
  437. [node name="11" type="Label" parent="Buttons/ButtonGrid"]
  438. layout_mode = 2
  439. size_flags_horizontal = 3
  440. size_flags_vertical = 1
  441. text = "11"
  442. [node name="12" type="Label" parent="Buttons/ButtonGrid"]
  443. layout_mode = 2
  444. size_flags_horizontal = 3
  445. size_flags_vertical = 1
  446. text = "12"
  447. [node name="13" type="Label" parent="Buttons/ButtonGrid"]
  448. layout_mode = 2
  449. size_flags_horizontal = 3
  450. size_flags_vertical = 1
  451. text = "13"
  452. [node name="14" type="Label" parent="Buttons/ButtonGrid"]
  453. layout_mode = 2
  454. size_flags_horizontal = 3
  455. size_flags_vertical = 1
  456. text = "14"
  457. [node name="15" type="Label" parent="Buttons/ButtonGrid"]
  458. layout_mode = 2
  459. size_flags_horizontal = 3
  460. size_flags_vertical = 1
  461. text = "15"
  462. [node name="16" type="Label" parent="Buttons/ButtonGrid"]
  463. layout_mode = 2
  464. size_flags_horizontal = 3
  465. size_flags_vertical = 1
  466. text = "16"
  467. [node name="17" type="Label" parent="Buttons/ButtonGrid"]
  468. layout_mode = 2
  469. size_flags_horizontal = 3
  470. size_flags_vertical = 1
  471. text = "17"
  472. [node name="18" type="Label" parent="Buttons/ButtonGrid"]
  473. layout_mode = 2
  474. size_flags_horizontal = 3
  475. size_flags_vertical = 1
  476. text = "18"
  477. [node name="19" type="Label" parent="Buttons/ButtonGrid"]
  478. layout_mode = 2
  479. size_flags_horizontal = 3
  480. size_flags_vertical = 1
  481. text = "19"
  482. [node name="20" type="Label" parent="Buttons/ButtonGrid"]
  483. layout_mode = 2
  484. size_flags_horizontal = 3
  485. size_flags_vertical = 1
  486. text = "20"
  487. [node name="Vibration" type="VBoxContainer" parent="."]
  488. layout_mode = 1
  489. anchors_preset = 2
  490. anchor_top = 1.0
  491. anchor_bottom = 1.0
  492. offset_top = -128.0
  493. offset_right = 270.0
  494. offset_bottom = 16.0
  495. grow_vertical = 0
  496. [node name="Weak" type="HBoxContainer" parent="Vibration"]
  497. layout_mode = 2
  498. [node name="Label" type="Label" parent="Vibration/Weak"]
  499. layout_mode = 2
  500. size_flags_horizontal = 3
  501. size_flags_vertical = 1
  502. text = "Vibration Weak Motor:"
  503. [node name="Value" type="SpinBox" parent="Vibration/Weak"]
  504. layout_mode = 2
  505. size_flags_vertical = 3
  506. max_value = 1.0
  507. step = 0.05
  508. value = 1.0
  509. [node name="Strong" type="HBoxContainer" parent="Vibration"]
  510. layout_mode = 2
  511. [node name="Label" type="Label" parent="Vibration/Strong"]
  512. layout_mode = 2
  513. size_flags_horizontal = 3
  514. size_flags_vertical = 1
  515. text = "Vibration Strong Motor:"
  516. [node name="Value" type="SpinBox" parent="Vibration/Strong"]
  517. layout_mode = 2
  518. size_flags_vertical = 3
  519. max_value = 1.0
  520. step = 0.05
  521. value = 1.0
  522. [node name="Duration" type="HBoxContainer" parent="Vibration"]
  523. layout_mode = 2
  524. [node name="Label" type="Label" parent="Vibration/Duration"]
  525. layout_mode = 2
  526. size_flags_horizontal = 3
  527. size_flags_vertical = 1
  528. text = "Vibration Duration:"
  529. [node name="Value" type="SpinBox" parent="Vibration/Duration"]
  530. layout_mode = 2
  531. size_flags_vertical = 3
  532. max_value = 10.0
  533. step = 0.1
  534. value = 1.0
  535. [node name="HSeparator" type="HSeparator" parent="Vibration"]
  536. modulate = Color(1, 1, 1, 0)
  537. layout_mode = 2
  538. [node name="Buttons" type="HBoxContainer" parent="Vibration"]
  539. layout_mode = 2
  540. [node name="Start" type="Button" parent="Vibration/Buttons"]
  541. layout_mode = 2
  542. size_flags_horizontal = 3
  543. size_flags_vertical = 3
  544. focus_mode = 0
  545. text = "Start Vibration"
  546. [node name="VSeparator" type="VSeparator" parent="Vibration/Buttons"]
  547. modulate = Color(1, 1, 1, 0)
  548. layout_mode = 2
  549. [node name="Stop" type="Button" parent="Vibration/Buttons"]
  550. layout_mode = 2
  551. size_flags_horizontal = 3
  552. size_flags_vertical = 3
  553. text = "Stop Vibration"
  554. [node name="VBoxContainer" type="HBoxContainer" parent="."]
  555. layout_mode = 1
  556. anchors_preset = 3
  557. anchor_left = 1.0
  558. anchor_top = 1.0
  559. anchor_right = 1.0
  560. anchor_bottom = 1.0
  561. offset_left = -261.0
  562. offset_top = -18.0
  563. offset_bottom = 13.0
  564. grow_horizontal = 0
  565. grow_vertical = 0
  566. alignment = 1
  567. [node name="Clear" type="Button" parent="VBoxContainer"]
  568. layout_mode = 2
  569. text = "Set Raw Mapping"
  570. [node name="Remap" type="Button" parent="VBoxContainer"]
  571. layout_mode = 2
  572. text = "Remap"
  573. [node name="Show" type="Button" parent="VBoxContainer"]
  574. layout_mode = 2
  575. text = "Show"
  576. [node name="RemapWizard" parent="." instance=ExtResource("3")]
  577. [connection signal="meta_clicked" from="DeviceInfo/JoyName" to="." method="_on_joy_name_meta_clicked"]
  578. [connection signal="pressed" from="Vibration/Buttons/Start" to="." method="_on_start_vibration_pressed"]
  579. [connection signal="pressed" from="Vibration/Buttons/Stop" to="." method="_on_stop_vibration_pressed"]
  580. [connection signal="pressed" from="VBoxContainer/Clear" to="." method="_on_Clear_pressed"]
  581. [connection signal="pressed" from="VBoxContainer/Remap" to="." method="_on_Remap_pressed"]
  582. [connection signal="pressed" from="VBoxContainer/Show" to="." method="_on_Show_pressed"]