summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
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-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
2021-06-20Use mouse and joypad enums instead of plain integersAaron Franke
Also MIDIMessage
2021-06-20Rich Text Label now allows for foreground colors and background colorsgolfinq
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-20Merge pull request #49742 from Paulb23/remove_keywords_texteditRémi Verschelde
Remove redundant keywords from TextEdit
2021-06-20Merge pull request #48696 from madmiraal/fix-48692Rémi Verschelde
Fix `InputMap.action_erase_event()` failing to erase events correctly.
2021-06-19Remove redundant keywords from TextEditPaulb23
2021-06-17Add PROPERTY_USAGE_NONE and use itAaron Franke
2021-06-17Scrollwheel (w/o ctrl) to zoom, mouse warping when panningLightning_A
Now uses Ctrl + Scrollwheel for vertical scrolling Ctrl + Shift Scrollwheel for horizontal scrolling Also converts some macros to constants
2021-06-17Merge pull request #38261 from pycbouh/adjust-graph-edit-zoom-levelsRémi Verschelde
Make zoom limits and step adjustable in `GraphEdit`
2021-06-17Merge pull request #49258 from megalobyte/editor-fixRémi Verschelde
Fixes for documentation search
2021-06-16Merge pull request #49238 from Paulb23/code_edit_code_foldingRémi Verschelde
Move code folding into CodeEdit and hide line hiding API
2021-06-16Documentation search fixesGregory Basile
Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
2021-06-16Fix typo in CodeEdit methodsHaoyu Qiu
2021-06-16Make zoom limits and step adjustable in GraphEditYuri Sizov
2021-06-15Merge pull request #49011 from KoBeWi/totally_hRémi Verschelde
Fix valign with stylebox borders
2021-06-15Merge pull request #49437 from Calinou/graphedit-allow-higher-lower-zoom-valuesRémi Verschelde
Allow higher and lower maximum zoom values in GraphEdit
2021-06-15Merge pull request #49508 from kleonc/texture_button-updating-min_sizeRémi Verschelde
TextureButton Update min size on any texture change
2021-06-15Merge pull request #49582 from timothyqiu/codeedit-update-cacheRémi Verschelde
Update cache after clearing delimiters in CodeEdit
2021-06-14Merge pull request #49572 from azagaya/fix_grabber_areaRémi Verschelde
Fix vertical slider grabber_area height calculation