aboutsummaryrefslogtreecommitdiff
path: root/scene/gui (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | add tint for under, progress and over and tint groupbosak2018-04-012-30/+63
| | | | | | | | | |
| * | | | | | | | | add tint property to TextureProgress changes progress colorbosak2018-03-212-11/+32
| | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #17809 from RandomShaper/menu-item-on-releaseJuan Linietsky2018-04-073-23/+42
|\ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / |/| | | | | | | | Improve popup menus usability
| * | | | | | | | Improve popup menus usabilityPedro J. Estébanez2018-04-073-23/+42
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighterRémi Verschelde2018-04-042-269/+419
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Abstracted the syntax highlighter from text edit.
| * | | | | | | | Abstracted the syntax highlighter from text editPaulb232018-04-022-269/+419
| |/ / / / / / /
* / / / / / / / Added signal to VideoPlayer to notify when the video finished playingWilson E. Alvarez2018-04-011-6/+9
|/ / / / / / /
* | | | | | | Merge pull request #17612 from robfram/fix-richtextlabel-bbcodeRémi Verschelde2018-03-232-3/+10
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Fix bad rendering of BBCode tables in `RichTextLabel`
| * | | | | | Fix bad rendering of BBCode tables in `RichTextLabel`robfram2018-03-182-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Text overflowed canvas as tables didn't calculate correctly the width of their columns. They used the whole table width available for each column. Also, the `cell` parameter was wrongly parsed if used with its optional argument (expand ratio). This PR fixs the parsing of `cell` parameter (i.e. `cell=e`) and the distribution of the full table width between columns, but it overrides automatically the `expand` flag if the column is smaller than it could be, to allow a better UX out-of-the-box. It keeps the `expand_ratio` flag to let the user customize how every column grows in relation to the rest. Partially fix #6289.
* | | | | | | Merge pull request #17618 from groud/fix_gridcontainerRémi Verschelde2018-03-191-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Fixes wrong calculation of gridcontainer's children size
| * | | | | | Fixes wrong calculation of gridcontainer's children sizeGilles Roudiere2018-03-181-2/+2
| | | | | | |
* | | | | | | Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli2018-03-168-381/+347
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | GUI elements ui_action usage, improvements
| * | | | | | Add two new default actions ui_end, ui_homeFabio Alessandrelli2018-02-232-33/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Used by Slider and Scrollbar
| * | | | | | Add item_focused signal to OptionButtonFabio Alessandrelli2018-02-233-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And id_focused to Popupmenu.
| * | | | | | Scrollbar now uses UI actions instead of keysFabio Alessandrelli2018-02-231-31/+26
| | | | | | |
| * | | | | | Line edit up/down focus pass throughFabio Alessandrelli2018-02-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When line edit receive a up/down and the cursor is at beginning/end it will not set the input as handled
| * | | | | | Tree now uses UI actions instead of keysFabio Alessandrelli2018-02-232-260/+260
| | | | | | |
| * | | | | | Popupmenu now uses UI actions instead of keysFabio Alessandrelli2018-02-231-66/+47
| | | | | | |
* | | | | | | Merge pull request #17293 from bncastle/basebutton_fix_pressedHein-Pieter van Braam2018-03-151-0/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix "ui_accept" action not calling _pressed() function in GDScript Button
| * | | | | | | Fix BaseButton not always calling _pressed()bncastle2018-03-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix "ui_accept" action in BaseButton.cpp not calling _pressed() func in GDScript
* | | | | | | | Merge pull request #17345 from AlexHolly/expose-itemlist-move-itemRémi Verschelde2018-03-132-24/+12
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | expose Itemlist.move_item and optimize functionality
| * | | | | | | | expose Itemlist.move_item and optimize functionalityAlexander Holland2018-03-132-24/+12
| |/ / / / / / /
* | | | | | | | expose itemlist.unselect_all()Alexander Holland2018-03-131-0/+2
| | | | | | | |
* | | | | | | | Merge pull request #17314 from robfram/complete-path-15813Rémi Verschelde2018-03-131-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
| * | | | | | | | Fix bad autocomplete of partially written node paths when using syntactic ↵robfram2018-03-061-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sugar notation ($) If you had a tree like Node2D->Sprite->Camera2D and you write a code like $Node2D/Spr and chose the autocompletion sugested Node2D/Sprite, the resulting string was $Node2D/Node2D/Sprite instead $Node2D/Sprite. If you chose Node2D/Sprite/Camera2D, then you ended with $Node2D/Node2D/Sprite/Camera2D. Fix #15813.
* | | | | | | | Merge pull request #17359 from AlexHolly/completion-edge-jumpRémi Verschelde2018-03-131-4/+10
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Auto completion edge jump
| * | | | | | | | auto-completion edge jumpAlexander Holland2018-03-091-4/+10
| |/ / / / / / / | | | | | | | | | | | | | | | | arrow up/down jumps to end/start on edges
* | | | | | | | Merge pull request #17383 from poke1024/colorpicker-tweaksRémi Verschelde2018-03-132-5/+49
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Better tab support for color picker
| * | | | | | | | Various ui tweaks for color pickerBernhard Liebl2018-03-122-5/+49
| | |_|_|_|/ / / | |/| | | | | |
* | | | | | | | Merge pull request #17422 from robfram/fix-radial-textureprogressRémi Verschelde2018-03-131-16/+39
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Implement line clipping for `TextureProgress` to avoid bad rendering
| * | | | | | | | Implement line clipping for `TextureProgress` to avoid bad rendering due to ↵robfram2018-03-101-16/+39
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | imprecise UV mapping Original code used a quick aproximation for simulating the correspondent texel in the `TextureProgress` texture as radial progress indicator. This lead to visualization errors. Changed it for a Liang-Barsky line clipping algorithm stripped to its minimum for this specific use case. Fix #17364.
* | | | | | | | Merge pull request #17410 from groud/fix_grid_containerRémi Verschelde2018-03-131-4/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fixes infinite loop in GridContainer
| * | | | | | | | Fixes infinite loop in GridContainerGilles Roudiere2018-03-101-4/+4
| |/ / / / / / /
* | | | | | | | Merge pull request #17191 from garyo/fix_grid_contRémi Verschelde2018-03-131-6/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fix infinite loop in GridContainer layout
| * | | | | | | | Fix infinite loop in GridContainer layoutGary Oberbrunner2018-03-101-6/+6
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had a grid container and tried to set rect.min_height larger in the editor; that caused an infinite loop in GridContainer::_notification at line 118. The reason is max_index was being set to the *height* of the row, not the *index* of the row. So later when it tried to erase that row and try again, there was nothing to erase. I applied the same fix to the width code.
* / / / / / / / expose Itemlist.is_anything_selectedAlexander Holland2018-03-111-0/+2
|/ / / / / / /
* / / / / / / Prevent division by zero in GridContainerLeon Krause2018-03-071-2/+2
|/ / / / / /
* | | | | | Fix more regressions in RichTextLabel from PR 15711Bernhard Liebl2018-03-021-9/+5
| | | | | |
* | | | | | Fix regression through fa98637acaab9135568bf0d43a65c9c96b59c32dpoke10242018-03-011-0/+5
| | | | | |
* | | | | | Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-02-282-0/+4
| |_|/ / / |/| | | |
* | | | | Merge pull request #16656 from JFonS/fix_gradient_crashRémi Verschelde2018-02-271-0/+7
|\ \ \ \ \ | |/ / / / |/| | | | Fix weird editor crash when switching from editing one gradient to another keeps 'grabbing' variable to true
| * | | | Fix weird editor crash when switching from editing one gradient to another ↵JFonS2018-02-141-0/+7
| | | | | | | | | | | | | | | | | | | | keeps 'grabbing' variable to true
* | | | | Fix typos with codespellluz.paz2018-02-213-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
* | | | | Fixed disappearing text on filedialog buttonsMax2018-02-211-4/+4
| | | | |
* | | | | Fixed "Open" button being enabled when nothing is selected in a FileDialog ↵Michael Alexsander Silva Dias2018-02-202-12/+8
| | | | | | | | | | | | | | | | | | | | while in "Open folder" mode.
* | | | | Merge pull request #16455 from volzhs/close-docsRémi Verschelde2018-02-202-9/+14
|\ \ \ \ \ | | | | | | | | | | | | Keep to show current script when closing all docs
| * | | | | Keep to show current script when closing all docsvolzhs2018-02-202-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | also fix error when removing multiple tabs from TabContainer at same frame. like closing multiple docs at once. Fix #16403
* | | | | | Merge pull request #16652 from aragar/FixQuotationInStringRémi Verschelde2018-02-191-1/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix quotation in string
| * | | | | | Fix quotation in stringRado'sPC\aRaGaR2018-02-121-1/+0
| | |_|/ / / | |/| | | | | | | | | | | | | | | | fix for #16404
* | | | | | Merge pull request #15306 from poke1024/item-list-draw-speedRémi Verschelde2018-02-191-4/+48
|\ \ \ \ \ \ | | | | | | | | | | | | | | Boost drawing speed of ItemLists with many items