Merge pull request #107357 from ProgrammerOnCoffee/fix-dictionary-style

Enforce GDScript and C# dictionary spacing style guidelines in code samples
This commit is contained in:
Thaddeus Crews 2025-06-10 19:22:43 -05:00
commit 1bbfe637c6
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
6 changed files with 39 additions and 39 deletions

View File

@ -34,7 +34,7 @@
{
{ "White", 50 },
{ "Yellow", 75 },
{"Orange", 100}
{ "Orange", 100 },
};
[/csharp]
[/codeblocks]
@ -54,7 +54,7 @@
{
{ "White", 50 },
{ "Yellow", 75 },
{"Orange", 100}
{ "Orange", 100 },
};
public override void _Ready()
@ -89,7 +89,7 @@
{
{ "White", 50 },
{ "Yellow", 75 },
{"Orange", 100}
{ "Orange", 100 },
};
pointsDict["Blue"] = 150; // Add "Blue" as a key and assign 150 as its value.
[/csharp]
@ -114,7 +114,7 @@
{ "String Key", 5 },
{ 4, new Godot.Collections.Array { 1, 2, 3 } },
{ 7, "Hello" },
{"sub_dict", new Godot.Collections.Dictionary{{"sub_key", "Nested value"}}}
{ "sub_dict", new Godot.Collections.Dictionary { { "sub_key", "Nested value" } } },
};
[/csharp]
[/codeblocks]

View File

@ -61,7 +61,7 @@
{ "name", "category/propertyName" },
{ "type", Variant.Type.Int },
{ "hint", PropertyHint.Enum },
{"hint_string", "one,two,three"}
{ "hint_string", "one,two,three" },
};
settings.AddPropertyInfo(propertyInfo);