circle_ctrl.tscn 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://scripts/circle_elem.gd" type="Script" id=1]
  3. [ext_resource path="res://textures/ctrl.png" type="Texture" id=2]
  4. [ext_resource path="res://textures/round.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="circle_ctrl" type="VBoxContainer"]
  15. margin_left = 215.0
  16. margin_top = 270.0
  17. margin_right = 357.0
  18. margin_bottom = 294.0
  19. [node name="hb" type="HBoxContainer" parent="."]
  20. margin_right = 186.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 = -282.716
  31. margin_top = -245.983
  32. margin_right = 229.284
  33. margin_bottom = 266.017
  34. rect_scale = Vector2( 0.098, 0.098 )
  35. rect_pivot_offset = Vector2( 256, 256 )
  36. texture = ExtResource( 3 )
  37. [node name="LineEdit" type="LineEdit" parent="hb"]
  38. margin_left = 25.0
  39. margin_right = 83.0
  40. margin_bottom = 24.0
  41. hint_tooltip = "Size"
  42. text = "100"
  43. max_length = 4
  44. [node name="CheckBox" type="CheckBox" parent="hb"]
  45. margin_left = 87.0
  46. margin_right = 111.0
  47. margin_bottom = 24.0
  48. hint_tooltip = "Render glow"
  49. [node name="ColorPickerButton" type="ColorPickerButton" parent="hb"]
  50. margin_left = 115.0
  51. margin_right = 160.0
  52. margin_bottom = 24.0
  53. text = "Color"
  54. color = Color( 2, 0.65, 0.2, 1 )
  55. edit_alpha = false
  56. [node name="Button" type="Button" parent="hb"]
  57. margin_left = 164.0
  58. margin_right = 186.0
  59. margin_bottom = 24.0
  60. hint_tooltip = "Delete"
  61. custom_styles/hover = SubResource( 1 )
  62. custom_styles/pressed = SubResource( 2 )
  63. custom_styles/focus = SubResource( 3 )
  64. custom_styles/disabled = SubResource( 4 )
  65. custom_styles/normal = SubResource( 5 )
  66. text = "Del"
  67. [connection signal="text_changed" from="hb/LineEdit" to="hb" method="_on_LineEdit_text_changed"]
  68. [connection signal="pressed" from="hb/CheckBox" to="hb" method="_on_CheckBox_pressed"]
  69. [connection signal="color_changed" from="hb/ColorPickerButton" to="hb" method="_on_ColorPickerButton_color_changed"]
  70. [connection signal="pressed" from="hb/Button" to="hb" method="_on_Button_pressed"]