Commit graph

764 commits

Author SHA1 Message Date
volzhs 870ed6f2fa Add "button_selected" signal to ButtonGroup 2016-10-13 09:58:06 +09:00
volzhs 06903c7ad2 Expose resizable property of GraphNode in inspector 2016-10-13 08:24:25 +09:00
Zher Huei Lee f5830e0973 Fixes for ButtonArray
Fixed hover sometimes not resetting when mouse leaves widget.
Fixed text position not taking into account stylebox's content margins.
2016-10-12 22:54:04 +01:00
Rémi Verschelde 0f587c460e Merge pull request #6778 from Hinsbart/completion_z
Fix Script Editor drawing over Dialogs.
2016-10-11 09:10:39 +02:00
Andreas Haas f73b501d6f
Fix Script Editor drawing over Dialogs.
Resets the z-index when focus is lost and the completion is shown.

Fixes #6769
2016-10-10 13:24:46 +02:00
Pedro J. Estébanez d9c1729a8f Add line length guideline to code editors 2016-10-10 10:39:58 +02:00
Anthony Fieroni 6d21fd42d3 Button focus hovering
Signed-off-by: Anthony Fieroni bvbfan@abv.bg
2016-10-10 10:34:18 +03:00
Mateusz Adamczyk 3ef2722904 Place child control under label in AcceptDialog.
Fixes #6199.
2016-10-09 15:00:35 +02:00
Rémi Verschelde 6f9023c9a6 Merge pull request #6717 from Hinsbart/focus_crash
Prevent crash on focus change when no valid next control has been found.
2016-10-09 14:41:22 +02:00
Rémi Verschelde 9eb54e5b6e Merge pull request #6716 from Hinsbart/completion_fix
Fix code completion drawing under other gui elements.
2016-10-09 14:40:11 +02:00
Rémi Verschelde a4f3d93136 Merge pull request #6707 from volzhs/graphnode
Expose selected value of GraphNode
2016-10-09 14:37:21 +02:00
Rémi Verschelde 369865f01a Merge pull request #6705 from volzhs/graphedit
Fix GraphEdit grab random node when delete or deselect by clicking empty space
2016-10-09 14:35:24 +02:00
Rémi Verschelde fb856e532e Merge pull request #6673 from J08nY/issue-update-spinner
Fix #6653, add an option to stop the update spinner from spinning
2016-10-09 14:06:59 +02:00
Rémi Verschelde 28b0e9a56c Merge pull request #6553 from pkowal1982/treecheckbox
Use full width of TreeItem::Cell to change value in CELL_MODE_CHECK
2016-10-09 13:54:36 +02:00
Andreas Haas 6dfa405eac
Fix code completion drawing under other gui elements.
Raises the z-index of the Script editor when the completion is shown.

fixes #1257
fixes #6690
2016-10-05 10:19:52 +02:00
Andreas Haas 8dd026e4f9
Prevent crash on focus change when no valid next control has been found.
Fixes the crash discussed in #6714.
2016-10-05 08:56:58 +02:00
volzhs 7d74e3c39f Expose selected value of GraphNode 2016-10-05 02:00:58 +09:00
volzhs 83278a1ac4 Fix GraphEdit grab random node when delete or deselect by clicking empty space 2016-10-05 01:10:49 +09:00
Rémi Verschelde ad280e7bfc Merge pull request #6640 from Hinsbart/color_picker
Add inline ColorPicker to Script text editor.
2016-10-03 12:00:10 +02:00
Rémi Verschelde c939be8859 Merge pull request #6634 from zaps166/fix-resampler-crash
Don't crash when video is stopped and played again
2016-10-03 11:59:55 +02:00
Rémi Verschelde 03ee749989 Merge pull request #6529 from pkowal1982/scrolltree
Add scrolling to Tree control in Drag and Drop mode
2016-10-03 11:44:32 +02:00
Rémi Verschelde 9c4c1733b4 Merge pull request #6513 from Brickcaster/master
Fix for issue #6496: ItemList does not immediately scroll down to section
2016-10-03 11:39:16 +02:00
J08nY 6b283ae293
PopupMenu: added toggle_item_checked and exposed set_item_tooltip and get_item_tooltip 2016-10-01 16:50:53 +02:00
Andreas Haas f81d009525
Add inline ColorPicker to Script text editor.
Adds an option to the script editor context menu that lets you open
a ColorPicker in order to easily edit `Color()` constructors.
To do this, right click on the word `Color` and select `Pick Color`.

