mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
Convert demos to Godot 4 using regular expressions in a script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Godot.NET.Sdk/3.3.0">
|
||||
<Project Sdk="Godot.NET.Sdk/4.0.0-dev5">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<RootNamespace>AndroidIAP</RootNamespace>
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
||||
ItemNotOwned = 8,
|
||||
}
|
||||
|
||||
public class BillingResult
|
||||
public partial class BillingResult
|
||||
{
|
||||
public BillingResult() { }
|
||||
public BillingResult(Dictionary billingResult)
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
||||
Subs,
|
||||
}
|
||||
|
||||
public class GooglePlayBilling : Node
|
||||
public partial class GooglePlayBilling : Node
|
||||
{
|
||||
[Signal] public delegate void Connected();
|
||||
[Signal] public delegate void Disconnected();
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
||||
Pending = 2,
|
||||
}
|
||||
|
||||
public class Purchase
|
||||
public partial class Purchase
|
||||
{
|
||||
public Purchase() { }
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Godot.Collections;
|
||||
|
||||
namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
||||
{
|
||||
public class PurchasesResult : BillingResult
|
||||
public partial class PurchasesResult : BillingResult
|
||||
{
|
||||
public PurchasesResult() { }
|
||||
public PurchasesResult(Dictionary purchasesResult)
|
||||
|
||||
@@ -4,7 +4,7 @@ using Godot.Collections;
|
||||
|
||||
namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
||||
{
|
||||
public class SkuDetails
|
||||
public partial class SkuDetails
|
||||
{
|
||||
public SkuDetails() { }
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using System;
|
||||
|
||||
namespace AndroidInAppPurchasesWithCSharp
|
||||
{
|
||||
public class Main : Control
|
||||
public partial class Main : Control
|
||||
{
|
||||
const string TestItemSku = "my_in_app_purchase_sku";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_resource type="Environment" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="ProceduralSky" id=1]
|
||||
[sub_resource type="Sky" id=1]
|
||||
|
||||
[resource]
|
||||
background_mode = 2
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.711
|
||||
margin_top = -300.0
|
||||
margin_right = 511.289
|
||||
margin_bottom = 300.0
|
||||
offset_left = -512.711
|
||||
offset_top = -300.0
|
||||
offset_right = 511.289
|
||||
offset_bottom = 300.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
script = ExtResource( 1 )
|
||||
@@ -24,22 +24,22 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = 64.0
|
||||
margin_top = 64.0
|
||||
margin_right = -64.0
|
||||
margin_bottom = -64.0
|
||||
offset_left = 64.0
|
||||
offset_top = 64.0
|
||||
offset_right = -64.0
|
||||
offset_bottom = -64.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rect_min_size = Vector2( 400, 0 )
|
||||
rect_min_size = Vector2(400, 0)
|
||||
size_flags_vertical = 4
|
||||
popup_exclusive = true
|
||||
dialog_autowrap = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 300.0
|
||||
margin_top = 40.0
|
||||
margin_right = 996.0
|
||||
margin_bottom = 156.0
|
||||
offset_left = 300.0
|
||||
offset_top = 40.0
|
||||
offset_right = 996.0
|
||||
offset_bottom = 156.0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 0
|
||||
text = "To test in-app purchase on android device,
|
||||
@@ -51,30 +51,30 @@ text = "To test in-app purchase on android device,
|
||||
4. Changes you make in the Play Console may take some time before taking effect"
|
||||
|
||||
[node name="QuerySkuDetailsButton" type="Button" parent="."]
|
||||
margin_left = 40.5697
|
||||
margin_top = 39.9347
|
||||
margin_right = 221.57
|
||||
margin_bottom = 91.9347
|
||||
offset_left = 40.5697
|
||||
offset_top = 39.9347
|
||||
offset_right = 221.57
|
||||
offset_bottom = 91.9347
|
||||
text = "Query SKU details"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="PurchaseButton" type="Button" parent="."]
|
||||
margin_left = 40.5697
|
||||
margin_top = 101.203
|
||||
margin_right = 221.57
|
||||
margin_bottom = 153.203
|
||||
offset_left = 40.5697
|
||||
offset_top = 101.203
|
||||
offset_right = 221.57
|
||||
offset_bottom = 153.203
|
||||
text = "Purchase"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ConsumeButton" type="Button" parent="."]
|
||||
margin_left = 40.5697
|
||||
margin_top = 162.142
|
||||
margin_right = 221.57
|
||||
margin_bottom = 214.142
|
||||
offset_left = 40.5697
|
||||
offset_top = 162.142
|
||||
offset_right = 221.57
|
||||
offset_bottom = 214.142
|
||||
text = "Consume"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
||||
@@ -29,7 +29,7 @@ window/stretch/aspect="expand"
|
||||
|
||||
[gdnative]
|
||||
|
||||
singletons=[ ]
|
||||
singletons=[]
|
||||
|
||||
[rendering]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user