summaryrefslogtreecommitdiff
path: root/scene/gui
AgeCommit message (Collapse)Author
2018-08-17Bind ItemList's item_custom_fg_color methodsRémi Verschelde
Fixes #21086.
2018-08-17Merge pull request #21091 from hpvb/fix-removing-popup-menu-itemRémi Verschelde
Call minimum_size_changed() in PopupMenu::remove_item()
2018-08-16Call minimum_size_changed() in PopupMenu::remove_item()Hein-Pieter van Braam
When removing an item from a PopupMenu we need to update the control's size cache otherwise the size of the PopupMenu itself lags behind by 1 item size. Meaning the PopupMenu will remain too large.
2018-08-16Delay emitting pressed signals in PopupMenuHein-Pieter van Braam
When processing items we may actually delete the item we're processing in the callback for the signal. To avoid this, call the signal after we're done processing the items. But before hiding the popupmenu itself. Thanks to @reduz for writing the whole solution. This fixes #19842
2018-08-16Fix type of Range allow_greater/allow_lesser propertiesRémi Verschelde
2018-08-16PopupMenu item_pressed is sent before checking hide flags.Ovnuniarchos
2018-08-14Merge pull request #18096 from aaronfranke/masterJuan Linietsky
[Core] Split up math_2d.h
2018-08-14Merge pull request #20906 from Chaosus/rrect_fixRémi Verschelde
Fix ReferenceRect border
2018-08-14Merge pull request #20876 from ttencate/cursor_blinkRémi Verschelde
Reset caret blink when Ctrl+moving the cursor
2018-08-14Merge pull request #20982 from hpvb/fix-19842Rémi Verschelde
Emit pressed events after processing items
2018-08-13Emit pressed events after processing itemsHein-Pieter van Braam
When processing items we may actually delete the item we're processing in the callback for the signal. To avoid this, call the signal after we're done processing the items. This fixes #19842
2018-08-13Editor autocomplete: prefer same case candidatesJames
2018-08-13Merge pull request #20155 from Tunous/line-edit-clearRémi Verschelde
Add clear button to search fields
2018-08-13Merge pull request #20666 from Calinou/script-editor-underline-hidpiRémi Verschelde
Scale underlines in the script editor with the editor scale
2018-08-11Do not use theme to set LineEdit right_iconŁukasz Rutkowski
2018-08-11Add clear text button to LineEditŁukasz Rutkowski
- Add pressed state to clear button - Enable clear button on all inputs with search icon - Remove duplicate clear buttons - Fix rendering of icon for center and right alignments - Add clear button to more search fields - Add clear icon to default theme - Add method to control enabled state of clear button - Add property to enable clear button from inspector
2018-08-11[Core] Completely kill math_2d.h, change includesAaron Franke
2018-08-11Fix ReferenceRect borderChaosus
2018-08-10Merge pull request #20149 from Overblob/shader_float_typingJuan Linietsky
Shader language - Add optional float typings
2018-08-10Make line edit always vertically aligned, makes no sense otherwise. Fixes #17188Juan Linietsky
2018-08-10Reset caret blink when Ctrl+moving the cursorThomas ten Cate
There was a hardcoded exception to never reset caret blinking if Ctrl (`command`) was pressed. This broke on Ctrl+arrows, Ctrl+Home/End/PgUp/PgDn, Ctrl+C, Ctrl+V, Ctrl+Backspace and Ctrl+Delete. Resetting blink only for those Ctrl operations that actually touch the cursor somehow would clutter the code a lot, so I removed the check entirely. That means we now also reset blinking on unrelated operations like Ctrl+O, but that seems pretty harmless. I actually like the additional bit of feedback even in that case (most of these will immediately defocus the editor anyway, so you never see it). Fixes #18100
2018-08-02Scale underlines in the script editor with the editor scaleHugo Locurcio
2018-07-29Expose _clips_input as a virtual function, closes #15358Juan Linietsky
2018-07-29Merge pull request #15269 from ianb96/context_menu_improvementsJuan Linietsky
Context Menu Improvements
2018-07-27Merge pull request #20498 from Calinou/caret-width-hidpiRémi Verschelde
Make the caret thicker in TextEdit and scale it with the editor scale
2018-07-26Multiply TextEdit line spacing by the editor scaleHugo Locurcio
This makes sure the default line spacing in the script editor is consistent with the editor scale in use.
2018-07-26Make the caret thicker in TextEdit and scale it with the editor scaleHugo Locurcio
The caret in LineEdit is still 1 pixel thick, but it will become 2 pixels thick at editor scales higher than or equal to 150%.
2018-07-26context menu improvementsIan
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25Merge pull request #20133 from ibrahn/fix-tree-uninit-branchRémi Verschelde
fixed a branch on uninitialised data in gui/tree
2018-07-25Merge pull request #19726 from guilhermefelipecgs/feature_add_menu_hoverRémi Verschelde
Opens the menu with the same parent on mouse focus
2018-07-24Opens the menu with the same parent on mouse focusGuilherme Felipe
2018-07-24Merge pull request #18867 from fire/better_vx_us_rebase_02Juan Linietsky
Improve VisualScript UX
2018-07-24Improve VisualScript UXK. S. Ernest (iFire) Lee
* Prototype faster function call ux. * Work on general search ux. * Able to create nodes from search. * Show class for variables but not methods. * Get actions search working. * Descriptions now show for both methods and properties. * Enable zooming on mouse wheel up and down. * Make the drag trigger on right mouse button. * Search now shows for action visual script nodes. * Able to search visual node names. * Search works better. * Change zooming scale to hide artifacts better. * Remove zoom changes * Select from base should check properties too like the other functions. * Seq_connect flag is needed to set sequence lines correctly. * Remove comment * Code cleanup with function names and arguments. * Use brief description for search descriptions. * Clean and fix bug with input nodes connecting with sequence lines. * Add a warning and fix some edge conditions with sequence into data lines and vice versa. * Don't search functions when pulling from a sequence node. * Don't show actions when pulling from a data line. * Set set and get properties. * Convert visual script operators to the correct type * Create a function preset finds only functions. * Singletons can now find functions. * Add shift-a for generic search. * Add brief descriptions for Visual Script nodes. * Search boxes can now filter names. * Add bigger hit zones to node connect. * For the drop zones, make all the rect2 areas the same size. * Function names in visual script node should be lower case so that search works better. * Use the convention of capitalize() for set, set, visual script nodes and methods. * Make search more general. Ignore "_" and make case-insensitive. Also made the search window smaller and remove extra info from search * Make type_cast use the connecting node's type and remove use of found variable. * Fix case where you call an instance's call function where it becomes an invalid call. * Make get_visual_node_names use a set of filters, move action creations and fix bug with sequence node connections. * Make the window bigger. * Make connect_data and connect_seq more robust. * Add icons to search items. * Add vs constructors in shift-a menu. * Operators, builtins and constructors show type name. Fix several problems with port connections. * In shift-a mode search everything. * Code cleanup * Work on autocompleting the type. * Use type guess in action creation. * Check if type hint string exists in object variables when generating the visual script search. * Add the hint to SceneTree. * Add original type detection. * Make type casting great again. This puts the type casted base type as the data output type string hint. * Pass the type in a VisualScriptFunctionCall too. * Set the base type correctly in VisualScriptFunctionGet and VisualScriptFunctionSet using hint string. * Make sure the instance is passed in VisualScriptPropertySet. * Restore search on the node's type. * Remove dependencies from graph_edit. * Remove dependencies from property_selector and name the class visual_script_property_selector. * Extract hot zones into a function. * Move hot_zones constants into default theme. * Bigger capture zones. * Clean messy port_grab_distance variables. * Remove RMB functionality. * Remove memory leak on showing visual script descriptions. * Read the port_grab_distance constants on enter tree and theme changed.
2018-07-24Merge pull request #18806 from Calinou/bilinear-textureprogressRémi Verschelde
Add support for bilinear bars in TextureProgress
2018-07-24Removed unnecessary assignmentsWilson E. Alvarez
2018-07-20Add editor highlight for type-safe linesGeorge Marques
The line number is hightlighted to indicate that the line contains only type-safe code.
2018-07-20-Fix tooltips in inspector, now they show as rich text.Juan Linietsky
2018-07-18Export: Properly reload preset when opening dialogRémi Verschelde
Fixes #20119 where newly installed templates were not detected. Also fix a bug with preset deletion where it would attempt to edit an already removed preset. For this I made it so that ItemList::deselect_all() also resets `current` to -1, as a manual ItemList::deselect(idx) already does.
2018-07-18Fix Label autowrap clips textvolzhs
2018-07-17Merge pull request #20150 from ibrahn/fix-scrollbar-atlasMax Hilbrunner
fix scrollbar icons with atlas texture.
2018-07-15* Small hex/float/integer parsing refactoringOverblob
* Potential bug fix on hex (cannot be used atm) * Added optional typing for floats, eg: "1f" -> "1.0" "1.f" -> "1.0" "1.99f" -> "1.99" "1." -> "1.0"
2018-07-14Visual Shaders are back.Juan Linietsky
2018-07-14fix scrollbar icons with atlas texture.Ibrahn Sahir
Draw scrollbar icons through their textures, rather than calling directly to the server. Allows atlas textures to manipulate the source rect as required.
2018-07-13fixed a branch on uninitialised data in gui/treeIbrahn Sahir
I don't think it was really causing any harm, but this makes things a little more explicit and helps clean up valgrind output.
2018-07-12Merge pull request #20068 from Xrayez/submenu-popup-delayMax Hilbrunner
Add ability to set submenu's popup delay time on mouse hovering
2018-07-10fix ColorPickerButton.get_popup()Alexander Holland
2018-07-09Add ability to set submenu's popup delay time on mouse hoveringAndrii Doroshenko (Xrayez)
This allows to set delay time for the submenu to popup. Setting this value low can increase responsiveness. If the popup menu is added as a child of another (acting as a submenu), it will inherit the delay time of the parent menu item.
2018-07-07Added scrollable property to SlidersChaosus
2018-07-05Merge pull request #19498 from guilhermefelipecgs/fix_regressionMax Hilbrunner
Fix "find and replace" initializing with wrong size