summaryrefslogtreecommitdiffstats
path: root/core/core_constants.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [GDExtension] Add binds for missing methods, operators, and constants ↵bruvzg2022-02-081-0/+3
| | | | required for GDExtension TextServer implementation.
* Improve locale detection.bruvzg2022-01-181-0/+1
| | | | | Use separate language, script and country lists. Add locale selection dialog and property hint.
* Merge pull request #56224 from Calinou/variant-rename-packed-array-constantsRémi Verschelde2022-01-061-9/+9
|\
| * Rename Variant Packed*Array constants for consistencyHugo Locurcio2021-12-241-9/+9
| | | | | | | | | | | | | | | | All arrays are now prefixed with `PACKED_` to distinguish them from GDScript's generic typed arrays. `RAW_ARRAY` is now `PACKED_BYTE_ARRAY` (RawArray was the name of PackedByteArray back in Godot 2.x).
* | Document InputEventMIDI and add some missing 0xF MIDI messagesAaron Franke2022-01-041-0/+11
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-21/+22
|
* Use "enum class" for input enumsAaron Franke2021-11-121-320/+331
|
* Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-1/+1
| | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* [Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli2021-10-011-2/+2
| | | | | | | | | any -> any_peer sync -> call_local ordered -> unreliable_ordered Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
* Merge pull request #52442 from Faless/mp/4.x_rpc_managerMax Hilbrunner2021-09-071-0/+10
|\ | | | | [Net] Move multiplayer classes to own subfolder. Split RPC from MultiplayerAPI.
| * [Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli2021-09-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
* | Implement properties arrays in the Inspector.Gilles Roudière2021-09-071-0/+1
|/
* Implement NativeExtension pointer argumentsreduz2021-08-231-0/+1
| | | | | | | | * Allows calling into native extensions directly with a pointer * Makes it easier to implement some APIs more efficiently * Appears with a "*" in the documentation for the argument. * Implementing the pointer handling is entirely up to the implementation, although the extension API provides some hint. * AudioStream has been implemented as an example, allowing to create NativeExtension based AudioStreams.
* Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz2021-08-221-0/+1
| | | | | | | | | | | * New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
* Use Key enum instead of plain integersAaron Franke2021-08-101-3/+0
|
* Merge pull request #51017 from vnen/extension-fixesRémi Verschelde2021-08-101-0/+34
|\
| * Bind missing constants from PropertyHint and PropertyUsageGeorge Marques2021-08-061-0/+34
| |
* | [Text Server] Improve object (image/table) inline alignment.bruvzg2021-08-081-0/+13
|/
* Add type variations to ThemeYuri Sizov2021-07-131-0/+1
|
* Fix editor suffixes and degrees conversionreduz2021-06-301-1/+0
| | | | | | | | | | | | | * Functions to convert to/from degrees are all gone. Conversion is done by the editor. * Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees. * Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m" * In general, can add suffixes for EditorSpinSlider Not covered by this PR, will have to be addressed by future ones: * Ability to switch radians/degrees in the inspector for angle properties (if actually wanted). * Animations previously made will most likely break, need to add a way to make old ones compatible. * Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes. * Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
* Move many input enums to their own fileAaron Franke2021-06-201-4/+0
|
* Rename Quat to QuaternionMarcel Admiraal2021-06-041-1/+1
|
* Rename Variant TRANSFORM to TRANSFORM3DAaron Franke2021-06-031-1/+1
| | | Also _transform to _transform3d
* Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-1/+1
| | | | InputEventWithModifiers properties/methods
* Rename some more global enums (Key, Joy, MIDI)Aaron Franke2021-03-231-4/+4
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-15/+15
|
* Merge pull request #46378 from reduz/static-method-in-variant-typesRémi Verschelde2021-03-161-0/+1
|\ | | | | Add static method support to core Variant types
| * Add static method support to core Variant typesreduz2021-03-161-0/+1
| | | | | | | | | | | | * Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
* | Implement Navigation layersGilles Roudière2021-03-101-0/+2
|/
* Bind ClockDirection enumGeorge Marques2021-02-231-0/+3
| | | | It's the only enum in math_defs.h not bound, and it's used by Plane.
* Add support for new SDL gamecontroller keywords.Marcel Admiraal2021-02-071-0/+6
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename Control margin to offsetMarcel Admiraal2020-12-231-4/+4
|
* Merge pull request #43414 from Xrayez/pi-type-stringRémi Verschelde2020-12-201-0/+1
|\ | | | | Expose `PROPERTY_HINT_TYPE_STRING` to scripting
| * Expose `PROPERTY_HINT_TYPE_STRING` to scriptingAndrii Doroshenko (Xrayez)2020-11-091-0/+1
| |
* | Rename TYPE_REAL to TYPE_FLOATGeorge Marques2020-12-041-1/+1
| | | | | | | | To be consistent with the naming everywhere else.
* | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+1
| | | | | | | | | | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* | Initialize class/struct variables with default values in core/ and drivers/Rafał Mikrut2020-11-231-2/+2
| |
* | Update joy button and stick names, enums and documentationMarcel Admiraal2020-11-191-37/+4
| |
* | Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-1/+1
|/ | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-0/+690
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code