General.tscn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://addons/admob/src/core/components/General.gd" type="Script" id=1]
  3. [ext_resource path="res://addons/admob/src/core/components/Enabled.gd" type="Script" id=2]
  4. [node name="General" type="VBoxContainer"]
  5. anchor_right = 1.0
  6. anchor_bottom = 1.0
  7. margin_left = 4.0
  8. margin_top = 32.0
  9. margin_right = -4.0
  10. margin_bottom = -4.0
  11. script = ExtResource( 1 )
  12. [node name="Enabled" type="CheckBox" parent="."]
  13. margin_right = 592.0
  14. margin_bottom = 24.0
  15. pressed = true
  16. text = "Enabled"
  17. script = ExtResource( 2 )
  18. __meta__ = {
  19. "_edit_use_anchors_": false
  20. }
  21. [node name="ConfirmationDialog" type="ConfirmationDialog" parent="Enabled"]
  22. anchor_left = 0.5
  23. anchor_top = 0.5
  24. anchor_right = 0.5
  25. anchor_bottom = 0.5
  26. margin_left = -334.0
  27. margin_top = -46.0
  28. margin_right = 334.0
  29. margin_bottom = 46.0
  30. dialog_text = "If \"Enabled\" is false then ads will no longer work, are you sure?
  31. Note: You can disable ads if the user purchases by IAP, that's why this attribute can be useful."
  32. [node name="ChildDirectedTreatment" type="CheckBox" parent="."]
  33. margin_top = 28.0
  34. margin_right = 592.0
  35. margin_bottom = 52.0
  36. text = "Child Directed Treatment"
  37. __meta__ = {
  38. "_edit_use_anchors_": false
  39. }
  40. [node name="MaxAdContentRating" type="HBoxContainer" parent="."]
  41. margin_top = 56.0
  42. margin_right = 592.0
  43. margin_bottom = 76.0
  44. __meta__ = {
  45. "_edit_use_anchors_": false
  46. }
  47. [node name="Key" type="Label" parent="MaxAdContentRating"]
  48. margin_top = 3.0
  49. margin_right = 132.0
  50. margin_bottom = 17.0
  51. text = "MaxAdContentRating"
  52. __meta__ = {
  53. "_edit_use_anchors_": false
  54. }
  55. [node name="Value" type="OptionButton" parent="MaxAdContentRating"]
  56. margin_left = 136.0
  57. margin_right = 183.0
  58. margin_bottom = 20.0
  59. text = "PG"
  60. items = [ "G", null, false, 0, null, "PG", null, false, 1, null, "T", null, false, 2, null, "MA", null, false, 3, null ]
  61. selected = 1
  62. __meta__ = {
  63. "_edit_use_anchors_": false
  64. }
  65. [connection signal="pressed" from="Enabled" to="Enabled" method="_on_Enabled_pressed"]
  66. [connection signal="confirmed" from="Enabled/ConfirmationDialog" to="Enabled" method="_on_ConfirmationDialog_confirmed"]
  67. [connection signal="pressed" from="ChildDirectedTreatment" to="." method="_on_ChildDirectedTreatment_pressed"]
  68. [connection signal="item_selected" from="MaxAdContentRating/Value" to="." method="_on_MaxAdContentRating_item_selected"]