Commit graph

2542 commits

Author SHA1 Message Date
Juan Linietsky bf371dcb32 Added proximity and distance fade to SpatialMaterial 2017-09-21 15:20:28 -03:00
Rémi Verschelde a1779c9044 Merge pull request #11013 from MednauN/master
Fix duplication of node with script
2017-09-21 10:53:58 +02:00
Rémi Verschelde 82f13288dd Merge pull request #11453 from djrm/pr_visuals
Visual tweaks.
2017-09-21 10:51:06 +02:00
Rémi Verschelde 2d05e102b7 Merge pull request #11447 from akien-mga/queue_delete
Let queue_free() work on nodes which are not in the scene tree
2017-09-21 10:42:02 +02:00
Rémi Verschelde d79ce05b91 Merge pull request #11365 from leezh/freetype_mono
Added support for FT_PIXEL_MODE_MONO in FreeType
2017-09-21 10:37:21 +02:00
Daniel J. Ramirez 00755ff2c0 Visual tweaks.
Updated icons
Updated some color
2017-09-20 19:29:52 -05:00
Rémi Verschelde 4820dfc570 Let queue_free() work on nodes which are not in the scene tree
In practice such nodes could directly be free()'ed, but this little change
prevents users from leaking memory by mistake.
Closes #9074.
2017-09-20 21:49:56 +02:00
letheed 5ad9be4c24 Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Evgeny Zuev 521280ec44 Fix duplication of node with script
When duplicating node with script, properties of script
weren't copied sometimes.
It happened because properties were copied in arbitrary
order, and properties of the script were setted before the
"script" property itself, i.e. while script is sill NULL.

Also, DUPLICATE_SCRIPTS flag wasn't working - script was
always copied because `_duplicate` looked for
"script/script" property while it should be just "script".

Now "script" property is being set before all others,
and "script/script" changed to
`CoreStringNames::get_singleton()->_script`.
2017-09-20 10:56:31 +07:00
Rémi Verschelde 752a116847 Merge pull request #11256 from djrm/pr_visual_improvements
Visual improvements and new look for VS
2017-09-19 23:44:09 +02:00
Rémi Verschelde 2785444f89 Merge pull request #10437 from groud/2d_editor_enhancements
Some 2d editor enhancements
2017-09-19 23:24:17 +02:00
Zher Huei Lee 2ca82225b7 Added support for FT_PIXEL_MODE_MONO in FreeType 2017-09-19 14:00:00 +08:00
Gilles Roudiere b5f29fe073 Add some options and reorganize the 2D editor menus. Makes available forced snapping. 2017-09-18 23:20:18 +02:00
Rémi Verschelde 30ba4076cd Merge pull request #11372 from volzhs/fix-smooth-scroll
Fix smooth scrolling in ScrollBar
2017-09-18 20:04:39 +02:00
Rémi Verschelde cc161dcd6f Merge pull request #11021 from tuga3d/autocomplete-logic-attempt2
autocomplete logic attempt 2, fixes #10695
2017-09-18 08:58:18 +02:00
Rémi Verschelde a00f19a921 Merge pull request #11328 from Paulb23/left_right_arrow_tree_issue_10737
Added Left / Right arrow navigation in tree, issue 10737
2017-09-17 22:45:19 +02:00
volzhs 7da0ec01c0 Fix smooth scrolling in ScrollBar
fixes #11369
2017-09-18 05:31:21 +09:00
Marcelo Fernandez 31ba932e3b Fix crash when using key+u on a line with only a # 2017-09-17 17:07:42 -03:00
Rémi Verschelde 0953c8fd55 Merge pull request #11314 from marcelofg55/master
Fix possible crash with ctrl-u on script editor
2017-09-17 12:56:13 +02:00
Rémi Verschelde 317512e2fb Merge pull request #11301 from volzhs/fix-richtextlabel
Make clickable properly in editor help
2017-09-17 12:55:47 +02:00
Rémi Verschelde c74bab66aa Merge pull request #11274 from Rubonnek/keep-argument-names-consistent
Renamed function arguments to keep them consistent between declaration and implementation
2017-09-17 12:53:48 +02:00
Rémi Verschelde c24ca2c7a8 Merge pull request #10900 from toger5/theme_tab_border
Added border for tabs + container.
2017-09-17 12:41:36 +02:00
Daniel J. Ramirez d84c79d349 Fixed compilation with tools=no 2017-09-16 23:33:44 -05:00
Poommetee Ketson d8ca7d4405 Merge pull request #11282 from djrm/pr_script_editor_auto_theme
Added adaptive text editor theme
2017-09-17 08:55:13 +07:00
Poommetee Ketson 69f0d3b663 Merge pull request #11269 from toger5/fix_get_stylebox_parent_class
also loop for classes if there is no coustom theme fixes #11250
2017-09-17 08:52:26 +07:00
Paulb23 1a0ffe3b64 Added Left / Right arrow navigation in tree, issue 10737 2017-09-16 16:26:05 +00:00
Marcelo Fernandez a2837360d0 Fix possible crash with ctrl-u on script editor 2017-09-16 04:20:20 -03:00
Daniel J. Ramirez ba11dc3f48 Added adaptive text editor theme, this includes the shader editor 2017-09-15 16:08:22 -05:00
volzhs 8d1792a294 Make clickable properly in editor help
fixes #3671
2017-09-16 02:14:45 +09:00
Andreas Haas 6b729726e0 Merge pull request #11280 from BastiaanOlij/fix_arvr_joyid
joyid is set to -1, not 0 when no joystick entity has been created
2017-09-15 10:33:48 +02:00
Thomas Herzog 7dffed485b Merge pull request #11230 from maxim-sheronov/fix_enum_bindings
Fix enums bindings
2017-09-15 08:43:35 +02:00
BastiaanOlij c46b8f444a joyid is set to -1, not 0 when no joystick entity has been created 2017-09-15 09:53:59 +10:00
toger5 10c400c456 Added border for tabs + container.
- moved tabConetent position to be more reasonable.
 - fixed drawing order to allow those kind of styles.
