summaryrefslogtreecommitdiff
path: root/scene/gui/item_list.cpp
AgeCommit message (Collapse)Author
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-02-13Fix typos with codespellRémi Verschelde
Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2019-01-18ItemList: ignore `ui_select` action if Select Mode is not "Multi"homer666
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-11-07Fixes icons in itemlist not workinggroud
2018-10-30Enhance the tilemap transform buttonsgroud
2018-10-24Add some limits on the Editor SettingsSuperwaitsum
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-08-24Fix a mistake in itemlist multiselect signalgroud
2018-08-17Bind ItemList's item_custom_fg_color methodsRémi Verschelde
Fixes #21086.
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-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-01Fix performance for godot's interfaceGuilherme Felipe
2018-05-08Merge pull request #17578 from endragor/ft-outlinesRémi Verschelde
Perfect FreeType-based outlines for DynamicFonts
2018-05-08Merge pull request #15258 from RyanStein/bugfix-15241Juan Linietsky
Use exact positioning for the ItemList::get_tooltip method.
2018-05-08Perfect FreeType-based outlines for DynamicFontsRuslan Mustakov
- Implement outlines based on FreeType Stroker API. This allows artifact-free results, similar to what you will see in Web or any text editing tools. Outline is a part of DynamicFont rather than Label, because outlines have to be baked into the font's atlas. Font has a default outline_color and a Label can specify font_outline_modulator that will be multiplied with the Font's color to get the final result. - draw_char now has to be called twice to fully render a text - first with p_outline == true for each character and then with p_outline == false for each character. - Number of draw-calls is reduced from 5 to 2 per outlined character. - Overall cleanup of DynamicFont code, extracted duplicated code pieces into separate methods. - The change is backward-compatible - Labels still have outline properties that work exactly as they worked before. Closes #16279.
2018-04-14ItemList selection: Check against item countShyRed
ItemList needs to check against the number of items available when the user moves the selection via "ui_right" action.
2018-04-11Update classref and docs, fix missing parameters' namePoommetee Ketson
2018-03-23Fix converting to tileset crashes Godot if existing file is not tilesetPoommetee Ketson
also make TileSetEditorPlgn tile list updates the preview modulate
2018-03-13Merge pull request #17345 from AlexHolly/expose-itemlist-move-itemRémi Verschelde
expose Itemlist.move_item and optimize functionality
2018-03-13expose itemlist.unselect_all()Alexander Holland
2018-03-13expose Itemlist.move_item and optimize functionalityAlexander Holland
2018-03-11expose Itemlist.is_anything_selectedAlexander Holland
2018-02-19Merge pull request #15306 from poke1024/item-list-draw-speedRémi Verschelde
Boost drawing speed of ItemLists with many items
2018-02-14Added "allow_reselect" property to ItemList and enabled it for the ↵Michael Alexsander Silva Dias
method/help lists.
2018-02-03Fix wrong property type for fixed icon size in ItemListbinbitten
2018-01-12Bind many more properties to scriptsBojidar Marinov
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
2018-01-05Boost drawing speed of ItemLists with many itemsBernhard Liebl
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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.
2018-01-03Merge pull request #14792 from Krakean/enh-1Rémi Verschelde
A few small Debugger->Errors tab enhancements:
2018-01-01Use exact positioning for the ItemList::get_tooltip method.Ryan Stein
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-18A few small Debugger->Errors tab enhancements:Dmitry Koteroff
1. Added "Clear" button to clear list. 2. Errors list now populated with newest items comes first, so no need to scroll everytime. 3. Added PopupMenu to errors list with ability to quickly Copy error text & details.
2017-11-26Item List small enhancementsDmitry Koteroff
Item list: added new signal - nothing_selected (when mouse clicked on empty space), and two new functions - unselect_all() and is_any_selected()
2017-11-21Native pan and zoom for macOSBernhard Liebl
2017-11-20Add "New Folder.." to right mouse button click on project fileslist panel ↵Dmitry Koteroff
_WHEN_ no any file/folder is under mouse cursor.
2017-11-13Fit stylebox on ItemListvolzhs
2017-10-31Revert "Fixes the selection rect in item_list drawn not clipped"Rémi Verschelde
2017-10-24Fixes the selection rect in item_list drawn not clippedGilles Roudiere
2017-10-18Itemlist rmb now provides the same pos as Tree rmbAlexHolly
2017-09-28Several visual improvements.Daniel J. Ramirez
Added proper label sizing Improved text editor status bar Fixed some issues with ItemList and also some style fixes Added background to color picker samples (the mrcdk fix) Fixed slider ticks. Added VS breakpoint and error styleboxes.
2017-09-20Rename pos to position in user facing methods and variablesletheed
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.
2017-09-03Improved color temperature in script editorDaniel J. Ramirez
2017-09-01Fix signed and unsigned comparisonsHein-Pieter van Braam
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-16Merge pull request #10252 from neikeq/pr-fix-some-stuff-<3Rémi Verschelde
Some method fixes
2017-08-13Replace GUI anchor type by a float between 0 and 1Gilles Roudiere
2017-08-11Fixes ItemList::is_same_column_width() return typeIgnacio Etcheverry