aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix #16069, #19292, #19267 and #18940Guilherme Felipe2018-06-061-4/+3
|
* -Ability to open resources in the same windowJuan Linietsky2018-05-171-0/+1
| | | | | -Plenty of fixes and improvements to new inspector -Fixes that were needed to make inspector work better
* -New inspector.Juan Linietsky2018-05-151-17/+41
| | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* Merge pull request #17502 from groud/2Deditor_rectJuan Linietsky2018-04-131-0/+8
|\ | | | | Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
| * Remove the selection rect for nodes that do not require itGilles Roudiere2018-04-031-0/+8
| |
* | Merge pull request #17081 from endragor/no-press-when-scrollRémi Verschelde2018-04-101-0/+2
|\ \ | | | | | | Make Button not emit press when container is scrolled
| * | Make BaseButton not emit press when container is scrolledRuslan Mustakov2018-04-091-0/+2
| |/ | | | | | | | | | | | | | | | | This fixes the problem described in #13996 in a proper way. This also adds "deadzone" property to ScrollContainer. It can be used on mobile, where taps are not as precise as mouse clicks. Player could slightly move their finger when tapping, in which case we still want the button to be pressed rather than the container to be scrolled.
* | Merge pull request #16574 from isaacremnant/better_grow_directionJuan Linietsky2018-04-081-14/+17
|\ \ | |/ |/| Added GROW_DIRECTION_BOTH for controls
| * Implements #16546 by adding GROW_DIRECTION_BOTH which allows a control to ↵isaacremnant2018-02-121-14/+17
| | | | | | | | grow from its center.
* | Merge pull request #16566 from groud/gui_input_reworkRémi Verschelde2018-02-191-23/+25
|\ \ | | | | | | 2D Editor GUI input rework
| * | 2D editor GUI input rework. Changes are:Gilles Roudiere2018-02-161-23/+25
| |/ | | | | | | | | | | | | | | | | | | - The input handling is done into several distinct functions, and the code is more consistent. - The actions' history is more precise ("Edited CanvasItem" is now "Rotated CanvasItem","Moved CanvasItem",etc...) - Fixed a little bug about input key events not forwarded correctly to plugins - IK is followed by default when you move a bone node, the alt-key allow you to move it normally
* / Force controls to save rect_clip_content since they do not all default to false.isaacremnant2018-02-181-1/+1
|/
* Fix typos in code and docs with codespellRémi Verschelde2018-01-181-1/+1
| | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* Fix get_parent_range to return 0 when there is no parentRuslan Mustakov2018-01-131-2/+2
| | | | Fixes #15635
* Small fix for Control bindingsletheed2018-01-131-1/+2
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+3
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Fixes nodes being resized or moved when changing an anchorGilles Roudiere2018-01-111-5/+13
|
* Fix theme inheritanceFabio Alessandrelli2018-01-051-2/+3
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix Clip Content property is not savedvolzhs2017-12-171-1/+1
|
* fix certain popup close clicks with popup buttonsBernhard Liebl2017-12-101-0/+11
|
* Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere2017-11-191-36/+70
|
* Add manual overrides for focus_next and focus_previous on controls similar ↵Saracen2017-11-161-1/+67
| | | | to what can already be done with focus neighbours.
* Unify degree members and propertiesletheed2017-11-101-5/+5
|
* Remove deprecated rotation methodsletheed2017-11-101-14/+0
|
* Bind unbound enums, rearrange some by valuePoommetee Ketson2017-10-221-2/+2
|
* Fixes set_anchors_and_margins_preset()Gilles Roudiere2017-09-271-35/+65
|
* Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere2017-09-221-15/+0
| | | | set_anchors_and_margins_preset(PRESET_WIDE)
* Implements set_margins_preset(...)Gilles Roudiere2017-09-221-1/+112
|
* Rename pos to position in user facing methods and variablesletheed2017-09-201-12/+12
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* also loop for classes if there is no coustom theme fixes #11250toger52017-09-141-2/+10
|
* Fix serveral recent new clang-format errorsHein-Pieter van Braam2017-09-081-1/+1
|
* Restored auto snapping of controls to pixels, fixes #10847 and probably ↵Juan Linietsky2017-09-071-0/+4
| | | | several more issues. Made it optional in the project settings but defaults to true.
* DocData and type hints fixesIgnacio Etcheverry2017-08-291-1/+1
| | | | | | | - Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-40/+38
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* Removed unnecessary returns and break statementsWilson E. Alvarez2017-08-221-2/+0
|
* Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky2017-08-211-48/+48
|\ | | | | ClassDB: Provide the enum name of integer constants
| * ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-48/+48
| |
* | Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky2017-08-201-1/+1
|\ \ | |/ |/| Adds Engine::is_editor_hint() method
| * Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-1/+1
| |
* | Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889Juan Linietsky2017-08-151-4/+7
| |
* | Avoids inverted anchorsGilles Roudiere2017-08-131-10/+18
| | | | | | | | | | Add a push_opposite_anchor argument pushing the opposite anchor if needed
* | Adds a function to set Anchors with a layout presetGilles Roudiere2017-08-131-0/+132
| |
* | Handle undo/redo of anchor positioningGilles Roudiere2017-08-131-0/+11
| |
* | Add anchor visualizationGilles Roudiere2017-08-131-0/+1
| |
* | Replace GUI anchor type by a float between 0 and 1Gilles Roudiere2017-08-131-74/+29
|/
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-14/+14
|
* Adds missing type information to virtual method bindsIgnacio Etcheverry2017-08-101-1/+1
|