summaryrefslogtreecommitdiffstats
path: root/scene/gui/item_list.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Merge commit godotengine/godot@80f0b33313dae52d072ba2771a88ebcc4f0b4d6dSpartan3222024-10-181-1/+1
|\
| * ItemList - Fix right padding missingGamemap2024-10-061-1/+1
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Add `Auto width` behavior to ItemListGamemap2024-10-041-3/+32
| | | | Co-authored-by: Craig Hupin <althar93@hotmail.com>
* Merge pull request #97519 from timothyqiu/itemlist-atRémi Verschelde2024-10-031-5/+42
|\ | | | | | | Add auto translate mode for items in `ItemList`
| * Add auto translate mode for items in `ItemList`Haoyu Qiu2024-09-271-5/+42
| |
* | Fix ItemList text trimming and autowrap marginGamemap2024-10-011-18/+21
|/
* Fix a bunch of orphan StringName errors at ProjectSettings/Editor exitYuri Rubinsky2024-07-091-0/+1
|
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::item_selected`A Thousand Ships2024-06-191-10/+10
|
* Fix Huge .tscn Icon and icon in background of File System panelHilderin2024-06-021-2/+20
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
|
* Fix PropertyListHelper::_get_property returning a valid value even if an ↵Gilles Roudière2024-05-101-0/+1
| | | | | | index is outside the array valid indices Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Fix item positioning & pointer detection areas of ItemListDavid Giardi2024-02-271-20/+24
|
* Fix ItemList click detection gapsDavid Giardi2024-02-151-0/+7
|
* Add PropertyListHelper to PopupMenukobewi2024-02-111-22/+4
|
* Merge pull request #84635 from KoBeWi/all_hail_PropertyListHelperRémi Verschelde2024-02-091-47/+23
|\ | | | | | | Add PropertyListHelper
| * Add PropertyListHelperkobewi2024-01-191-47/+23
| |
* | Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-1/+1
|/
* Merge pull request #83577 from DennisManaa/fix-translation-for-item-listRémi Verschelde2024-01-041-2/+11
|\ | | | | | | Add automatic translation of items to ItemList
| * Implement automatic translation for ItemListDennisManaa2023-10-231-2/+11
| |
* | Fix storing invalid item height values in `ItemList`coumcashier2023-11-101-4/+4
|/ | | | | | | | The height of the last N items is incorrectly overwritten with the max height of first row (N = number of columns). This happen in the first iteration of the while loop. Moving this code inside if (all_fit) makes sure the last rows height is only updated at the end when max height (max_h) is calculated for the last row.
* Remove the separator from ItemList's thumbnail modeJakub Marcowski2023-09-241-7/+9
|
* Expose force_update_list_sizeGeorge L. Albany2023-09-151-2/+4
| | | | | | Rename ItemList::_check_shape_changed to force_update_list_size `force_update_list_size` is especially useful for updating the auto_height_value early
* Register theme properties with ThemeDBYuri Sizov2023-09-111-27/+24
|
* Fix ItemList not update when icon scale changesHaoyu Qiu2023-09-031-0/+7
|
* Draw separators before selected style boxesChia-Hsiang Cheng2023-08-301-26/+26
|
* ItemList: Clarify distinction between disabled and selected in sending signalsNiels Drost2023-08-171-5/+20
| | | | | | | disabled -> not sending any signal at all (activated, selected, deselected, ...) selected -> only possible when not disabled, and when selectable Fixes #74086.
* Code simplificationsMarkus Sauermann2023-06-211-3/+0
| | | | | | | | | | | | | | | | | | | | CPPcheck found most of them. no need to assign the variable twice: - AnimationTrackEditTypeAudio - SSEffects variable is assigned in all if-else clauses: - EditorHelp - AndroidInputHandler - MenuBar - ShaderCompiler same if clause: - ItemList clearing an empty bitfield has no effect: - Viewport
* [ItemList] Fix item text positions in RTL mode.bruvzg2023-05-201-3/+4
|
* Add `get_item_rect` function to `ItemList`Ninni Pipping2023-05-111-0/+14
|
* Minor bugfixes to `ItemList`Ninni Pipping2023-05-081-7/+1
| | | | | * Removed unused position code in `gui_input` * Ensured `set_fixed_icon_size` updates cached size
* Merge pull request #76199 from needleful/incremental_search_propertyRémi Verschelde2023-04-251-1/+13
|\ | | | | | | Add allow_search property to ItemList and Tree to control incremental search
| * Add allow_search property to ItemList and Treeneedleful2023-04-181-1/+13
| |
* | Add hovered item style to ItemListDavid Giardi2023-04-181-19/+43
|/
* Prevent crash in ItemList when checking for visible itemsYuri Sizov2023-03-161-152/+170
| | | | | Also some light code refactoring to make the drawing logic more manageable. We also store each item's column for more reliable checks.
* ItemList: Check if the index is out bounds before accessing the internal itemsMarius Hanl2023-01-271-6/+8
| | | | | | | | The following keys may lead to the exception described above under certain conditions: - ui_page_up - ui_page_down - ui_left - ui_right
* Cleanup unused engine code v2kobewi2023-01-191-6/+0
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix crash after executing ItemList.set_icon_scaleHaoyu Qiu2022-12-131-0/+1
|
* Remove duplicate project settings definitionskobewi2022-11-081-4/+1
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-2/+2
|
* Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde2022-10-131-9/+9
|\ | | | | | | Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
| * Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M2022-09-241-9/+9
| | | | | | | | check the action exactly.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-7/+7
|/ | | | change warnings=all to use /W4.
* Remove duplicate code in ItemListkobewi2022-09-211-14/+2
|
* Make `Vector2i` values paired with `EDSCALE` be just `Vector2`Michael Alexsander2022-09-081-3/+3
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-3/+3
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-15/+15
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset