Commit graph

1064 commits

Author SHA1 Message Date
Hein-Pieter van Braam cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Juan Linietsky 36e0a72c77 -Code completion for enumerations
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-24 00:06:56 -03:00
Rémi Verschelde 916fd47343 Merge pull request #10561 from Paulb23/smooth_scroll_input_override
Stops scrolling when the user issues another command
2017-08-23 08:09:13 +02:00
Rémi Verschelde bc3c9a3c2a Merge pull request #10555 from Rubonnek/removed-unnecessary-returns-and-breaks
Removed unnecessary returns and break statements

[ci skip]
2017-08-23 00:06:29 +02:00
Paulb23 24c6c097f3 Stops scrolling when the user issues another command 2017-08-22 20:04:19 +01:00
Andreas Haas 5d25f6397f
TextEdit: Copy whole line if not having selection.
The functionality was already there but hidden behind a bogus return statement.
Fixes #10485
2017-08-22 20:05:52 +02:00
Wilson E. Alvarez baa94a3758 Removed unnecessary returns and break statements 2017-08-22 13:01:57 -04:00
Evgeny Zuev 1a2622d344 Add stretching to TextureProgress
Now `TextureProgress` has `nine_patch_stretch` flag. With this flag enabled,
it's being rendered as 9-path using `stretch_margin_*` properties as texture margins.

Stretching doesn't support `FILL_CLOCKWISE` and `FILL_COUNTER_CLOCKWISE` fill modes.
2017-08-22 13:46:59 +07:00
Rémi Verschelde df590fc2d3 Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Juan Linietsky 2cc8309249 Merge pull request #10351 from neikeq/enums-are-for-the-weak
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Rémi Verschelde 9dd8d73482 Merge pull request #10427 from Hinsbart/fix_padding
TextEdit: Fix line padding triggering too early.
2017-08-22 00:04:11 +02:00
Rémi Verschelde 328452e028 Merge pull request #10508 from Paulb23/increase_smooth_scroll_speed
Increased smooth scroll speed and added user setting
2017-08-21 22:19:18 +02:00
Gilles Roudiere f730846fe9 Fix spinboxes bad look 2017-08-21 21:48:05 +02:00
Wilson E. Alvarez 738d2ab969 Removed unnecessary assignments 2017-08-21 15:15:55 -04:00
Paulb23 d6599fde0a Increased smooth scroll speed and added user setting 2017-08-21 19:20:11 +01:00
Ignacio Etcheverry 32dd9a9f66 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
Juan Linietsky 541fdffc0a Merge pull request #10319 from neikeq/pr-engine-editor-hint
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Rémi Verschelde 9720e94dce Merge pull request #10479 from Paulb23/fix_not_scrolling_eof
Fixed not being able to scroll to eof
2017-08-20 15:25:46 +02:00
Rémi Verschelde 5627047c32 Merge pull request #10455 from groud/control_margin_fixes
Some control fixes and removed other useless lines
2017-08-20 15:24:00 +02:00
Paulb23 a0457341fc Fixed not being able to scroll to eof 2017-08-20 14:07:54 +01:00
Gilles Roudiere 06256cd778 Some control fixes and removed useless lines 2017-08-19 19:10:00 +02:00
Paulb23 a142c9a2f0 Added smooth scrolling to TextEdit 2017-08-19 15:23:45 +01:00
Juan Linietsky bacfe7a557 Fixes to label and code editor to make editing code hopefully fast again. 2017-08-19 10:51:56 -03:00
Rémi Verschelde 43d91faa2e Merge pull request #10439 from Paulb23/blinking_text_issue_10432
Fixed blinking text, issue 10432
2017-08-19 12:32:13 +02:00
Paulb23 fb0e7f8f1c Fixed blinking text, issue 10432 2017-08-19 09:55:42 +01:00
Ignacio Etcheverry 90b8a5b71e Removes editor_hint from SceneTree 2017-08-19 01:29:45 +02:00
Juan Linietsky cbcf40bd31 -Volume sliders, mute, solo and fx bypass are functional, closes #9021
-Fixed tree reselect, makes reselecting an audio bux FX work
2017-08-18 18:21:53 -03:00
Rémi Verschelde 18a7315381 Rename localization method to tr again
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
2017-08-18 22:38:38 +02:00
Andreas Haas 58b2f441a7
TextEdit: Fix line padding.
off-by-one error in the line count calculation.

