summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
2020-03-18Remove update condition from LineEdit::update_placeholder_widthsimpuid
Placeholder with length greater than `max_length` are allowed, so there is no reason for those update condition. It fixes the odd alignment of placeholder when it's length is greater than `max_length`
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-12Merge pull request #36518 from Janglee123/no-underlined-keywordsRémi Verschelde
Removed underlining of not clickable symbols
2020-03-11Removed underlining for not clickable symbolsjanglee
2020-03-11Merge pull request #36715 from dreamsComeTrue/fix-text-edit-comment-quotesRémi Verschelde
Allow single quotes [',"] in comments in TextEdit
2020-03-11Allow single quotes in commentsDominik 'dreamsComeTrue' Jasiński
Fixes: #36638
2020-03-03Improve UX of drive lettersPedro J. Estébanez
Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
2020-03-01Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde
Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
2020-02-29Double click on a folder didn't open itGil Arasa Verge
There is a deferred call to _update_file_list inside _tree_item_activated but it was not bound.
2020-02-28Signals: Port more uses of connect_compatRémi Verschelde
Those were problematic as they call a method of their parent class, but callable_mp does not allow that unless it's public. To solve it, we declare a local class that calls the parent class' method, which now needs to be protected to be accessible in the derived class.
2020-02-28Signals: Manually port most of remaining connect_compat usesRémi Verschelde
It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-28Merge pull request #36626 from giarve/stop-input-event-prop-on-popup-closeRémi Verschelde
Clicking backgrd. dimming of editor popup stops input event propagation
2020-02-28Clicking backgrd. dimming of editor popup stops input event propagationGil Arasa Verge
A click on the dimmed background of a popup in the editor should stop the input event from propagating to the background. This solution reuses the system introduced in commit efc3ffb8, taking advantage of the hide() notifications from the modal where we will set the flag "pass_on_modal_close_click(false)" to stop event handling at the viewport input event handling. The viewport first hides the modal and after marks the input as handled if the flag mentioned above is set. Fixes #36341
2020-02-27Signals: tab_changed now is emitted when it's on scene treeMateo Dev .59
2020-02-27Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde
Add a soft line length guideline to the script editor
2020-02-27Merge pull request #36050 from eswartz/line-edit-move-cursor-on-unselectRémi Verschelde
Use left/right arrow to move cursor when unselecting in LineEdit
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-25Rename `scancode` to `keycode`.bruvzg
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
2020-02-23Merge pull request #36089 from dreamsComeTrue/fix-autocomplete-quotesRémi Verschelde
Fix: auto brace complete for quoted strings
2020-02-23Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde
This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
2020-02-21Fix: auto brace complete for quoted stringsDominik 'dreamsComeTrue' Jasiński
Fixes #36002
2020-02-21Added StringName as a variant type.Juan Linietsky
Also changed all relevant properties defined manually to StringName.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-17Merge pull request #36229 from dreamsComeTrue/rich-text-label-key-eventsRémi Verschelde
RichTextLabel: proper handling of internal key events
2020-02-15Use left/right arrow to move cursor when unselecting in LineEditEd Swartz
-- useful for rename dialog (the filename portion is selected by default, and usually, want to change the end of the name, not the beginning)
2020-02-15Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky
2020-02-15Fix hiding ColorPicker's presets not fully hiding its controlsMichael Alexsander
2020-02-15Add a soft line length guideline to the script editorHugo Locurcio
The default value is 80. The hard line length guideline's default column has been moved to 100 to account for the new soft line length guideline. It can be disabled by setting its value to the same column as the hard line length guideline. This closes https://github.com/godotengine/godot-proposals/issues/347.
2020-02-14RichTextLabel: proper handling of internal key eventsDominik 'dreamsComeTrue' Jasiński
Fixes #36211
2020-02-12ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky
32 bits.
2020-02-11Bugfixes and ability to better specify filter and repeat modes everywhere.Juan Linietsky
Removes antialiased flag for draw_* methods.
2020-02-11basic 2D engine is more or less working with Vulkan, including editor.Juan Linietsky
Still a lot to do
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-02-10Merge pull request #34288 from bojidar-bg/33425-always-suggest-subsequenceRémi Verschelde
Always display subsequence autocompletion matches
2020-02-09Merge pull request #35768 from Eoin-ONeill-Yokai/hiddenRichTextRémi Verschelde
Fix to RichTextEffect `visibility` - Label Now Accounts for Skipped Characters.
2020-02-09Merge pull request #35840 from timothyqiu/groups-matchRémi Verschelde
Fixes add group in Group Editor dialog
2020-02-09Merge pull request #35814 from timothyqiu/line-edit-shortcutRémi Verschelde
Adds CTRL-A CTRL-E support to LineEdit on macOS
2020-02-09Merge pull request #36039 from YeldhamDev/tree_text_clip_fixRémi Verschelde
Fix text clipping in Tree items not working with negative values
2020-02-08Fix text clipping in Tree items not working with negative valuesMichael Alexsander
2020-02-08Merge pull request #35714 from sumit0190/lineEditWidthRémi Verschelde
Update cached_width of the line_edit element (#35699)
2020-02-08Update cached_width of the line_edit element when setting it to be secretsumit0190
2020-02-08Uses split cursor for SplitContainerHaoyu Qiu
2020-02-07Use modules_enabled.gen.h to improve inter dependency checksRémi Verschelde
- Fix build with gdscript module disabled. Fixes #31011. - Remove unused `gdscript` compile option. - Fix build with regex module disabled. - Fix ImageLoaderSVG to forward declare thirdparty structs.
2020-02-07GraphEdit: Fix regression with GraphNode mouse filterRémi Verschelde
PR #35068 made Container (which GraphNode inherits) default to MOUSE_FILTER_PASS, so I removed the manual override, but it turns out that GraphNode's constructor still overrides it to MOUSE_FILTER_STOP. Another fix could be to remove the STOP in the constructor, but I don't know if it's there for a specific reason (e.g. to have GraphNodes STOP by default, but PASS in a specific case). Fixes #35978.
2020-02-06Merge pull request #35068 from akien-mga/containers-mouse-filter-passRémi Verschelde
Use MOUSE_FILTER_PASS for all containers
2020-02-05Merge pull request #32959 from georgwacker/control-node-anim-fixRémi Verschelde
Fix control node transform animation jitter with pivot offset
2020-02-05Remove duplicate WARN_PRINT macro.Marcel Admiraal
2020-02-02Fixes add group in Group Editor dialogHaoyu Qiu
Before this fix, new group can't be created if any existing group starts with the new name.