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:
commit
1bbfe637c6
@ -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]
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user