BannerAdFormat.tscn 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://addons/admob/src/core/components/ad_format/AdFormat.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://addons/admob/src/core/components/ad_format/BannerAdFormat.gd" type="Script" id=2]
  4. [ext_resource path="res://addons/admob/src/core/components/ad_format/RespectSafeArea.gd" type="Script" id=3]
  5. [node name="BannerAdFormat" instance=ExtResource( 1 )]
  6. script = ExtResource( 2 )
  7. [node name="BannerSizeHBoxContainer" type="HBoxContainer" parent="." index="0"]
  8. margin_right = 500.0
  9. margin_bottom = 20.0
  10. __meta__ = {
  11. "_edit_use_anchors_": false
  12. }
  13. [node name="Label" type="Label" parent="BannerSizeHBoxContainer" index="0"]
  14. margin_top = 3.0
  15. margin_right = 75.0
  16. margin_bottom = 17.0
  17. text = "Banner Size"
  18. __meta__ = {
  19. "_edit_use_anchors_": false
  20. }
  21. [node name="BannerSize" type="OptionButton" parent="BannerSizeHBoxContainer" index="1"]
  22. margin_left = 79.0
  23. margin_right = 243.0
  24. margin_bottom = 20.0
  25. text = "MEDIUM_RECTANGLE"
  26. items = [ "BANNER", null, false, 0, null, "MEDIUM_RECTANGLE", null, false, 1, null, "FULL_BANNER", null, false, 2, null, "LEADERBOARD", null, false, 3, null, "ADAPTIVE", null, false, 4, null, "SMART_BANNER", null, false, 5, null ]
  27. selected = 1
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="RespectSafeArea" type="CheckBox" parent="." index="1"]
  32. margin_top = 24.0
  33. margin_right = 500.0
  34. margin_bottom = 48.0
  35. pressed = true
  36. text = "Respect Safe Area (RECOMMEND TRUE)"
  37. script = ExtResource( 3 )
  38. [node name="ConfirmationDialog" type="ConfirmationDialog" parent="RespectSafeArea" index="0"]
  39. anchor_left = 0.5
  40. anchor_top = 0.5
  41. anchor_right = 0.5
  42. anchor_bottom = 0.5
  43. margin_left = -250.0
  44. margin_top = -114.0
  45. margin_right = 250.0
  46. margin_bottom = 114.0
  47. window_title = "!!!WARNING!!!"
  48. dialog_text = "IT'S NOT RECOMMENDED LEAVE THIS AS FALSE
  49. According to Google AdMob documentation for iOS: Banner ads must be placed in the \"Safe Area\" to avoid being obscured by rounded corners, sensor housing, and the Home indicator.
  50. Read here: https://developers.google.com/admob/ios/x-ad-rendering"
  51. dialog_autowrap = true
  52. [node name="BannerShowInstantly" type="CheckBox" parent="." index="2"]
  53. margin_top = 52.0
  54. margin_right = 500.0
  55. margin_bottom = 76.0
  56. pressed = true
  57. text = "Show Banner Instantly"
  58. __meta__ = {
  59. "_edit_use_anchors_": false
  60. }
  61. [node name="BannerOnTop" type="CheckBox" parent="." index="3"]
  62. margin_top = 80.0
  63. margin_right = 500.0
  64. margin_bottom = 104.0
  65. text = "Banner On Top"
  66. [node name="UnitIds" parent="." index="4"]
  67. margin_top = 108.0
  68. margin_bottom = 168.0
  69. [connection signal="item_selected" from="BannerSizeHBoxContainer/BannerSize" to="." method="_on_BannerSize_item_selected"]
  70. [connection signal="pressed" from="RespectSafeArea" to="RespectSafeArea" method="_on_RespectSafeArea_pressed"]
  71. [connection signal="confirmed" from="RespectSafeArea/ConfirmationDialog" to="RespectSafeArea" method="_on_ConfirmationDialog_confirmed"]
  72. [connection signal="pressed" from="BannerShowInstantly" to="." method="_on_BannerShowInstantly_pressed"]
  73. [connection signal="pressed" from="BannerOnTop" to="." method="_on_BannerOnTop_pressed"]