Convert demos to Godot 4 using regular expressions in a script

This commit is contained in:
Aaron Franke
2022-03-26 05:00:50 -05:00
parent 410d783126
commit bbe50fc9da
1095 changed files with 13628 additions and 13557 deletions

View File

@@ -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>

View File

@@ -43,7 +43,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
ItemNotOwned = 8,
}
public class BillingResult
public partial class BillingResult
{
public BillingResult() { }
public BillingResult(Dictionary billingResult)

View File

@@ -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();

View File

@@ -12,7 +12,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
Pending = 2,
}
public class Purchase
public partial class Purchase
{
public Purchase() { }

View File

@@ -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)

View File

@@ -4,7 +4,7 @@ using Godot.Collections;
namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
{
public class SkuDetails
public partial class SkuDetails
{
public SkuDetails() { }

View File

@@ -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";

View File

@@ -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

View File

@@ -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]

View File

@@ -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

View File

@@ -29,7 +29,7 @@ window/stretch/aspect="expand"
[gdnative]
singletons=[ ]
singletons=[]
[rendering]