summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
2021-07-20Merge pull request #50655 from JFonS/sname_optRémi Verschelde
Editor StringName and Viewport optimizations
2021-07-20Editor StringName and Viewport optimizationsJoan Fons
* Added explicit return type to the SNAME macro. * Add some extra SNAME usages. * Change some ClassDB methods to use const StringName & arguments. * Cache the Window parent in Control because it's used in is_layout_rtl(), which is called often. * Only enable internal processing for viewports that need it. * Change CanvasItem::group to be a StringName because it's only used as that.
2021-07-20Merge pull request #50605 from Calinou/tweak-shader-code-styleRémi Verschelde
Use C++11 raw literals for shader code to improve readability
2021-07-19Merge pull request #50588 from bruvzg/menu_genRémi Verschelde
Optimize LineEdit and TextEdit menu item generation.
2021-07-19Merge pull request #50606 from Chaosus/textedit_fix_guttertypeRémi Verschelde
Fixed typos in `TextEdit::GutterType` enum
2021-07-19Fixed typos in `TextEdit::GutterType` enumYuri Roubinsky
2021-07-19Use C++11 raw literals for shader code to improve readabilityHugo Locurcio
In files that have lots of branching, `\t` was replaced with a tab character instead.
2021-07-19Optimize LineEdit and TextEdit menu item generation.bruvzg
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-07-17Create many types of popups on demandreduz
* LineEdit popups created on demand. * TextEdit popups created on demand. * SpinSlider popups created on demand. * ResourcePicker popups created on demand. Improves editor responsiveness.
2021-07-14Merge pull request #48502 from KoBeWi/visual_buttonRémi Verschelde
Add set_pressed_no_signal method to BaseButton
2021-07-13Add header theme type variations to labelskobewi
2021-07-13Merge pull request #50169 from pycbouh/theme-type-variationsRémi Verschelde
2021-07-13Add set_pressed_no_signal method to BaseButtonkobewi
2021-07-13Merge pull request #50086 from Geometror/label-improve-layout-optionsRémi Verschelde
Improvements to Label's layout options
2021-07-13Merge pull request #50135 from KoBeWi/🌲.update()Rémi Verschelde
Update Tree when modified
2021-07-13Add type variations to ThemeYuri Sizov
2021-07-07Add cache to color picker for presetsFrancois Belair
This prevents loading from the project metadata more than once, significantly saving performance with nodes that have color pickers.
2021-07-07Merge pull request #50208 from kleonc/accept_dialog-remove_buttonRémi Verschelde
Add AcceptDialog::remove_button method
2021-07-07Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648Hugo Locurcio
Avoid using a nullptr root in Tree._range_click_timeout().
2021-07-06Add AcceptDialog::remove_button methodkleonc
2021-07-06LineEdit: Respect `max_length` by truncating text to appendRémi Verschelde
When appending text (either via `set_text()` or by pasting from clipboard), if the input would make the `LineEdit` exceed its configured `max_length`, the input text is truncated to fit. The discard part is passed as a parameter in the `text_change_rejected` signal. Fixes #33321. Fixes #41278. Also cleaned up unimplemented `max_chars` property in `TextEdit`. Co-authored-by: Tony-Goat <70238376+Tony-Goat@users.noreply.github.com>
2021-07-04Clean up Treereduz
Fixes some problems introduced by #49917 * Tree used minimum size as a stretch ratio, so it forced a minimum size of 1. * Minimum size redone, stretch ratio moved to a separate setting * Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired. * Added a clip content option for situations where fit to contents does not apply. * Icon would scroll with the item, making it invislbe if the item is too long. * Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
2021-07-04Improvements to Label's layout optionsHendrik Brucker
- Added options to trim the text in case it overruns - Added more autowrap modes - Improved line breaking, which ignores trailing spaces
2021-07-04Update Tree when modifiedkobewi
2021-07-03Merge pull request #49468 from menip/FixGetScreenPositionRémi Verschelde
Fix Control::get_screen_position() not considering viewport scale
2021-07-02Make invisible `SplitContainer` nodes correctly calculate the minimal size ↵Michael Alexsander
of its children
2021-06-30Fix editor suffixes and degrees conversionreduz
* Functions to convert to/from degrees are all gone. Conversion is done by the editor. * Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees. * Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m" * In general, can add suffixes for EditorSpinSlider Not covered by this PR, will have to be addressed by future ones: * Ability to switch radians/degrees in the inspector for angle properties (if actually wanted). * Animations previously made will most likely break, need to add a way to make old ones compatible. * Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes. * Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-30Avoid using a nullptr root in Tree._range_click_timeout().voxelv
Fixes #46648
2021-06-29Merge pull request #37181 from jitspoe/master.button_icon_alignmentRémi Verschelde
2021-06-29Merge pull request #49970 from trollodel/graphnode_fix_port_positionRémi Verschelde
Fix GraphNode port position when the control has the Expand flag
2021-06-29Add alignment options to icons on buttons.jitspoe
They can now be centered and right-aligned. Fixes #11380.
2021-06-29Merge pull request #49719 from LightningAA/rename-node-is-ancestor-ofRémi Verschelde
Rename `is_a_parent_of()` to `is_ancestor_of()`
2021-06-29Fixes crash in case no column in tree is expanded and has minimum sizeGilles Roudière
2021-06-28Fix GraphNode port position when the control has the Expand flagtrollodel
2021-06-28Merge pull request #49917 from groud/tree_disable_scrollRémi Verschelde
Allow disabling scrolling in Tree and implement horizontal scrolling
2021-06-28Implement Tree's internal minimum width calculationGilles Roudière
2021-06-25Implement native extension systemreduz
* Deprecates GDNative in favor of a simpler, lower level interface. * New extension system allows registering core engine classes. * Simple header interface in gdnative_interace.h
2021-06-25Allow disabling scrolling in TreeGilles Roudière
2021-06-25Merge pull request #49908 from KoBeWi/📎🔫Rémi Verschelde
Remove clips_input() method and use clip_content
2021-06-25Remove clips_input() method and use clip_contentkobewi
2021-06-25Fix RichTextLabel custom_effects export to be properly filtered in the EditorEric M
2021-06-21Merge pull request #49798 from pycbouh/tree-lines-items-draw-orderRémi Verschelde
Make relationship lines draw on top of `TreeItem`s
2021-06-21Rename `is_a_parent_of()` to `is_ancestor_of()`Lightning_A
2021-06-21Make relationship lines draw on top of TreeItemsYuri Sizov
2021-06-21Update min size on Label::set_textHaoyu Qiu
2021-06-21Merge pull request #49665 from Paulb23/code_edit_indentRémi Verschelde
Move indentation into CodeEdit
2021-06-21Improve nine patch behavior of TextureProgressBarfloppyhammer
2021-06-20Move indent management to CodeEditPaulb23
2021-06-20Merge pull request #35608 from golfinq/masterRémi Verschelde