2017-09-15 00:50:34 +02:00
Wilson E. Alvarez 072e379ffe Renamed function arguments to keep them consistent between declaration and implementation 2017-09-14 13:49:15 -04:00
Daniel J. Ramirez 74d028729f Improved VisualScriptEditor 2017-09-14 12:45:42 -05:00
toger5 202e4c8836 also loop for classes if there is no coustom theme fixes #11250 2017-09-14 18:15:39 +02:00
Rémi Verschelde 57a5548965 Merge pull request #11191 from toger5/slider_highlight_area
added highlight area to slider
2017-09-13 20:09:28 +02:00
Maxim Sheronov 0fffa45158 Fix enums bindings
Add missed bindings for enums
Move some enums to class to have correct output of api.json
2017-09-13 20:57:07 +03:00
Rémi Verschelde ea25573297 Merge pull request #10995 from GodotExplorer/pr-tree
Add custom minumus height to TreeItem
2017-09-13 19:25:55 +02:00
Rémi Verschelde 27ae3c839d Merge pull request #7908 from SaracenOne/recast
In-editor navmesh generation.
2017-09-13 19:22:29 +02:00
Hein-Pieter van Braam 89c50f73c7 Fix out of bound array indexing (reverb_vol)
Same issue as in a3f9fe52. AudioFrame[3] being indexed at [3]
2017-09-13 17:47:51 +02:00
Hein-Pieter van Braam a3f9fe52ec Fix out of bound array indexing
730d36f350 introduced introduced some code that indexes AudioFrame[3],
it is however defined as AudioFrame[3]. This increases the size to [4]
2017-09-13 17:38:09 +02:00
Rémi Verschelde c2741e2385 Merge pull request #11069 from aroncds/master
KinematicBody2D api most friendlier
2017-09-13 15:07:17 +02:00
Juan Linietsky 06138bf18c Renamed play to playing property, but now playing and is_playing is the same, to avoid confusing. Closes #11211 2017-09-13 08:41:26 -03:00
toger5 c2c8aac9a3 added highlight area to slider 2017-09-12 22:55:23 +02:00
Hein-Pieter van Braam 7f40734a1c Merge pull request #10568 from marcelofg55/surround_fixes
Fixed issues with surround sound on audio server
2017-09-12 20:59:35 +02:00
Daniel J. Ramirez 1e8048dd45 Improved theme generation, and other fixes 2017-09-12 13:16:38 -05:00
Marcelo Fernandez 730d36f350 Fixed issues with surround sound on audio server 2017-09-12 15:13:28 -03:00
Rémi Verschelde 6aa90e35bb Merge pull request #11015 from toger5/rtl_default_stylebox_empty
rtl uses styleBoxEmpty as defualt fixes: #11014
2017-09-12 13:26:18 +02:00
Rémi Verschelde 50eb62ea6e Merge pull request #11002 from NathanWarden/vehicle_wheel_warning
Added a warning message when a VehicleWheel is not a child of a VehicleBody.
2017-09-12 13:11:48 +02:00
Juan Linietsky 1c5376ae59 Many fixes to visual script, changed virtuals override for a proper selector. 2017-09-12 07:58:54 -03:00
Rémi Verschelde aabbd00284 Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
2017-09-12 12:55:53 +02:00
Rémi Verschelde 0f006994d8 Merge pull request #11007 from saltares/issue-9988
Renames _add_child_below_node() to add_child_below_node(). Fixes #9988.
2017-09-12 12:04:03 +02:00
Rémi Verschelde cf941fdc35 Merge pull request #11026 from hpvb/fix-assign-in-if
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Rémi Verschelde 2b50dc5d4f Merge pull request #11057 from hpvb/fix-various-warnings
Fix various assorted warnings
2017-09-12 11:39:47 +02:00
Rémi Verschelde 3941e01a57 Merge pull request #11041 from hpvb/fix-clang-format-error
Fix serveral recent new clang-format errors

