summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-25C#: Switch games to MSBuild Sdks and .NET StandardIgnacio Etcheverry
Godot.NET.Sdk ------------- Godot uses its own custom MSBuild Sdk for game projects. This new Sdk adds its own functionality on top of 'Microsoft.NET.Sdk'. The new Sdk is resolved from the NuGet package. All the default boilerplate was moved from game projects to the Sdk. The default csproj for game project can now be as simple as: ``` <Project Sdk="Godot.NET.Sdk/4.0.0-dev2"> <PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> </PropertyGroup> </Project> ``` Source files are included by automatically so Godot no longer needs to keep the csproj in sync when creating new source files. Define constants ---------------- Godot defines a list of constants for conditional compilation. When exporting games, this list also included engine 'features' and platform 'bits'. There were a few problems with that: - The 'features' constants were only defined when exporting games. Not when building the game for running in the editor player. - If the project was built externally by an IDE, the constants wouldn't be defined at all. The new Sdk assigns default values to these constants when not built from the Godot editor, i.e.: when built from an IDE or from the command line. The default define constants are determined from the system MSBuild is running on. However, it's not possible for MSBuild to determine the set of supported engine features. It's also not possible to determine if a project is being built to run on a 32-bit or 64-bit Godot executable. As such the 'features' and 'bits' constants had to be removed. The benefit of checking those at compile time was questionable, and they can still be checked at runtime. The new list of define constants includes: - GODOT - GODOT_<PLATFORM> Defaults to the platform MSBuild is running on. - GODOT_<PC/MOBILE/WEB> - TOOLS When building with the 'Debug' configuration (editor and editor player). - GODOT_REAL_T_IS_DOUBLE Not defined by default unless $(GodotRealTIsDouble) is overriden to be 'true'. .NET Standard ------------- The target framework of game projects was changed to 'netstandard2.1'.
2020-07-22Merge pull request #40600 from akien-mga/vs-duplicate-branches-warningRémi Verschelde
VisualScript: Fix -Wduplicate-branches warning
2020-07-22Merge pull request #40599 from akien-mga/vulkan-init-structsRémi Verschelde
Vulkan: Fix struct init for VkClearAttachment
2020-07-22VisualScript: Fix -Wduplicate-branches warningRémi Verschelde
When VSDEBUG is a no-op (default), those branches did the same (nothing).
2020-07-22Vulkan: Fix struct init for VkClearAttachmentRémi Verschelde
The changes from #38835 were not sufficient to fix #38829, as VkClearAttachment still had uninitialized member structs in its VkClearColor member struct. The struct rabbit hole goes deep and trying to do validation as done in #38829 doesn't appear realistic.
2020-07-22Merge pull request #38835 from madmiraal/fix-38829Rémi Verschelde
Fix may be used unitialized warnings in _render_pass_create() and _draw_list_insert_clear_region().
2020-07-22Merge pull request #40596 from neikeq/fix-msbuild-restore-not-calledRémi Verschelde
C#: Fix restore not called when building game projects
2020-07-22C#: Fix restore not called when building game projectsIgnacio Etcheverry
2020-07-22Merge pull request #40590 from Calinou/doc-inputeventmousemotion-polling-rateRémi Verschelde
Document polling rate limitations in InputEventMouseMotion
2020-07-22Document polling rate limitations in InputEventMouseMotionHugo Locurcio
This closes #40579.
2020-07-22Merge pull request #40217 from theoway/visible_line_count_fixRémi Verschelde
Fixes the get_visible_line_count() of rich text label
2020-07-22Merge pull request #40588 from nekomatata/virtual-keyboard-disableRémi Verschelde
Add option to disable virtual keyboard for LineEdit
2020-07-22Merge pull request #40583 from aaronfranke/cs-xml-planeRémi Verschelde
Fix XML in Plane.cs
2020-07-22Add option to disable virtual keyboard for LineEditPouleyKetchoupp
Co-authored-by: Alexander Holland <alexander.holland@live.de>
2020-07-21Fix XML in Plane.csAaron Franke
2020-07-21Merge pull request #40450 from asmaloney/spellingRémi Verschelde
Fix spelling & grammar in comments, docs, and messages
2020-07-21Merge pull request #40398 from thebestnom/android_keyboard_modifiers_and_arrowsRémi Verschelde
Android: Keyboard modifier and arrow key support for text edit
2020-07-21Merge pull request #40501 from aaronfranke/core-docs-csRémi Verschelde
Update core documentation to match recent C# changes
2020-07-21Fix spelling & grammar in comments, docs, and messagesAndy Maloney
2020-07-21Android: Keyboard modifier and arrow key supportthebestnom
2020-07-21Merge pull request #32908 from Nehluxhes/node_update_twiceRémi Verschelde
Remove duplicate displayed node update call
2020-07-21Merge pull request #40448 from Paulb23/fix_txt_close_crashRémi Verschelde
Fix crash when closing a TextFile
2020-07-21Merge pull request #40457 from Calinou/doc-basebutton-pressed-toggledRémi Verschelde
Mention `toggled` signal for pressed state in BaseButton documentation
2020-07-21Update core documentation to match recent C# changesAaron Franke
Also a few minor API changes like adding AABB.abs() Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2020-07-21Merge pull request #40567 from akien-mga/travis-emscripten-latestRémi Verschelde
Travis: Back to latest emsdk, use embedded mode properly
2020-07-21Remove duplicate node update callNehluxhes
2020-07-21Travis: Back to latest emsdk, use embedded mode properlyRémi Verschelde
Reverts and supersedes #39168 and #40563.
2020-07-21Merge pull request #40512 from yrk06/ExposeInertiaTensorMasterRémi Verschelde
Add Method get_inverse_inertia_tensor
2020-07-21Add Method get_inverse_inertia_tensorYerik
2020-07-21Merge pull request #40533 from zaevi/fix_clipboard_crlfRémi Verschelde
fix crlf for clipboard
2020-07-21Merge pull request #40562 from nekomatata/osxcross-vulkan-layerRémi Verschelde
Fix Vulkan layer creation when compiling with OSXCross
2020-07-21Merge pull request #40565 from akien-mga/enetgodot-styleRémi Verschelde
ENetGodot: Apply clang-format and style guide
2020-07-21Merge pull request #40548 from nekomatata/osxcross-min-version-10.12Rémi Verschelde
Set minimum osx version to 10.12 for OSXCross compilation
2020-07-21Set minimum osx version to 10.12 for OSXCross compilationPouleyKetchoupp
Fixes this compilation error: In file included from thirdparty/vulkan/vk_mem_alloc.cpp:7: thirdparty/vulkan/vk_mem_alloc.h:3691:18: error: 'shared_mutex' is unavailable: introduced in macOS 10.12 std::shared_mutex m_Mutex; ^ /home/[user]/sources/osxcross/target/bin/../SDK/MacOSX10.14.sdk/usr/include/c++/v1/shared_mutex:178:58: note: 'shared_mutex' has been explicitly marked unavailable here class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_mutex
2020-07-21Fix MoltenVK layer creation when compiling with OSXCrossPouleyKetchoupp
2020-07-21Merge pull request #40560 from akien-mga/tileseteditor-polygon-size-crashRémi Verschelde
TileSet Editor: Check polygon size before indexing
2020-07-21ENetGodot: Apply clang-format and style guideRémi Verschelde
2020-07-21TileSet Editor: Check polygon size before indexingRémi Verschelde
Fixes #39722.
2020-07-21Merge pull request #40563 from akien-mga/travis-pin-emscripten-1.39.19Rémi Verschelde
Travis: Pin Emscripten version to 1.39.19
2020-07-21Travis: Pin Emscripten version to 1.39.19Rémi Verschelde
1.39.20 dropped support for the no-embedded mode we use since #39168, as our detection logic hasn't been fixed yet to support the embedded mode.
2020-07-20Merge pull request #40476 from Calinou/doc-visibilitynotifierRémi Verschelde
Improve the VisibilityNotifier and VisibilityEnabler class descriptions
2020-07-20Merge pull request #40463 from Calinou/doc-editorsettingsRémi Verschelde
Complete the EditorSettings class documentation
2020-07-20Merge pull request #40493 from Calinou/doc-editor-plugins-interfacesRémi Verschelde
Document several editor-related classes to 100% completion
2020-07-20Merge pull request #40477 from Calinou/doc-vector-dotRémi Verschelde
Document `Vector2.dot()` and `Vector3.dot()` more extensively
2020-07-20Merge pull request #40422 from amanj120/forward_port_bundle_pr_resourcesRémi Verschelde
Create strings.xml files in the Gradle project to handle localization
2020-07-20Merge pull request #39801 from ChristopheLY/tween-bool-stateRémi Verschelde
bug with Tween.is_active, fixes #39760
2020-07-20Merge pull request #38763 from fire/38751Rémi Verschelde
Allow gltf2 morph targets including animations with no default value…
2020-07-20bug with Tween.is_active, fixes #39760Chistpohe LY
2020-07-20Merge pull request #40491 from RandomShaper/font_avail_charsRémi Verschelde
Add DynamicFont::get_available_chars()
2020-07-20Add DynamicFont::get_available_chars()Pedro J. Estébanez