main.tscn 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. [gd_scene load_steps=2 format=1]
  2. [ext_resource path="res://iap_demo.gd" type="Script" id=1]
  3. [node name="Control" type="Control"]
  4. anchor/right = 1
  5. anchor/bottom = 1
  6. focus/ignore_mouse = false
  7. focus/stop_mouse = true
  8. size_flags/horizontal = 2
  9. size_flags/vertical = 2
  10. margin/left = 0.0
  11. margin/top = 0.0
  12. margin/right = 0.0
  13. margin/bottom = 0.0
  14. script/script = ExtResource( 1 )
  15. [node name="purchase" type="Button" parent="."]
  16. focus/ignore_mouse = false
  17. focus/stop_mouse = true
  18. size_flags/horizontal = 2
  19. size_flags/vertical = 2
  20. margin/left = 40.0
  21. margin/top = 40.0
  22. margin/right = 250.0
  23. margin/bottom = 120.0
  24. toggle_mode = false
  25. enabled_focus_mode = 2
  26. shortcut = null
  27. text = "Purchase in app"
  28. flat = false
  29. [node name="consume" type="Button" parent="."]
  30. focus/ignore_mouse = false
  31. focus/stop_mouse = true
  32. size_flags/horizontal = 2
  33. size_flags/vertical = 2
  34. margin/left = 40.0
  35. margin/top = 150.0
  36. margin/right = 250.0
  37. margin/bottom = 230.0
  38. toggle_mode = false
  39. enabled_focus_mode = 2
  40. shortcut = null
  41. text = "Consume in app"
  42. flat = false
  43. [node name="request" type="Button" parent="."]
  44. focus/ignore_mouse = false
  45. focus/stop_mouse = true
  46. size_flags/horizontal = 2
  47. size_flags/vertical = 2
  48. margin/left = 40.0
  49. margin/top = 260.0
  50. margin/right = 250.0
  51. margin/bottom = 340.0
  52. toggle_mode = false
  53. enabled_focus_mode = 2
  54. shortcut = null
  55. text = "Request purchased"
  56. flat = false
  57. [node name="query" type="Button" parent="."]
  58. focus/ignore_mouse = false
  59. focus/stop_mouse = true
  60. size_flags/horizontal = 2
  61. size_flags/vertical = 2
  62. margin/left = 40.0
  63. margin/top = 370.0
  64. margin/right = 250.0
  65. margin/bottom = 450.0
  66. toggle_mode = false
  67. enabled_focus_mode = 2
  68. shortcut = null
  69. text = "Query in app items"
  70. flat = false
  71. [node name="alert" type="AcceptDialog" parent="."]
  72. visibility/visible = false
  73. focus/ignore_mouse = false
  74. focus/stop_mouse = true
  75. size_flags/horizontal = 2
  76. size_flags/vertical = 2
  77. margin/left = 290.0
  78. margin/top = 60.0
  79. margin/right = 700.0
  80. margin/bottom = 290.0
  81. popup/exclusive = false
  82. window/title = "Alert!"
  83. dialog/hide_on_ok = true
  84. [node name="Label" type="Label" parent="."]
  85. focus/ignore_mouse = true
  86. focus/stop_mouse = true
  87. size_flags/horizontal = 2
  88. size_flags/vertical = 0
  89. margin/left = 300.0
  90. margin/top = 40.0
  91. margin/right = 932.0
  92. margin/bottom = 207.0
  93. text = "\"iap\" is located in Autoloads. See Scene > Project Settings > AutoLoad\n\nTo enable IAP module\n\n1. Scene > Project Settings\n2. write [Category : android] / [Property : modules] / [Type : String] and click Add\n3. Click \"Android\" on left panel\n4. double click on right filed of \"modules\"\n5. write \"org/godotengine/godot/GodotPaymentV3\"\n\nTo test in-app purchase on android device,\n\n1. Need to add \"com.android.vending.BILLING\" permission at Export > Android > User Permissions\n2. Export APK and upload it as alpha or beta stage to Google Play Developer Console and publish it.\n (It\'s not published to public, but you and tester can access it.)\n3. There should be activated in-app item\n4. Any changes on Developer console will take 2~3 hours to take effect"
  94. percent_visible = 1.0
  95. lines_skipped = 0
  96. max_lines_visible = -1