A side effect of this change is that the script editor now has its own
context menu instead of re-using the one from TextEdit.
It's now possible to indent left/right and to toggle comments via this menu.
I also felt free to make it more context-sensitive than before:
Now "Cut" and "Copy" will only be shown if text has actually been selected.

I also added default shortcuts for indent left/right. (alt + left/right)

Closes #6232
2016-09-29 09:12:45 +02:00
Pawel Kowal 3edc0a4832 LineEdit long indicator, fix #6624 2016-09-28 22:05:34 +02:00
Błażej Szczygieł 5585bc1c38 Don't crash when video is stopped and played again 2016-09-28 13:39:06 +02:00
Ying-Ruei Liang(KK) 241e2594f1 Show '.' in the tree of file_dialog 2016-09-26 16:04:15 +08:00
Pawel Kowal dd4f2a2ccb Use full width of TreeItem::Cell to change value in CELL_MODE_CHECK 2016-09-19 23:07:24 +02:00
Andreas Haas 9c71e5a9df
Fix ability to cut/paste text in LineEdit/TextEdit in readonly mode.
Fixes #6466
2016-09-19 14:17:48 +02:00
Pawel Kowal 9e5aaa27bc Add scrolling to Tree control in Drag and Drop mode 2016-09-17 21:29:55 +02:00
Brickcaster cc7bc07e33 Fix for issue #6496
Canged order of NOTIFICATION_DRAW to update scrollbar before scrollbar
is checked to see which list elements to display.
2016-09-16 11:25:07 -04:00
sanikoyes b548ef0009 fix ScrollContainer cannot scroll when scroll bar is hidden 2016-09-13 11:50:41 +08:00
Juan Linietsky 37f1e86108 Do ctrl-click on any code identifier to go to definiton or help page. 2016-09-12 10:53:31 -03:00
Juan Linietsky b874cede20 Add argument options for the theme override functions in Control 2016-09-11 11:48:31 -03:00
Juan Linietsky 95eb7466df -Added a ColorFrame control, kind of like Texture but for color.
-Added dropping nodes to text editor for them to become a path
-Fixed issues with font not properly being set in code editor
2016-09-11 11:28:01 -03:00
Juan Linietsky 1bf684cea2 -Cleaned up find/replace bar for replace (made selection only default if selection exists), also made buttons look like buttons
-Fixed a bug related to theme propagation, may be able to solve #6443, #6302 and others. Please test.
2016-09-11 10:05:46 -03:00
Juan Linietsky 65b93d177e -Added bindings to the resource filesystem for editor
-Added set_child_rect, which was unavailable for script
2016-09-10 17:34:27 -03:00
Juan Linietsky fc61eb37ce Merge pull request #5920 from 29jm/fix-warnings
Fix some more warnings
2016-09-10 12:21:02 -03:00
Juan Linietsky 026c7913cf Merge pull request #5942 from pkowal1982/scroll
ScrollContainer expand children bug fix
2016-09-10 12:14:33 -03:00
Paulb23 63fd8f863b Added get_v_scroll to item list, issue 5343 2016-09-09 15:20:57 +01:00
George Marques c73bef1562 Merge pull request #6423 from bebae/issue-6143
fixed wrong placement of AcceptDialog Buttons issue-6143
2016-09-07 23:47:48 -03:00
MarianoGNU ae4f7cbc2c Explicitly initialize TextureProgress's initial angle value.
(Hopefully)
Fixes #3856
Fixes #6426
Fixes #6344
2016-09-07 20:00:10 -03:00
bebae dd9189aac4 fixed wrong placement of AcceptDialog Buttons issue-6143 2016-09-07 20:49:53 +02:00
Rémi Verschelde a40309b532 Merge pull request #6420 from Paulb23/itemlist_tooltip_disable_issue_6240
Itemlist tooltip disable issue 6240
2016-09-07 20:42:26 +02:00
Paulb23 62a968b1c6 Ability to disable item list tooltip, issue 6240 2016-09-07 18:13:22 +01:00
Rémi Verschelde b48e6230f4 LineEdit: Quick fix to set_expand_to_text_length argument name 2016-09-07 08:52:42 +02:00
Juan Linietsky 405f6af79c -Added diectly editable expressions on node to VSEditor, closes #6392
-Added ability for LineEdit to expand to fit text
2016-09-06 20:34:24 -03:00
Juan Linietsky 181fdce1e9 Better snapping for graph ports, closes #6394 2016-09-06 19:55:22 -03:00
Rémi Verschelde eb1b71180e Merge pull request #6372 from waldson/master
Fixes LineEdit text selection with mouse selecting more than intended
2016-09-05 07:46:02 +02:00
Juan Linietsky 5028d7510d Connection hints when connecting to empty space. 2016-09-03 14:58:23 -03:00
Waldson Patrício 3d84973184 Fixes LineEdit text selection with mouse selecting more than intended 2016-09-02 13:04:15 -03:00
Juan Linietsky b780679302 -Added focus to comment node
-Make comment node not grab focus on main area
2016-09-02 12:03:49 -03:00
Juan Linietsky fb4d6d1db0 More visual script improvements
-Added anti-aliasing on lines
-Improved draw performance enormously
-Removed sequence ports for most nodes, current visual scripts will likely be broken now. Sorry!
2016-08-30 23:46:41 -03:00
Rémi Verschelde 41ee85b6a0 Merge pull request #5262 from vnen/button-signals
Add button_down and button_up signals
2016-08-30 16:49:12 +02:00
Rémi Verschelde 622bf389f2 Merge pull request #6264 from MasonAsh/issue-6263
Fix sliders incorrectly calculating value on click
2016-08-29 19:05:32 +02:00
Rémi Verschelde 01d5163b6f Merge pull request #6220 from volzhs/issue-5789
Make LineEdit not to cover whole line when rename node
2016-08-29 19:04:49 +02:00
Rémi Verschelde 23cb5efe7c Merge pull request #5956 from djrm/tree_behavior
Double click on scene tree element to focus currently selected node
2016-08-29 18:28:05 +02:00
Rémi Verschelde 6c674375e5 Merge pull request #6249 from volzhs/issue-6121
Show last added action on Input Map
2016-08-28 12:02:08 +02:00
volzhs 2e5a4cb5ca Show last added action on Input Map and implement InputEvent "==" 2016-08-28 15:18:13 +09:00
Daniel J. Ramirez 70c9979cce Double click on scene tree element to focus currently selected node
In 3D it will focus in the first viewport
Enable double click for trees
2016-08-27 17:15:49 -05:00
George Marques 8a1b1ab6d6
Add button_down and button_up signals 2016-08-26 21:57:52 -03:00
Juan Linietsky 9c6175db11 More visual script work
-Block switches to 2d/3d editor if editing visual script
-Added cast node in flow control
-Added ability to do RPC in visual script
-Comment nodes
-Fix bug with inverted cable in connecting backwards
-Copy and paste nodes, including from different scripts
2016-08-25 17:45:20 -03:00
Mason Ashbridge fb54ba6397 Slider value accounts for grabber offset 2016-08-24 03:17:54 -04:00
Juan Linietsky ad8f208bdb Proper function/property selection in visual script editing for property.
This one has an ordered list, built-in description, search, etc.
2016-08-23 19:29:07 -03:00
Juan Linietsky 231c72b5eb prettier connections for graph edit 2016-08-23 10:15:47 -03:00
volzhs ff22db3b21 Make LineEdit not to cover whole line when rename node 2016-08-23 05:46:11 +09:00
Johan Manuel 67b29e3b9e Fix some warnings about misleading indentation 2016-08-13 13:21:35 +02:00
Rémi Verschelde b9e8bddf19 Merge pull request #6132 from neikeq/pr-issue-6123
Confirm code completion with numpad key ENTER
2016-08-12 13:45:55 +02:00
Ignacio Etcheverry e9f9e00bd9 Confirm code completion with numpad key ENTER 2016-08-12 13:37:10 +02:00
Juan Linietsky 9890c1d2ca Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done! 2016-08-06 19:00:54 -03:00
Juan Linietsky 259418f827 VisualScript can now execute visual scripts, but there is no debugger or profiler yet. 2016-08-05 22:48:00 -03:00
Juan Linietsky 6ed5d48d0c Concluded base visual scripting! can edit but not run though. 2016-08-04 00:05:35 -03:00
Juan Linietsky 3d1d190dcd Merge branch 'master' of https://github.com/godotengine/godot 2016-08-02 19:11:47 -03:00
Juan Linietsky ad313097eb WIP visual scripting, not working yet but you can check out stuff 2016-08-02 19:11:05 -03:00
Zher Huei Lee af6ef01c69 Added extra spacing support for DynamicFont
Side effect is that label min-size will now take into account
kerning.
2016-08-02 11:05:20 +01:00
Paulb23 740dea7de7 Exposed enable syntax highlighting to properties 2016-07-28 15:47:47 +01:00
Pawel Kowal 853161a000 ScrollContainer expand children bug fix 2016-07-27 20:24:10 +02:00
Ignacio Etcheverry 35cb8ff89e LineEdit: Fix event handled as text when a mod key is pressed 2016-07-27 19:32:46 +02:00
Juan Linietsky 542bd81e76 Merge pull request #5926 from akien-mga/pr-graphedit-drag
Fix GraphEdit dragging issues at scales != 1
2016-07-26 18:49:51 -03:00
Rémi Verschelde 60e19f7751 Fix GraphEdit dragging issues at scales != 1
Works around the issue originally described in #5907 (that was then
hijacked to describe the broader issue it exposes).
2016-07-26 23:19:41 +02:00
Juan Linietsky 9151eb591d Changed the way the step decimals are computed to a safer way, fixes many issues. 2016-07-26 17:25:10 -03:00
Juan Linietsky 0b75f894c3 Merge pull request #5746 from Ovnuniarchos/FileDialogExposed
Corrections and additions to FileDialog
2016-07-24 12:36:05 -03:00
Rémi Verschelde 8fbe804bd1 Merge pull request #5884 from 29jm/fix-crash-graphnode
Fix crash when GraphNode wasn't a child of a Control
2016-07-24 00:37:20 +02:00
Johan Manuel 580b4465c6 Fix crash when GraphNode wasn't a child of a Control 2016-07-24 00:25:32 +02:00
Rémi Verschelde ebefdaa598 Merge pull request #5737 from neikeq/pr-issue-5269
TextEdit: Scroll search results to the center
2016-07-23 22:54:32 +02:00
MarianoGNU f00e0b589f Fix pick color from screen. Closes #5853 2016-07-22 20:35:12 -03:00
Johan Manuel 1a1342670e Fix ItemList.clear() not removing separators 2016-07-22 16:45:57 +02:00
Robert Lewicki b1df9e016c Fixed ItemList indexing bug while selecting items.
Also added functionality for unselecting items in itemlist while clicking in empty space.
Fixes #5772.
2016-07-22 16:28:37 +02:00
Rémi Verschelde 51b03f0bf5 Fix binding for ItemList.sort_items_by_text
Also forces to recompute the cached rect for all items.
Fixes #5799
2016-07-22 08:08:17 +02:00
Juan Linietsky 93c3c801db properly implement item disabling, fixes #5683 2016-07-21 18:24:56 -03:00
Rémi Verschelde 40d78c2144 Merge pull request #5829 from 29jm/master
Fix the rotation not updating in the inspector with Controls
2016-07-21 09:09:58 +02:00
Rémi Verschelde 750b973ee4 Merge pull request #5200 from neikeq/sc-CanvasItemEditor
Implement ShortCuts in CanvasItemEditor
2016-07-21 09:02:01 +02:00
Ignacio Etcheverry fc16954fa2 TextEdit: Center search results 2016-07-21 03:40:08 +02:00
Ignacio Etcheverry 4e82f9ffcf Implement missing ShortCuts in CanvasItemEditor 2016-07-21 03:28:41 +02:00
Johan Manuel fc4ace3120 Fix the rotation not updating in the inspector with Controls 2016-07-21 00:26:36 +02:00
Rémi Verschelde 17f86eee33 Merge pull request #5792 from neikeq/pr-issue-3868
Label: Added `get_visible_line_count` method
2016-07-19 07:38:06 +02:00
Rémi Verschelde 569541bafc Merge pull request #5790 from neikeq/pr-issue-1149
MenuButton: Fix event propagation with dialogs
2016-07-19 07:36:25 +02:00
Juan Linietsky b49476a011 Merge pull request #5731 from neikeq/pr-issue-5642
LineEdit: Fix rtl scrolling with mouse drag selection
2016-07-18 19:29:24 -03:00
Ignacio Etcheverry 78819b6b54 Label: Added get_visible_line_count method 2016-07-18 23:33:06 +02:00
Ignacio Etcheverry c45837cf3f MenuButton: Fix event propagation with dialogs 2016-07-18 23:06:14 +02:00