Commit Graph

161 Commits

Author SHA1 Message Date
9b3e445e47 Merge pull request #105073 from Mickeon/documentation-miscellaneous-oddities-part-4
Fix miscellaneous oddities around the class reference (part 4)
2025-04-11 09:51:11 -05:00
e935fb1ee2 Fix miscellaneous oddities around the class reference (part 4) 2025-04-10 17:56:58 +02:00
cf3f02c550 Merge pull request #94143 from Mickeon/documentation-object-connect-to-signal-too-long-didn't-read
Move and simplify Object's `connect` description slightly
2025-04-09 18:11:59 -05:00
6b1869b76b Fix get_meta_list return type in description 2025-01-03 16:17:28 +11:00
072ff85f82 [.NET] Use collection expressions in docs
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
2024-12-21 02:28:59 +01:00
d90f045d24 Update documentation's "Prints" comments after #47502 2024-11-30 16:14:11 +01:00
2a147f3ce1 Merge pull request #99091 from Mickeon/documentation-object-boolean-context-4.4
Add documentation note on Object's boolean context
2024-11-27 10:46:54 -06:00
eaebb3f864 Fix more miscellaneous oddities around the class reference 2024-11-12 17:44:45 +01:00
e66d9988a6 Merge pull request #95774 from Mickeon/documentation-miscellaneous-oddities
Fix miscellaneous oddities around the class reference
2024-11-12 09:27:47 -06:00
f789025d42 Add documentation note on Object's boolean context 2024-11-11 22:21:59 +01:00
5c5460b026 Fix many untagged true/false/null in the documentation 2024-11-10 11:26:39 +01:00
203d3be200 [Core] Add way to check if a signal has any connections
Added to `Object` and `Signal`
2024-09-20 16:39:09 +02:00
330cb45c5a Merge pull request #96981 from ItzCog/patch-1
Change "deconstructor" to "destructor"
2024-09-20 16:06:31 +02:00
d33f4820cd Change "deconstructor" to "destructor" in NOTIFICATION_PREDELETE docs 2024-09-20 15:49:03 +02:00
c5d147b9b5 Allow configuring which translation domain Object.tr uses 2024-09-17 13:09:44 +08:00
be5068d44b Core: Bind and document iterator API virtual methods 2024-08-27 21:57:22 +03:00
97cf2c147e Fix C# code example for Object._get_property_list
There were two small errors in this code example that kept it from working when copied to a new node locally. These are the fixes I used locally to test the example.
2024-08-26 12:36:01 -07:00
b8f78b14be Fix miscellaneous oddities around the class reference 2024-08-18 23:18:44 +02:00
15f6984675 Fix check in Object._ValidateProperty example
The GDScript version above makes the `number` property read only whenever
`is_number_editable` is false.

```gdscript
func _validate_property(property: Dictionary):
	if property.name == "number" and not is_number_editable:
		property.usage |= PROPERTY_USAGE_READ_ONLY
```

The C# version is similar, but omits the negation, so the Number property is
made read only whenever `is_number_editable` is true.

This adds the negation to the C# example, making it match the GDScript
example.
2024-08-09 19:08:27 +00:00
824d4ee855 Move and simplify Object's connect description 2024-07-09 21:21:21 +02:00
6ab303cd76 [Doc] Clarify the session-specific nature of RID and ObjectID 2024-06-18 20:19:21 +02:00
409202d574 Add notes in Object about TranslationServer methods 2024-05-04 02:58:12 +03:00
75bca7d112 Remove experimental flag. 2024-04-18 19:37:05 +03:00
e263b11cdd Implement remove_user_signal()
Co-authored-by: Timothe Bonhoure <tbonhoure@ymail.Com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-04-18 11:22:59 +03:00
3286e191f3 doc: Use Signal.emit instead of emit_signal in Object examples 2024-04-09 10:35:15 +02:00
83789426cc Improve some notification and translation docs 2024-03-24 15:14:02 +01:00
59bcc2888c Add methods to get argument count of methods
Added to:
* `Callable`s
* `Object`s
* `ClassDB`
* `Script(Instance)`s
2024-03-10 11:02:43 +01:00
2f1f8ee39b [Docs][C#] Use PropertyName constants in more places 2024-03-07 13:03:03 +01:00
1cc5b0aa0d [Doc] Clarify some details about deferred calls 2024-02-28 17:04:47 +01:00
3ce9ae71fc Merge pull request #84906 from /fix-some-defvals 2024-02-23 11:29:22 +01:00
5ba92e5a57 Fix some DEFVALs to use the right type
- Use `StringName()` in DEFVAL for StringNames.
- Use `Variant()` in DEFVAL for Variants.
2024-02-23 01:50:18 +01:00
5473c7e222 Fix implementation of property_can_revert() in PropertyListHelper 2024-02-22 15:05:19 +01:00
7b42c24550 Make auto translation inheritable 2024-02-15 16:51:19 -03:00
5911a12db1 Update class reference to include some keywords
More should be added in future PRs, wherever there is demand.
2024-02-09 18:13:23 +01:00
fee70558f8 Expose NOTIFICATION_EXTENSION_RELOADED to ClassDB 2024-02-02 14:57:00 -05:00
964de297e4 Merge pull request #85450 from KoBeWi/advanced_properties_for_every_Object
Improve documentation for dynamic properties
2024-01-29 13:16:12 +01:00
7d0d405e22 Improve documentation for dynamic properties 2024-01-18 02:01:06 +01:00
e40b23c619 Correct C# syntax in _validate_property example for the Object class 2023-12-30 19:13:58 +01:00
d99285db6a Merge pull request #83609 from k0T0z/fix-csharp-syntax-error-in-web-doc
Fix Object class C# syntax error
2023-10-20 15:10:38 +02:00
458cb99966 Change return type of "_Set" method in csharp code example
Add "return false" to GDScript code example of _Set method
2023-10-19 18:52:11 +08:00
74efbde7df Fix Object class C# syntax error
Signed-off-by: Saif Kandil <74428638+k0T0z@users.noreply.github.com>
2023-10-19 13:43:54 +03:00
cc0eebd9d8 Validate code tags for class and member references
This commit also adds means to manually disable warnings
in `code` tags where it's a false positive with the new
`skip-lint` attribute.

Warnings are now enabled on CI to prevent future errors.
2023-10-03 15:48:31 +02:00
8dfd9d39a6 Merge pull request #81093 from mateuseap/docs/objectClassReference
Improve `Object.get_property_list()` method description
2023-08-29 12:48:19 +02:00
6020e34757 Improve Object.get_property_list() method description 2023-08-29 07:11:11 -03:00
67db4693eb Expose _validate_property() for scripting 2023-08-28 15:18:48 +02:00
4b208fec74 Merge pull request #80884 from timothyqiu/typo-fixes
Fix various typos in classref
2023-08-25 14:58:47 +02:00
d026b37abd Fix various typos in classref 2023-08-22 18:05:50 +08:00
90160eff80 Fix _set example 2023-08-12 12:46:46 +02:00
81064cc239 Doctool: Remove version attribute from XML header
We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).
2023-07-06 10:08:21 +02:00
346f1ab86b Bump version to 4.2-dev
Keep on waitin'
2023-07-05 22:07:03 +02:00