Fabio Alessandrelli
25d56e9666
RasterizerDummy fixes.
2020-11-10 11:42:51 +01:00
Tomasz Chabora
cbfbb4538b
Register methods for drawing 3D editor overlays
2020-11-10 11:35:34 +01:00
Rémi Verschelde
68067b8d97
Merge pull request #43423 from Calinou/doc-assert-avoid-side-effects
...
Clarify that code in `assert()` should avoid side effects
2020-11-10 11:31:28 +01:00
Adrian Adeva
74f98de223
Updated gd_glue.cpp to work with the latest changes in the variant refactoring
...
Without this change the engine dont compile with the mono module enabled.
2020-11-10 11:13:54 +01:00
Rémi Verschelde
32464e569f
Merge pull request #40748 from RandomShaper/improve_packed_fs_api
...
Improve/fix packed data API
2020-11-10 10:59:34 +01:00
Rémi Verschelde
cb5d5ff413
Merge pull request #43433 from HaSa1002/docs-examples-43356
...
[Docs] Add C# example for EditorPlugin::forward_canvas_draw_over_viewport
2020-11-10 10:43:37 +01:00
HaSa1002
9dad1c4943
[Docs] Add C# example for EditorPlugin::forward_canvas_draw_over_viewport
...
Follow up to #43356
2020-11-10 10:24:17 +01:00
Rémi Verschelde
e1a9ec4e19
Merge pull request #43397 from Calinou/fix-filesystem-copy-path-shortcut-conflict
...
Use Ctrl+Shift+C as the default FileSystem dock Copy Path shortcut
2020-11-10 09:53:48 +01:00
Rémi Verschelde
b51dca64a6
Merge pull request #43383 from vnen/gdnative-string-header
...
GDNative: Define special char types in string.h
2020-11-10 09:40:26 +01:00
Rémi Verschelde
5d89b1ad43
Merge pull request #43369 from Calinou/allow-svg-project-icon
...
Allow using SVG images as project icon
2020-11-10 09:37:18 +01:00
Rémi Verschelde
e0285dcc00
Merge pull request #43356 from KoBeWi/editor_art
...
Add docs for editor viewport drawing methods
2020-11-10 09:34:32 +01:00
Rémi Verschelde
dd851d8f91
Merge pull request #43333 from YeldhamDev/global_rate_scale_min
...
Disallow setting the AudioServer's 'global_rate_scale' to a value equal or inferior to 0
2020-11-10 09:32:56 +01:00
Rémi Verschelde
8e056ba203
Merge pull request #43417 from akien-mga/variant-default-constructors-docs
...
Variant: Sync docs with new constructors, fixes to #43403
2020-11-10 08:28:08 +01:00
Aaron Franke
46fdca4fae
Allow creating projects in non-empty folders with a confirmation popup
2020-11-10 00:12:07 -05:00
Rémi Verschelde
0f249f5c0a
Variant: Sync docs with new constructors, fixups after #43403
...
Change DocData comparators for MethodDoc and ArgumentDoc to get a better
ordering of constructors.
2020-11-09 23:39:53 +01:00
Hugo Locurcio
d6c7073bd7
Clarify that code in `assert()` should avoid side effects
2020-11-09 21:48:24 +01:00
Rémi Verschelde
efc4d217d6
Merge pull request #43421 from reduz/improve-variant-constructor
...
Change how no-arg constructor is handled internally in Variant.
2020-11-09 21:17:15 +01:00
reduz
9979abce74
Change how no-arg constructor is handled internally in Variant.
2020-11-09 16:28:15 -03:00
Rémi Verschelde
b4a0661885
Merge pull request #43419 from reduz/document-operators
...
Make sure operators appear in the docs too
2020-11-09 19:54:34 +01:00
Rémi Verschelde
aa6a1094a5
Merge pull request #43415 from bruvzg/var_ctr_af32
...
Fix duplicate variant constructor typo.
2020-11-09 19:21:20 +01:00
reduz
11bf2ec6d1
Make sure operators appear in the docs too
...
Add "operator" and "constructor" qualifiers to make it easier to
see in the docs.
2020-11-09 14:12:01 -03:00
Rémi Verschelde
ed62876683
Merge pull request #40106 from Calinou/improve-3d-selection-box
...
Improve the 3D editor selection box appearance
2020-11-09 17:46:43 +01:00
Rémi Verschelde
827e5b8bf3
Merge pull request #43412 from akien-mga/variant-rename-_RID-to-RID
...
Variant: Rename Type::_RID to Type::RID
2020-11-09 17:46:34 +01:00
bruvzg
a4a21654b1
Fix duplicate variant constructor typo.
2020-11-09 18:34:17 +02:00
Rémi Verschelde
fdf84d25f3
Merge pull request #41407 from Calinou/scons-debug-symbols-replace-yes-with-full
...
Remove `debug_symbols=full` in favor of `debug_symbols=yes`
2020-11-09 16:46:32 +01:00
Rémi Verschelde
9d2e8f2f27
Variant: Rename Type::_RID to Type::RID
...
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`.
2020-11-09 16:29:04 +01:00
Rémi Verschelde
bd0c40d051
Merge pull request #43413 from akien-mga/ci-warnings-extra
...
CI: Build with warnings=extra to catch 'em all
2020-11-09 16:28:19 +01:00
Hugo Locurcio
8a3a4fa3a0
Improve the 3D editor selection box appearance
...
- Draw two boxes slightly offset from each other to give the illustion
of a thicker outline.
- Decrease the offset compared to the 3D node's AABB to give a more
accurate representation of its size.
- Make the box fully visible instead of only displaying the corners.
- Draw a x-ray version of the box that's more translucent, but visible
through walls. This helps make the box more visible while still
having a sense of depth.
- Use an orange color similar to the 2D editor.
2020-11-09 16:24:12 +01:00
Hugo Locurcio
ff1f0d2cb5
Remove `debug_symbols=full` in favor of `debug_symbols=yes`
...
`debug_symbols=yes` will now behave like `debug_symbols=full` did
before. The difference in compressed file sizes is not that large,
which means there isn't much point in having two different values.
This helps make the buildsystem easier to understand.
2020-11-09 15:48:30 +01:00
Rémi Verschelde
5af5c86ebc
CI: Build with warnings=extra to catch 'em all
...
... on all platforms but MSVC, as it still has a number of unsolved warnings
in its `/Wall` level. Some of it might be valid, others might be overkill,
this needs further assessment and fixes. (We could also change the `extra`
level to `/W4` on MSVC if that's more meaningful.)
2020-11-09 15:01:43 +01:00
Rémi Verschelde
8a318fe1dd
Merge pull request #43404 from akien-mga/color-fix-clamp-uint32_t-warning
...
Color: Fix -Wtype-limits GCC warning after refactoring
2020-11-09 14:59:11 +01:00
Rémi Verschelde
01154f1ad2
Merge pull request #43403 from reduz/variant-constructor-refactor
...
Refactored variant constructor logic
2020-11-09 14:34:49 +01:00
Rémi Verschelde
eda8f69c19
Merge pull request #43409 from bruvzg/sync_open_simplex_noise
...
Update "open-simplex-noise-in-c" to fix undefined signed overflow
2020-11-09 14:29:08 +01:00
Rémi Verschelde
771b3c583d
Color: Fix -Wtype-limits GCC warning after refactoring
...
Warning from GCC 10.2.0 with `warnings=extra`:
```
./core/math/color.h: In member function 'int32_t Color::get_r8() const':
./core/typedefs.h:107:42: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
107 | #define CLAMP(m_a, m_min, m_max) (((m_a) < (m_min)) ? (m_min) : (((m_a) > (m_max)) ? m_max : m_a))
| ~~~~~~^~~~~~~~~
./core/math/color.h:201:49: note: in expansion of macro 'CLAMP'
201 | _FORCE_INLINE_ int32_t get_r8() const { return CLAMP(uint32_t(r * 255.0), 0, 255); }
| ^~~~~
```
Also some code consistency changes while at it.
2020-11-09 14:11:21 +01:00
bruvzg
70bdf0ecf2
Update "open-simplex-noise-in-c" to fix undefined signed overflow.
2020-11-09 14:31:12 +02:00
reduz
221a2a1742
Refactored variant constructor logic
2020-11-09 08:54:43 -03:00
HaSa1002
a3df26e554
Docs: Port Code Examples to C# (M, N, O, P, R)
...
Includes:
* MarginContainer
* NavigationPolygon
* Node
* NodePath
* OS
* PackedByteArray
* PackedScene
* PacketPeerUDP
* PCKPacker
* Performance
* PhysicsShapeQueryParameters2D
* PhysicsShapeQueryParameters3D
* PrimitiveMesh
* ProjectSettings
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2020-11-09 10:05:53 +01:00
Aaron Franke
6b54d7dde1
Add HexEncode to C#
2020-11-09 03:25:51 -05:00
Aaron Franke
c89af1d433
Add LStrip and RStrip to C# strings
2020-11-09 03:24:46 -05:00
Rémi Verschelde
593e35346a
Merge pull request #42841 from HaSa1002/docs-lang-3
...
Port code examples to C# (D and E)
2020-11-09 08:29:44 +01:00
Tomasz Chabora
9f23a94b8a
Add append_array() method to Array class
2020-11-08 21:09:45 +01:00
Hugo Locurcio
5b40f9fddc
Use Ctrl+Shift+C as the default FileSystem dock Copy Path shortcut
...
This closes #43396 .
2020-11-08 19:44:52 +01:00
Rémi Verschelde
4206dc6ac9
Merge pull request #43380 from YeldhamDev/light2d_icons
...
Add icons for the new Light2D nodes
2020-11-08 14:58:47 +01:00
Rémi Verschelde
90edd839d5
Merge pull request #43385 from reduz/reorganize-core
...
Reorganize and clean up core/ directory
2020-11-08 10:41:17 +01:00
Eric M
c482e8ec85
Added hysteresis for popup sub-menus
...
This adds a small lag effect when opening submenus which allow the user to move directly to an item on the submenu without worrying about avoiding the autohide regions.
2020-11-08 13:28:23 +10:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
Juan Linietsky
30b6db99a9
Merge pull request #43371 from reduz/variant-setget-refactor
...
Refactored Variant setters/getters
2020-11-07 16:34:54 -03:00
George Marques
82576371ef
GDNative: Define special char types in string.h
...
Those are standard types in C++ but not in C.
This also removes the wchar header which is not needed anymore and use
stddef.h instead (which is needed for size_t).
2020-11-07 16:09:14 -03:00
reduz
05de7ce6ca
Refactored variant setters/getters
...
-Discern between named, indexed and keyed
-Get direct access to functions for typed GDScript and GDNative bindings
-Small changes to some classes in order to work with the new setget binder
2020-11-07 15:16:15 -03:00
Michael Alexsander
a38b4fd8f2
Add icons for the new Light2D nodes
2020-11-07 13:55:09 -03:00