summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2019-12-30Merge pull request #34625 from timothyqiu/i18nRémi Verschelde
Makes more editor strings translatable
2019-12-30Merge pull request #34582 from timothyqiu/forward-declRémi Verschelde
Cleans up headers included in editor_node.h
2019-12-30Makes more editor strings translatableHaoyu Qiu
* Title of Sprite Editor convert preview dialogs * Title of UV Channel Debug dialog * Various editor warnings * GridMap popup menu item "Paste Selects" * Tileset editor shape button texts * MeshLibrary update confirmation text
2019-12-29Fix msbuild target argumentDan Kramer
2019-12-28Mono/C#: Re-structure API solution and GodotTools post-build targetIgnacio Etcheverry
Previously we had a placeholder solution called 'Managed' to benefit from tooling while editing the a part of the C# API. Later the bindings generator would create the final 'GodotSharp' solution including these C# files as well as the auto-generated C# API. Now we replaced the 'Managed' solution with the final 'GodotSharp' solution which is no longer auto-generated, and the bindings generator only takes care of the auto-generated C# API. This has the following benefits: - It's less confusing as there will no longer be two versions of the same file (the original and a generated copy of it). Now there's only one. - We no longer need placeholder for auto-generated API classes, like Node or Resource. We used them for benefiting from tooling. Now we can just use the auto-generated API itself. - Simplifies the build system and bindings generator. Removed lot of code that is not needed anymore. Also added a post-build target to the GodotTools project to copy the output to the data dir. This makes it easy to iterate when doing changes to GodotTools, as SCons doesn't have to be executed anymore just to copy these new files.
2019-12-26Merge pull request #34595 from van800/mac_riderIgnacio Roldán Etcheverry
Fix search for Rider path on Mac
2019-12-25Merge pull request #34604 from neikeq/issue-27674Ignacio Roldán Etcheverry
Mono/C#: Fix memory leak with new Reference instances created from C#
2019-12-25Mono/C#: Fix memory leak with new Reference instances created from C#Ignacio Etcheverry
2019-12-25fix Rider path on MacIvan.Shakhov
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-22Merge pull request #34515 from Faless/ws/closing_wsRémi Verschelde
WSLPeer now prevents receiving data after close.
2019-12-21add suggested fixDan Kramer
2019-12-21Merge pull request #34514 from neikeq/remove-dep-on-mono-posixRémi Verschelde
Mono/C#: Remove GodotTools dependency on the Mono.Posix assembly
2019-12-21WSLPeer now prevents receiving data after close.Fabio Alessandrelli
Used to spit error and report empty packets when connection was still half-closed (waiting for confirmation from other end).
2019-12-21Mono/C#: Remove GodotTools dependency on the Mono.Posix assemblyIgnacio Etcheverry
MSBuild on Windows uses the system .NET Framework BCL instead of Mono's. Because of this, it may not be able to find the Mono.Posix assembly, so it's better not to depend on it. We needed Mono.Posix to call Syscall.access, so we can replace this with an internal call that does the same in C++.
2019-12-21Makes more editor strings translatableHaoyu Qiu
* "Add" button text in Groups Editor * "Receiver Method" in Connect Signal Dialog * "Play Mode" in Animation State Machine Editor * "Mesh Library" button text in Mesh Library editor plugin * Compose Array node button texts in Visual Script * Various button texts in TileSet Editor * Various Run Script errors
2019-12-19Merge pull request #34465 from neikeq/no-hardcode-debugger-waitRémi Verschelde
Mono/C#: Remove hard-coded debugger wait at initialization
2019-12-19Mono/C#: Remove hard-coded debugger wait at initializationIgnacio Etcheverry
Up until now debug builds would always wait up to 500 ms during initialization to give time for debuggers to attach to the game. We no longer want this as it increases startup time unnecesarily. The way forward is to setup the debugger agent as client instead of server. This way it's the game that connect to the debugger, not the other way around. If server mode is still desired, suspend=y can be used to indefinitely wait for the debugger to attach. This all can be specified with the environment variable 'GODOT_MONO_DEBUGGER_AGENT' when launching the game.
2019-12-19Mono/C#: Fix Variant -> MonoString* when type is Variant:NILIgnacio Etcheverry
`Variant::operator String()` returns "Null" if the type is `Variant:NIL`. We must consider that and return a null `MonoString*` instead when marshalling. This was also causing a "Null" error to be displayed when exporting a game because null string members would be set to "Null" during hot-reload.
2019-12-18Mono: Copy native and btls libs on macOSRémi Verschelde
2019-12-17Mono/C#: Fix project export and fix FindLast/GetFile regressionIgnacio Etcheverry
d09193b08ae8fdb082bee6ffd3828eb19fd45ce6 introduced a regression in StringExtensions.FindLast. StringExtensions.GetFile was also affected as it relies on FindLast. This in turn broke the project exporter as it uses GetFile. The cause of the regression is that now FindLast is calling LastIndexOf with 'startIndex: 0'. This should be 'startIndex: str.Length - 1' instead. Also fixed another regression in the project exporter: de7c2ad21b4cc2d889a5aeda64ead962036d2aa4 moved 'GodotTools/GodotSharpExport.cs' to 'GodotTools/Export/ExportPlugin.cs' and in doing so accidently reverted the changes from commit e439581198de92e63661c4fe71108cb59cc2d999.
2019-12-17Fixes size of create function dialogHaoyu Qiu
2019-12-16Merge pull request #34382 from van800/profilerRémi Verschelde
Allow attaching any external profiler, including JetBrains dotTrace
2019-12-16Allow attaching any external profiler, including JetBrains dotTraceIvan Shakhov
2019-12-16Mono: Enable threads suspend workaround on WindowsRémi Verschelde
This appears to be necessary for current official builds cross-compiled with MinGW from Linux, using Mono 6.6.0.160. Follow-up to #31784, see #29812 for details.
2019-12-16Merge pull request #34377 from timothyqiu/i18nRémi Verschelde
Makes more strings in editor translatable
2019-12-16Makes more strings in editor translatableHaoyu Qiu
* File type names in file dialogs * Layout option names * Visual shader editor UI
2019-12-16Merge pull request #34280 from zaksnet/fix-yield-documentationRémi Verschelde
Fix documentation for yield
2019-12-15Updates docs for GDScript built-in functionsHaoyu Qiu
* Adds description for `ord()` * Adds relationship description between `char()` and `ord()` * Describes the argument of `char()` as Unicode code point instead of ASCII code * Fixes wrong interval notation in `randi()` description
2019-12-13Merge pull request #34334 from neikeq/issue-33503Rémi Verschelde
Mono/C#: Fix class parser bug with 'where T : struct'
2019-12-13Merge pull request #34333 from vnen/gdscript-assign-opRémi Verschelde
Fix some cases where typed assignment gets invalid
2019-12-13Mono/C#: Fix class parser incorrectly handling nested namespacesIgnacio Etcheverry
It would incorrectly error thinking the nested namespace is being declared inside a struct/class. This was because of an incorrect nesting level being used for classes and structs.
2019-12-13Mono/C#: Fix class parser bug with 'where T : struct'Ignacio Etcheverry
The struct decl parsing was outdated. Make both struct decl and class declparsing share the same code.
2019-12-13GDScript: Convert values when setting member variablesGeorge Marques
This allows doing: self.x = 1 even if self.x is declared as float.
2019-12-13GDScript: Fix type conversion in assignment with operationGeorge Marques
2019-12-13doc: Sync classref with current sourceRémi Verschelde
Also apply clang-format.
2019-12-13Fix documentation for yieldZak
#33872 PR was misleading as i though inheritance from GDScriptFunctionState was optional.
2019-12-13Merge pull request #34295 from aaronfranke/potato-knishesRémi Verschelde
[Mono] Fix string Find methods having reversed case sensitivity
2019-12-12Merge pull request #34286 from bojidar-bg/31818-cast-autocompleteRémi Verschelde
Fix GDScript autocompletion with "as" or typed variables
2019-12-12Fix string Find methods having reversed case sensitivityAaron Franke
2019-12-12Fix GDScript autocompletion with `as` or typed variablesBojidar Marinov
Fixes #31818, fixes #33434
2019-12-11Mono formattingAaron Franke
No space for casting, add spaces inside braces, 4 space indentation, remove trailing indentation, remove BOM.
2019-12-11Add note in 'load()' docs that the path must be absoluteMichael Alexsander
2019-12-11Merge pull request #34271 from vnen/gdscript-unused-class-variable-disableRémi Verschelde
Disable GDScript warning for unused class variable by default
2019-12-11Merge pull request #34227 from akien-mga/scons-mingw-split-libmodulesRémi Verschelde
SCons: Add 'split_libmodules' option to workaround linker issue
2019-12-11SCons: Add 'split_libmodules' option to workaround linker issueRémi Verschelde
The new 'split_libmodules=yes' option is useful to work around linker command line size limitations when linking a huge number of objects. We're currently over 64k chars when linking libmodules.a on Windows with MinGW, which triggers issues as seen in #30892. Even on Linux, we can also reach linker command line size limitations by adding more custom modules. We force this option to True for MinGW on Windows, which fixes #30892. Additional changes to lib splitting: - Fix linking of the split module libs with interdependent symbols, hacking our way into LINKCOM and SHLINKCOM to set the `--start-group` and `--end-group` flags. - Fix Python 3 compatibility in `methods.split_lib()`. - Drop seemingly obsolete condition for 'msys' on 'posix'. - Drop the unnecessary 'split_drivers' as the drivers lib is no longer too big since we moved all thirdparty builds to modules. Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2019-12-11Merge pull request #33018 from Xrayez/fix-inst2dict-gettersRémi Verschelde
Fix `inst2dict` calling to getters to retrieve value
2019-12-11Disable GDScript warning for unused class variable by defaultGeorge Marques
2019-12-11Merge pull request #34181 from van800/riderRémi Verschelde
Support Rider as external editor for Godot mono version
2019-12-11Support Rider as External EditorIvan Shakhov