summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
2020-07-01Merge pull request #32516 from nekomatata/texture-button-flipRémi Verschelde
Added flip_h and flip_v properties in TextureButton
2020-07-01Environment: Refactor code for readability + moreRémi Verschelde
- Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
2020-07-01Added flip_h and flip_v properties in TextureButtonPouleyKetchoupp
2020-07-01Merge pull request #40003 from YeldhamDev/tree_scroll_fixRémi Verschelde
Fix Tree's 'scroll_to_item()' not working correctly on some cases
2020-06-30Fix Tree's 'scroll_to_item()' not working correctly on some casesMichael Alexsander
2020-06-30Make dialogs exclusive by default, fixes #37732Juan Linietsky
Also fix on set_visible, not creating exclusive children as it should.
2020-06-30Add a separate application focus/in notification out from Window focus ↵Juan Linietsky
notification.
2020-06-29VideoPlayer: fix possible race conditionMark Kuo
In set_stream() we write to 'playback' while accessing the same object in _mix_audio() in audio thread. Protect the 'write' part in set_stream() to avoid possible crash in _mix_audio() function.
2020-06-24Handle gone TabContainer popup nicelyPedro J. Estébanez
2020-06-20No longer scroll vertically when scrollbars are unavailableStijn Hinlopen
2020-06-19Remove ToolButton in favor of ButtonHugo Locurcio
ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
2020-06-19Merge pull request #39659 from asmaloney/macos-command-backspaceRémi Verschelde
[macOS] Command-backspace in line edit
2020-06-19Merge pull request #33235 from nekomatata/rich-text-label-fit-heightRémi Verschelde
Option in RichTextLabel for height to fit content
2020-06-18[macOS] Command-backspace in line editAndy Maloney
Make command-backspace in line edit work like other macOS applications. If there is a selection, command-backspace deletes the selection. If there isn't a selection, command-backspace deletes from the cursor to the beginning of the line edit. This addresses part of godotengine/godot#23548
2020-06-15Merge pull request #39485 from theoway/append_bbcode_animation_bugRémi Verschelde
Fixes the stopping of animation effects in bbcode text after appending
2020-06-15Merge pull request #39522 from noidexe/fix-tabcontainer-tabselected-misfireRémi Verschelde
Fix TabContainer emitting spurious tab_selected signals when a theme …
2020-06-14Re-enable scroll follow on RichTextLabel clearTomasz Chabora
2020-06-13Fix TabContainer emitting spurious tab_selected signals when a theme is changedLisandro Lorea
- The repaint code was moved outside of set_current_tab() and to a "_repaint()" private function - _on_theme_changed() will now only call _repaint() and update() This means _on_theme_changed() will do only what it needs (repainting the TabContainer to account for the new theme) fixes #39498
2020-06-13Fixes the stopping of animation effects in bbcode after appendingUmang Kalra
2020-06-11Merge pull request #39337 from Cevantime/add-text-deletion-methods-to-line-editRémi Verschelde
Make text deletion methods public for LineEdit
2020-06-10Make text deletion methods public for LineEditThibault Truffert
2020-06-10Merge pull request #39350 from giulianob/improve-tree-redrawRémi Verschelde
Tree: Calling update in _gui_input less frequently
2020-06-08Add generic file icon and its modulation to the 'FileDialog'Michael Alexsander
2020-06-06Tree: Calling update in _gui_input less frequentlyGiuliano Barberi
2020-06-03Merge pull request #39164 from theoway/richlabeltext_align_bugRémi Verschelde
Fixes the right and center alignment bug of rich text label
2020-06-03Allow scroll_to_line when scroll_active is 'false'Dominik 'dreamsComeTrue' Jasiński
Fix #36134
2020-06-03Fixes the right and center alignment bug of rich text labelUmang Kalra
2020-06-03Merge pull request #39113 from nekomatata/bbcode-image-colorRémi Verschelde
Add color option for img bbcode tag in RichTextLabel to tint images
2020-05-30Add color option for img bbcode tag in RichTextLabel to tint imagesPouleyKetchoupp
2020-05-29Merge pull request #39051 from Xrayez/geometry-splitRémi Verschelde
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
2020-05-27Split `Geometry` singleton into `Geometry2D` and `Geometry3D`Andrii Doroshenko (Xrayez)
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-26colorpicker margin bug fixedThakee Nathees
2020-05-23Merge pull request #38396 from nekomatata/unexpose-sort-childrenRémi Verschelde
Fix Container sorting not working when overriding _sort_children in gdscript
2020-05-22Option in RichTextLabel for height to fit contentPouleyKetchoupp
2020-05-21Clarifies 'icon_separation' in TabContainer (instead of 'hseparation')Dominik 'dreamsComeTrue' Jasiński
Fixes: #38911
2020-05-20Merge pull request #38794 from nekomatata/text-edit-search-resultRémi Verschelde
TextEdit search returns Dictionary instead of Vector
2020-05-20Merge pull request #38309 from SkyLucilfer/AndroidLineEditRémi Verschelde
Fix Android LineEdit editing bugs
2020-05-17Allow searching with keyboard input by default in PopupMenuHugo Locurcio
See discussion in https://github.com/godotengine/godot-proposals/issues/43.
2020-05-16TextEdit search returns a dictionary instead of VectorPouleyKetchoupp
Easier to use than accessing elements in a Vector using indices given by an enum. Breaks compatibility on existing scripts using this functionality.
2020-05-16Fix Container sorting not working when overriding _sort_children in gdscriptPouleyKetchoupp
Remove _sort_children from script bindings: _sort_children is an internal method which shouldn't be exposed to scripts. Added support for non-bound methods in MessageQueue: So we can use deferred calls without exposing internal methods to scripts. Added debug checks in CallableCustomMethodPointer: Adding method pointer callables to the message queue was causing crashes in case an object was destroyed and the same memory was allocated for another one. The new object had a valid object id but the call was erroneous. Release will be fixed later, along with Variant which has the same problem and is also fixed for debug only.
2020-05-16Fix Android LineEdit editing bugsSkyJJ
2020-05-16Fixed text editor drawing if smooth scrolling is disabled.Marcus Brummer
Fixes #38778
2020-05-16Remove get_local_mouse_position() hack in GraphEditsmartin015
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-05-14Modernize remaining uses of 0/NULL instead of nullptr (C++11)Rémi Verschelde
Using clang-tidy's `modernize-use-nullptr`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2020-05-14Port member initialization from constructor to declaration (C++11)Rémi Verschelde
Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
2020-05-12Merge pull request #38655 from ↵Rémi Verschelde
ice-blaze/minimap-shifted-selection-by-one-line#38532 Fix minimap selection offset
2020-05-11Using the common behaviour when use command+shift on text line for osxEduardo Nunes Pereira
* On press left+command+shift or right+command+shift it should behave like shift+home or shift+end and select the text * Using home and end events as reference