[ci skip]
2017-09-12 11:16:36 +02:00
Poommetee Ketson fb9f41a071 Merge pull request #11135 from willnationsdev/area2d-docs
Area2D Documentation + constants in _bind_methods
2017-09-12 13:16:27 +07:00
Will Nations d441cc9660 Updated Area2D docs and added enum constants to scripting 2017-09-11 22:39:28 -05:00
Poommetee Ketson 88fd69c9bb Merge pull request #11142 from BastiaanOlij/arvr_signal_id
Added ID to tracker signals and property for storing hand
2017-09-12 05:10:35 +07:00
Poommetee Ketson 27a848e408 Merge pull request #11152 from SaracenOne/mesh_arrays_access
Script access to formatted arrays and blend_arrays in meshes.
2017-09-12 04:42:18 +07:00
Poommetee Ketson 5edb3b6ee4 Merge pull request #11167 from bojidar-bg/9547-fix-metadata-duplication
Fix duplication of nodes resulting in shared metadata
2017-09-12 04:19:26 +07:00
Poommetee Ketson 1c063abf0d Material: fix priority not int 2017-09-11 18:13:28 +07:00
Bojidar Marinov ebee9898ca
Fix duplication of nodes resulting in shared metadata
Fixes #9547
2017-09-11 12:34:36 +03:00
SaracenOne 92bbd2d713 Script access to formatted arrays and blend_arrays in meshes. 2017-09-11 06:53:34 +01:00
Aron de Castro 6e0892f223 Added to kinematicbody2d the copy and paste of the API friendler of KinematicBody 2017-09-10 13:07:47 -03:00
Bastiaan Olij de309c426d Added ID to tracker signals and property for storing hand 2017-09-10 16:25:12 +10:00
Hein-Pieter van Braam b2a38854fd Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Hein-Pieter van Braam 8230bf0a2f Remove assignment and declarations in if statements
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam 67a706fc1b Fix various assorted warnings
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Juan Linietsky 5ca3af3371 Ability to use a sky for reflection together with a background color. 2017-09-07 20:45:37 -03:00
Hein-Pieter van Braam 5e18967d77 Fix serveral recent new clang-format errors 2017-09-08 00:20:16 +02:00
Juan Linietsky eedb39091a Several fixes to directional shadows, closes #10926
Added option to change directional light range mode, between optimized and stable. For Orthogonal, you might need to use optimized.
2017-09-07 18:00:47 -03:00
Juan Linietsky 1eeda0f32f Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true. 2017-09-07 11:22:07 -03:00
Juan Linietsky 98af411a37 Renamed playing property of audiostreams to play, to make it clearer. Fixes #10730
Also disabled the auto shut down of the property when stream ends, to make it easier to animate
2017-09-06 22:03:04 -03:00
Juan Linietsky 36e91b07d8 Check whether stuff is visible before baking it, closes #10525 2017-09-06 18:24:29 -03:00
Paulo Gomes 9b72f08042 second take at autocomplete logic, using a TextOperation check. 2017-09-06 19:23:09 +01:00
toger5 1c07d0e9aa rtl uses styleBoxEmpty as defualt 2017-09-06 16:29:22 +02:00
Rémi Verschelde 0b8fa1e010 Remove dead ButtonGroup code 2017-09-06 14:41:34 +02:00
Juan Linietsky 308a6f4f99 hide next pass for material types that make it pointless, closes #10686 2017-09-05 20:40:50 -03:00
David Saltares 0549484c77 Renames _add_child_below_node() to add_child_below_node(). Closes #9988. 2017-09-05 22:43:28 +01:00
Nathan Warden 8370f22b4c Added a warning message when a VehicleWheel is not a child of a VehicleBody. 2017-09-05 12:32:48 -05:00
Geequlim f248f06d45 Add custom minumus height to TreeItem
And expose the method `get_drop_section_at_pos` of Tree
2017-09-05 21:02:13 +08:00
Juan Linietsky 2802dced84 Automatically redraw when shaders using TIME are visible, fixes #10554 2017-09-05 00:30:39 -03:00
Rémi Verschelde 45800413d8 Merge pull request #10978 from Noshyaar/pr-meshlib
MeshLibrary: remove duplicated line

