line_ctrl.tscn 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://scripts/line_elem.gd" type="Script" id=1]
  3. [ext_resource path="res://textures/ctrl.png" type="Texture" id=2]
  4. [ext_resource path="res://textures/line.png" type="Texture" id=3]
  5. [sub_resource type="StyleBoxFlat" id=1]
  6. bg_color = Color( 0.690196, 0.211765, 0.211765, 1 )
  7. [sub_resource type="StyleBoxFlat" id=2]
  8. bg_color = Color( 0.403922, 0.0862745, 0.0862745, 1 )
  9. [sub_resource type="StyleBoxFlat" id=3]
  10. bg_color = Color( 0.776471, 0.223529, 0.223529, 1 )
  11. [sub_resource type="StyleBoxFlat" id=4]
  12. [sub_resource type="StyleBoxFlat" id=5]
  13. bg_color = Color( 0.776471, 0.223529, 0.223529, 1 )
  14. [node name="line_ctrl" type="VBoxContainer"]
  15. margin_left = 215.0
  16. margin_top = 270.0
  17. margin_right = 416.0
  18. margin_bottom = 294.0
  19. [node name="hb" type="HBoxContainer" parent="."]
  20. margin_right = 248.0
  21. margin_bottom = 24.0
  22. script = ExtResource( 1 )
  23. [node name="TextureRect" type="TextureRect" parent="hb"]
  24. margin_right = 21.0
  25. margin_bottom = 24.0
  26. rect_pivot_offset = Vector2( 10.5, 10.5 )
  27. hint_tooltip = "Move"
  28. texture = ExtResource( 2 )
  29. [node name="TextureRect2" type="TextureRect" parent="hb/TextureRect"]
  30. margin_left = -6.82561
  31. margin_top = -39.7256
  32. margin_right = -0.825607
  33. margin_bottom = 60.2744
  34. texture = ExtResource( 3 )
  35. [node name="LineEdit" type="LineEdit" parent="hb"]
  36. margin_left = 25.0
  37. margin_right = 83.0
  38. margin_bottom = 24.0
  39. hint_tooltip = "Length"
  40. text = "100"
  41. max_length = 4
  42. [node name="CheckBox" type="CheckBox" parent="hb"]
  43. margin_left = 87.0
  44. margin_right = 111.0
  45. margin_bottom = 24.0
  46. hint_tooltip = "Render glow"
  47. [node name="LineEdit2" type="LineEdit" parent="hb"]
  48. margin_left = 115.0
  49. margin_right = 173.0
  50. margin_bottom = 24.0
  51. hint_tooltip = "Rotate"
  52. text = "0"
  53. max_length = 3
  54. [node name="ColorPickerButton" type="ColorPickerButton" parent="hb"]
  55. margin_left = 177.0
  56. margin_right = 222.0
  57. margin_bottom = 24.0
  58. text = "Color"
  59. color = Color( 1, 0.431373, 0.258824, 1 )
  60. edit_alpha = false
  61. [node name="Button" type="Button" parent="hb"]
  62. margin_left = 226.0
  63. margin_right = 248.0
  64. margin_bottom = 24.0
  65. hint_tooltip = "Delete"
  66. custom_styles/hover = SubResource( 1 )
  67. custom_styles/pressed = SubResource( 2 )
  68. custom_styles/focus = SubResource( 3 )
  69. custom_styles/disabled = SubResource( 4 )
  70. custom_styles/normal = SubResource( 5 )
  71. text = "Del"
  72. [connection signal="text_changed" from="hb/LineEdit" to="hb" method="_on_LineEdit_text_changed"]
  73. [connection signal="pressed" from="hb/CheckBox" to="hb" method="_on_CheckBox_pressed"]
  74. [connection signal="text_changed" from="hb/LineEdit2" to="hb" method="_on_LineEdit2_text_changed"]
  75. [connection signal="color_changed" from="hb/ColorPickerButton" to="hb" method="_on_ColorPickerButton_color_changed"]
  76. [connection signal="pressed" from="hb/Button" to="hb" method="_on_Button_pressed"]