tri_ctrl.tscn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://scripts/tri_elem.gd" type="Script" id=1]
  3. [ext_resource path="res://textures/ctrl.png" type="Texture" id=2]
  4. [ext_resource path="res://textures/tri.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="box_ctrl" type="VBoxContainer"]
  15. margin_left = 215.0
  16. margin_top = 270.0
  17. margin_right = 353.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 = -281.766
  31. margin_top = -245.033
  32. margin_right = 230.234
  33. margin_bottom = 266.967
  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. visible = false
  39. margin_left = 25.0
  40. margin_right = 83.0
  41. margin_bottom = 24.0
  42. hint_tooltip = "Size"
  43. text = "100"
  44. max_length = 4
  45. [node name="CheckBox" type="CheckBox" parent="hb"]
  46. margin_left = 25.0
  47. margin_right = 49.0
  48. margin_bottom = 24.0
  49. hint_tooltip = "Render glow"
  50. [node name="LineEdit2" type="LineEdit" parent="hb"]
  51. margin_left = 53.0
  52. margin_right = 111.0
  53. margin_bottom = 24.0
  54. hint_tooltip = "Rotate"
  55. text = "0"
  56. max_length = 3
  57. [node name="ColorPickerButton" type="ColorPickerButton" parent="hb"]
  58. margin_left = 115.0
  59. margin_right = 160.0
  60. margin_bottom = 24.0
  61. hint_tooltip = "color"
  62. text = "Color"
  63. color = Color( 0.227451, 0.356863, 0.803922, 1 )
  64. edit_alpha = false
  65. [node name="Button" type="Button" parent="hb"]
  66. margin_left = 164.0
  67. margin_right = 186.0
  68. margin_bottom = 24.0
  69. hint_tooltip = "Delete"
  70. custom_styles/hover = SubResource( 1 )
  71. custom_styles/pressed = SubResource( 2 )
  72. custom_styles/focus = SubResource( 3 )
  73. custom_styles/disabled = SubResource( 4 )
  74. custom_styles/normal = SubResource( 5 )
  75. text = "Del"
  76. [connection signal="text_changed" from="hb/LineEdit" to="hb" method="_on_LineEdit_text_changed"]
  77. [connection signal="pressed" from="hb/CheckBox" to="hb" method="_on_CheckBox_pressed"]
  78. [connection signal="text_changed" from="hb/LineEdit2" to="hb" method="_on_LineEdit2_text_changed"]
  79. [connection signal="color_changed" from="hb/ColorPickerButton" to="hb" method="_on_ColorPickerButton_color_changed"]
  80. [connection signal="pressed" from="hb/Button" to="hb" method="_on_Button_pressed"]