[ci skip]
2017-09-05 00:33:00 +02:00
Rémi Verschelde 0f63b68336 Merge pull request #10822 from hoelzl/toggle-button
Fix inconsistent toggle button behavior
2017-09-05 00:14:05 +02:00
Rémi Verschelde c9593a285b Merge pull request #10902 from toger5/rtl_copy_and_selection_color
fixed copy on osx + help selection color
2017-09-04 23:11:12 +02:00
Poommetee Ketson 9301ab5a57 MeshLibrary: remove duplicated line 2017-09-05 04:02:24 +07:00
Rémi Verschelde 6960f8a3b8 Merge pull request #10916 from volzhs/vertical-align-tree-lineedit
LineEdit in Tree is aligned vertical center
2017-09-04 22:58:32 +02:00
Rémi Verschelde bba365fab7 Merge pull request #10931 from djrm/pr_style_fixes
Improved color temperature in script editor
2017-09-04 22:50:54 +02:00
Saracen 92e77d5ff2 Recast integration. 2017-09-04 21:41:57 +01:00
toger5 07d5911c40 fixed copy on osx + help selection color 2017-09-04 18:57:52 +02:00
Juan Linietsky 6d233c651b -Changed KinematicBody API yet again to make it friendlier
-Fixed get_scale functions (and added set_scale) to make it more coherent when decomposing and composing (fixes bugs in transform interpolation)
2017-09-04 07:49:42 -03:00
Rémi Verschelde df11de72c9 Merge pull request #10932 from djrm/pr_fix_metrics
Fixed some metrics (some issues caused by the new Noto Sans font).
2017-09-04 08:10:04 +02:00
Rémi Verschelde fb263b73aa Merge pull request #10901 from toger5/script_background_cleanup
StyleBoxSupport for RichTextLabel and cleanup for script+docs backgrounds fixes #10685
2017-09-04 08:05:17 +02:00
Rémi Verschelde fe3b8b48dd Merge pull request #10894 from Paulb23/brace_auto_indent
Added support for brace auto indent and fixed indent above.
2017-09-04 07:59:51 +02:00
Rémi Verschelde 7040a390ad Merge pull request #10937 from djrm/pr_fix_typo
Fix. resizeable -> resizable.
2017-09-04 07:37:59 +02:00
Daniel J. Ramirez d6b664f671 Fix. resizeable -> resizable.
(not actually a typo, but the rest of the API uses resizable)
2017-09-03 13:12:52 -05:00
Juan Linietsky adde89e8b1 -Added an optimization so physics shapes are configured later, speeds up grid map loading and editing 2017-09-03 14:54:15 -03:00
Juan Linietsky 281fb4e4fb Added transmission shader parameter. 2017-09-03 10:30:37 -03:00
Daniel J. Ramirez 215b110cd3 Improved color temperature in script editor 2017-09-03 02:44:59 -05:00