aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/popup_menu.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Entirely new (and much improved) animation editor.Juan Linietsky2018-06-071-4/+21
|
* -Ability to open resources in the same windowJuan Linietsky2018-05-171-0/+24
| | | | | -Plenty of fixes and improvements to new inspector -Fixes that were needed to make inspector work better
* Add support for radio-looking items with iconPedro J. Estébanez2018-04-091-0/+7
| | | | | | Letting users of `PopupMenu` use them. `OptionButton` was one of those interested and is updated in this commit. Fixes #18063.
* Merge pull request #17730 from RandomShaper/radio-buttons-in-menusJuan Linietsky2018-04-071-23/+61
|\ | | | | Radio buttons in menus
| * Add radio-button-looking entries to PopupMenuPedro J. Estébanez2018-03-271-23/+61
| | | | | | | | | | | | | | | | | | | | They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually. `is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button. Keeping check in the name adds an additional clue about these facts. Closes #13055.
* | Improve popup menus usabilityPedro J. Estébanez2018-04-071-20/+38
|/ | | | | | | | | | | | It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal. This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item. This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature. This improves UX a bit by saving unnecessary clicks. From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
* Add item_focused signal to OptionButtonFabio Alessandrelli2018-02-231-0/+3
| | | | And id_focused to Popupmenu.
* Popupmenu now uses UI actions instead of keysFabio Alessandrelli2018-02-231-66/+47
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-1/+2
| | | | | | | 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
* Corrects wrong scrolling for short popups broken in 15405Bernhard Liebl2018-01-071-3/+9
|
* Allow popup menu scrolling without mouse wheelBernhard Liebl2018-01-061-32/+27
|
* 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.
* Fix PopupMenu to show & detect properly hover areavolzhs2018-01-051-3/+2
| | | | Fix #15275
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #14748 from YeldhamDev/popupmenu_circlebackRémi Verschelde2017-12-171-2/+10
|\ | | | | Made highlighted item in PopupMenu circle back to the beginning/end when using the keyboard
| * Made highlighted item in PopupMenu circle back to the beginning/end when ↵Michael Alexsander Silva Dias2017-12-161-2/+10
| | | | | | | | using the keyboard.
* | More changes to PopupMenu's submenu keyboard handling.Michael Alexsander Silva Dias2017-12-161-10/+25
|/
* Enhancements and fixes for PopupMenu's submenus.Michael Alexsander Silva Dias2017-12-151-19/+18
|
* Change statable to multistate, remove extra separatorPoommetee Ketson2017-12-121-14/+14
|
* Merge pull request #11510 from AndreaCatania/skelRémi Verschelde2017-12-101-13/+82
|\ | | | | Added skeleton x-ray
| * Implemented skeleton visibilityAndreaCatania2017-12-101-13/+82
| | | | | | | | Removed code visibility code from popup menu
* | Fixed PopupMenu's submenus not showing up in certain situations.Michael Alexsander Silva Dias2017-12-061-3/+3
|/
* 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-5/+5
| | | | | | | | | | | | 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/
* Rename localization method to `tr` againRémi Verschelde2017-08-181-9/+9
| | | | Partial revert of #10380 based on contributor ~~bullying~~ feedback.
* Rename `XL_MESSAGE` aka `tr` to `localize`Rémi Verschelde2017-08-171-9/+9
| | | | | Also renames `set_message_translation` to `set_message_localization` for consistency.
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-11/+11
|
* Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-071-6/+6
|
* Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTERBojidar Marinov2017-08-061-2/+2
| | | | Closes #7695
* Add object type hint for docsPoommetee Ketson2017-07-231-6/+6
|
* Fix uncheckable checkboxes in RMB menu. closes #9625Jakub Grzesik2017-07-141-0/+11
|
* [#7212] Fixed missing 'Variant' return values in documentation.ducdetronquito2017-07-111-1/+1
|
* Merge pull request #8407 from Jylhis/popup_item_select_hideThomas Herzog2017-06-201-3/+18
|\ | | | | Update PopupMenu hiding
| * Update PopupMenu hidingJylhis2017-04-141-3/+18
| | | | | | | | | | Make PopupMenu hiding distinguish between checkable item and non checkable item.
* | renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-3/+3
| |
* | InputEvent: Renamed "pos" property to "position"Andreas Haas2017-06-031-5/+5
| | | | | | | | Make the naming consistent with other classes.
* | Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-128/+129
| | | | | | | | this might cause bugs I haven't found yet..
* | Fixed #8526, popup menu width now responds to submenu iconAlexHoratio2017-05-141-0/+5
| |
* | Implemented scrolling factor for smooth trackpad scrollingtoger52017-05-071-2/+2
|/ | | | | Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-9/+9
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-427/+355
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-45/+45
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-131-2/+2
| | | | This saves typing and is a step towards fixing #56
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-1/+1
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* New API for visibility in both CanvasItem and SpatialJuan Linietsky2017-01-131-1/+1
| | | | | | visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
* -Translation text will change automatically for in-game buttons, labels, ↵Juan Linietsky2017-01-091-9/+24
| | | | | | | poups when translation is changed. -Added a NOTIFICATION_TRANSLATION_CHANGED for controls that need custom code -Sorry, editor will not update automatically because it uses a different translatio method.
* PopupMenu now emits both index_pressed and id_pressed instead of ↵Juan Linietsky2017-01-081-2/+4
| | | | item_pressed, closes #3188
* renamed _input_event for GUI events to _gui_input, so it's more ↵Juan Linietsky2017-01-081-4/+4
| | | | differentiated than generalized _input
* -Changed most project settings in the engine, so they have major and minor ↵Juan Linietsky2017-01-051-13/+19
| | | | | | | | categories. -Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available