summaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
AgeCommit message (Collapse)Author
2021-06-17Add PROPERTY_USAGE_NONE and use itAaron Franke
2021-06-12Consistently prefix bound virtual methods with _kobewi
2021-06-03Merge pull request #46482 from KoBeWi/size_warning_the_sequelRémi Verschelde
Warn about changing size only when it's relevant
2021-05-25Tweak dozens of editor property hints for consistencyHugo Locurcio
- Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
2021-05-17Add theme_custom_type property to Control and WindowYuri Sizov
2021-05-13Fix variable names for "usage" flags in `Control::_get_property_list()`Andrii Doroshenko (Xrayez)
Renamed incorrect "hint" variable names to "usage" in `_get_property_list()`, as "hint" implies one of the PROPERTY_HINT_* values, which is not the case here.
2021-04-30Fix autocompletion for Control's Theme propertiesYuri Sizov
2021-04-11Use Array for node configuration warningsNathan Franke
Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
2021-03-31Merge pull request #47252 from KoBeWi/themecideRémi Verschelde
Add methods to remove theme overrides
2021-03-30Merge pull request #46702 from HaSa1002/fix-min-size-resizeRémi Verschelde
Fix removal of `rect_min_size` not triggering resize
2021-03-23Fix removal of `rect_min_size` not triggering resizeJohannes
fixes #46672
2021-03-23Remove the clearing behavior from add_overridekobewi
2021-03-23Add methods to remove theme overrideskobewi
2021-03-19Use real_t in non-physics 2D nodesAaron Franke
2021-03-15Check if _edit_set_position and _edit_set_rect was used outside an editorKongfa Waroros
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-05Fix Control._edit_set_state crashsps1112
2021-03-04Revert "Add size check in Control._edit_set_state to prevent crash"Rémi Verschelde
This reverts commit ef1d58f034233a0d8b5d0b5dbf539e851ffc726c.
2021-03-04Add size check in Control._edit_set_state to prevent crashsps1112
2021-03-01Merge pull request #41437 from KoBeWi/put_it_hereRémi Verschelde
Allow to create a node at specific position
2021-02-27Warn about changing size only when it's relevantkobewi
2021-02-26Allow to create a node at specific positionTomasz Chabora
2021-02-19Warn when setting Control size inside ready()Tomasz Chabora
2021-02-18Reorganize Project Settingsreduz
-Advanced Settings toggle also hides advanced properties when disabled -Simplified Advanced Bar (errors were just plain redundant) -Reorganized rendering quality settings. -Reorganized miscelaneous settings for clean up.
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-01-26Merge pull request #44349 from KoBeWi/drop_the_data!Rémi Verschelde
Allow to override drop data in LineEdit
2021-01-26Exposed find_next_valid_focus and find_prev_valid_focus.Nils Reid
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-28Merge pull request #44607 from madmiraal/rename-control-rotationRémi Verschelde
Rename Control rotation to rotation_degrees
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-23Rename Control rotation to rotation_degreesMarcel Admiraal
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Merge pull request #44300 from KoBeWi/🧹🧹Rémi Verschelde
Move initialization of some classes to headers
2020-12-15Rename neighbour in Control to neighborDaniel Ting
This keeps things consistent with the rest of Godot, which uses the American English spelling of Color.
2020-12-13Allow to override drop data in LineEditkobewi
2020-12-11Move initialization of some classes to headersTomasz Chabora
2020-12-09Cleanup unused engine codeTomasz Chabora
2020-12-04doc: Sync classref with current sourceRémi Verschelde
And fixups: - Add missing bindings in RenderingServer - Remove duplicate ArrayMesh enum bindings (they're in Mesh already) - Remove redundant _unhandled_key_input binding in Control (it's in Node already)
2020-11-28Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-reworkRémi Verschelde
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
2020-11-23Implement new shortcuts system.Eric M
unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-16Merge pull request #42008 from Calinou/theme-rename-node-typeRémi Verschelde
Rename the `type` parameter to `node_type` in Theme and Control
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-11-03Tooltips: Improve code clarity and docsRémi Verschelde
The return type for `_make_custom_tooltip` is clarified as Control, and users should make sure to return a visible node for proper size calculations. Moreover in the current master branch, a PopupPanel will be added as parent to the provided tooltip to make it a sub-window. Clarifies documentation for `Control._make_custom_tooltip`, and shows how to use the (until now undocumented) "TooltipPanel" and "TooltipLabel" theme types to style tooltips. Fixes #39677.
2020-10-27Rename the `type` parameter to `node_type` in Theme and ControlHugo Locurcio
This makes it clearer that it expects a node type as a string (such as "Label") instead of a type like "TYPE_ARRAY". This is backwards-compatible since only the name of the parameter is changed, not its order.
2020-10-02Updated getters and setters names for toplevelDuroxxigar
2020-10-02Merge pull request #42451 from Duroxxigar/rename-toplevelRémi Verschelde
Renamed toplevel to be top_level
2020-10-01Merge pull request #38743 from arrowinaknee/node-config-warningsRémi Verschelde
Update all get_configuration_warning() to retrieve warnings from the parent
2020-10-01Renamed toplevel to be top_levelDuroxxigar