AdUnit.tscn 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://addons/admob/src/core/components/ad_format/unit_ids/ad_unit_operational_system/ad_unit/AdUnit.gd" type="Script" id=1]
  3. [node name="AdUnit" type="GridContainer"]
  4. margin_right = 220.0
  5. margin_bottom = 24.0
  6. columns = 3
  7. script = ExtResource( 1 )
  8. __meta__ = {
  9. "_edit_use_anchors_": false
  10. }
  11. [node name="Name" type="LineEdit" parent="."]
  12. margin_right = 108.0
  13. margin_bottom = 24.0
  14. size_flags_horizontal = 3
  15. text = "<insert-name>"
  16. align = 1
  17. expand_to_text_length = true
  18. virtual_keyboard_enabled = false
  19. [node name="Id" type="LineEdit" parent="."]
  20. margin_left = 112.0
  21. margin_right = 196.0
  22. margin_bottom = 24.0
  23. size_flags_horizontal = 3
  24. text = "<insert-id>"
  25. align = 1
  26. expand_to_text_length = true
  27. virtual_keyboard_enabled = false
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="GridContainer" type="GridContainer" parent="."]
  32. margin_left = 200.0
  33. margin_right = 255.0
  34. margin_bottom = 24.0
  35. columns = 2
  36. [node name="ConfirmButton" type="Button" parent="GridContainer"]
  37. margin_right = 31.0
  38. margin_bottom = 20.0
  39. text = "OK"
  40. __meta__ = {
  41. "_edit_use_anchors_": false
  42. }
  43. [node name="EditButton" type="Button" parent="GridContainer"]
  44. visible = false
  45. margin_left = 35.0
  46. margin_right = 76.0
  47. margin_bottom = 20.0
  48. text = "EDIT"
  49. [node name="RemoveButton" type="Button" parent="GridContainer"]
  50. margin_left = 35.0
  51. margin_right = 55.0
  52. margin_bottom = 20.0
  53. text = "X"
  54. [node name="Alerts" type="Node" parent="."]
  55. [node name="UniqueNameAcceptDialog" type="AcceptDialog" parent="Alerts"]
  56. anchor_left = 0.5
  57. anchor_top = 0.5
  58. anchor_right = 0.5
  59. anchor_bottom = 0.5
  60. margin_left = -95.0
  61. margin_top = -29.0
  62. margin_right = 95.0
  63. margin_bottom = 29.0
  64. dialog_text = "The Name must be unique!"
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [node name="NameIdEmptyAcceptDialog" type="AcceptDialog" parent="Alerts"]
  69. anchor_left = 0.5
  70. anchor_top = 0.5
  71. anchor_right = 0.5
  72. anchor_bottom = 0.5
  73. margin_left = -95.0
  74. margin_top = -29.0
  75. margin_right = 95.0
  76. margin_bottom = 29.0
  77. dialog_text = "The Name and Id must not be empty!"
  78. __meta__ = {
  79. "_edit_use_anchors_": false
  80. }
  81. [connection signal="text_entered" from="Name" to="." method="_on_AdUnit_text_entered"]
  82. [connection signal="text_entered" from="Id" to="." method="_on_AdUnit_text_entered"]
  83. [connection signal="pressed" from="GridContainer/ConfirmButton" to="." method="_on_ConfirmButton_pressed"]
  84. [connection signal="pressed" from="GridContainer/EditButton" to="." method="_on_EditButton_pressed"]
  85. [connection signal="pressed" from="GridContainer/RemoveButton" to="." method="_on_RemoveButton_pressed"]