text_ctrl.tscn 2.9 KB

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