summaryrefslogtreecommitdiff
path: root/scene/gui/item_list.cpp
AgeCommit message (Collapse)Author
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-01-14Don't allow to use too big index in ItemListRafał Mikrut
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-31Improves ItemListHaoyu Qiu
* Adds range hint for integer properties * Adds missing descriptions in documentation * Updates some method descriptions to match the actual behavior * Fixes second param name of `set_item_icon_transposed` from `rect` to `transposed`
2019-12-09Fixed strange behaviour of scroll in the ItemList.allkhor
2019-11-26Range: Fix cases where max was set to or below min valueRémi Verschelde
It will now raise an error whenever this happens so that we can fix these situations. `max == min` is not allowed as it could lead to divisions by zero in ratios, and `max < min` doesn't make much sense. Fixes #33907.
2019-11-06Fixes ItemList max column updatecodecustard
When setting the max column of an ItemList, the layout does not update until it is resized.
2019-10-08Merge pull request #32571 from DavidSichma/rect_flipRémi Verschelde
Correctly flip texture src region
2019-10-05Fix crash in Control functionsqarmin
2019-10-05Correctly flip texture src regionDavid Sichma
2019-07-05Give up finding item if started at beginningCameron Reikes
When the current item is -1, then the loop will infinitely repeat, constantly setting i to zero and never exiting.
2019-06-02Fixed get_item_at_position being weirdTomasz Chabora
2019-06-01Merge pull request #28841 from KoBeWi/option_button_optionsRémi Verschelde
Improvements to incremental search
2019-05-31Improvements to incremental searchTomasz Chabora
2019-05-24Improvements to scroll handlingTomasz Chabora
2019-05-09Revert "Merge pull request #26053 from qarmin/back_scroll_to_start"volzhs
This reverts commit b5deb1dc72d8c4c92c9850379522926e60ddf7d0, reversing changes made to 2cc8848c3c3815c6f72ce5f9b75bfab8a1498292. This change causes unwanted regression. It's too risky to have scroll back to top in ItemList.clear()
2019-04-30Merge pull request #26053 from qarmin/back_scroll_to_startRémi Verschelde
Back scroll bar to start when changing folder
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-02-19Back scroll to start when changing folderqarmin
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