Fixes #10411
2017-08-18 22:12:07 +02:00
Andreas Haas 3f2d806b02
TextEdit: Moving between words now works across lines.
Fixes #10403
2017-08-18 20:53:27 +02:00
Rémi Verschelde ee59e627de Merge pull request #10380 from akien-mga/XL_MESSAGE
Rename `XL_MESSAGE`/`tr` to `localize`
2017-08-17 22:41:55 +02:00
Rémi Verschelde c72529baf0 Rename XL_MESSAGE aka tr to localize
Also renames `set_message_translation` to `set_message_localization`
for consistency.
2017-08-17 18:10:22 +02:00
Rémi Verschelde 0dd51fc722 Merge pull request #10252 from neikeq/pr-fix-some-stuff-<3
Some method fixes
2017-08-16 18:16:47 +02:00
Rémi Verschelde a8a6082dc0 Merge pull request #8899 from toger5/BetterFlatStylebox
Better flat stylebox with rounded corners
2017-08-16 18:15:04 +02:00
TwistedTwigleg 00f6c85928 Synchronize parameter names in definition and declaration
Fixes #10244.
2017-08-16 17:22:23 +02:00
Rémi Verschelde f98418f093 Merge pull request #10312 from kbake/pressed-scroll-bar-style
Scroll bars now look different on press
2017-08-16 17:16:03 +02:00
Juan Linietsky 1ecb48b8c2 Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889 2017-08-15 19:49:28 -03:00
toger5 059a0496da Adapted godot to the new StyleBoxFlat 2017-08-15 19:36:34 +02:00
Gilles Roudiere 0041e08f74 Avoids inverted anchors
Add a push_opposite_anchor argument pushing the opposite anchor if
needed
2017-08-13 21:20:14 +02:00
Gilles Roudiere c26af6f2b7 Adds a function to set Anchors with a layout preset 2017-08-13 21:20:14 +02:00
Gilles Roudiere e76b535a1a Handle undo/redo of anchor positioning 2017-08-13 21:20:13 +02:00
Gilles Roudiere bd0384a9e9 Add anchor visualization 2017-08-13 21:20:13 +02:00
Gilles Roudiere 0d35d4d53b Replace GUI anchor type by a float between 0 and 1 2017-08-13 21:20:13 +02:00
kbake a72d17cf11 Scroll bars now look different on press 2017-08-12 17:46:26 -04:00
Ignacio Etcheverry 1a04917fea Fixes ItemList::is_same_column_width() return type 2017-08-11 13:34:06 +02:00
Rémi Verschelde ff2cb35b90 Merge pull request #10247 from djrm/pr_bus_fixes
Fixes to buses editor
2017-08-11 10:43:30 +02:00
Rémi Verschelde 066fb4d5f9 Merge pull request #10238 from Hinsbart/resource_rmb
Inspector: Right click on resource opens sub-menu.
2017-08-11 10:42:29 +02:00
Rémi Verschelde f67a8d715c Merge pull request #10193 from kubecz3k/tab-click-signal
tab_clicked signal for Tabs
2017-08-11 10:39:04 +02:00
Rémi Verschelde 5cb09d31d8 Merge pull request #10142 from bruvzg/3.0-osx-ime
Add IME support (macOS)
2017-08-11 10:35:10 +02:00
Daniel J. Ramirez 9b41333340 Fixes to buses editor
Fixed unselectable bus
Added bus options button
2017-08-10 18:07:24 -05:00