Commit Graph

273 Commits

Author SHA1 Message Date
StarryWorm bdca8b66e7 Add custom_maximum_size to Control
This property mirrors `custom_minimum_size` and enables the user to set a size the `Control`. Enabling `propagate_maximum_size` forces all children to respect this node's maximum_size.
Not all `Control` types handle this gracefully, which may result in content clipping.
2026-04-07 14:34:12 -04:00
Rémi Verschelde 970f8236b5 Merge pull request #117733 from KoBeWi/autranslator_localized_(i.e._at_location)
Add `_get_tooltip_auto_translate_mode_at()` to Control
2026-03-23 22:36:15 +01:00
kobewi 0d220b35a5 Add _get_tooltip_auto_translate_mode_at() to Control 2026-03-22 17:56:46 +01:00
Pāvels Nadtočajevs 2c2ed8ddb5 [Editor] Generate and display documentation for the properties generated by PropertyListHelper. 2026-03-18 11:26:03 +02:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
jinyangcruise c82b5fe2ec ItemList support center_on_current(). 2026-01-27 00:06:59 +08:00
Michael Alexsander 8e305bb701 Add color theme for scroll hints 2026-01-08 14:10:55 -03:00
Michael Alexsander 2b5c901f3d Fix text in ItemList being cutoff when it shouldn't 2026-01-08 12:05:08 -03:00
Michael Alexsander 872e4da330 Fix incorrect position of icons in ItemList when on top mode 2026-01-07 21:10:53 -03:00
Michael Alexsander f187b8b2bf Enable scroll hints for several parts of the editor 2025-12-09 10:55:26 -03:00
Thaddeus Crews 9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
kobewi f88b51995b Expose FileDialog callbacks for getting custom icons 2025-10-01 12:08:34 +02:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00
Michael Alexsander aeb3a45c97 Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
Pāvels Nadtočajevs 3f757c41fc Update access-kit to 0.17.0 2025-07-29 08:37:01 +03:00
Jordyfel aa77c26636 Fix itemlist text separation 2025-06-09 20:29:20 +03:00
Yufeng Ying 3bf400ffae Move bisect to Span and deduplicate code.
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-05-14 18:19:09 +08:00
BrotherShort a52a7a4a48 Make the position and the size of FileSystem controls more precise 2025-05-11 00:31:49 +08:00
lawnjelly f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
dugramen aebb85a064 ItemList multiselect with shift up & down arrow keys 2025-04-25 21:39:22 -04:00
Pāvels Nadtočajevs b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
Yufeng Ying 7a1a970c25 size() <= 0 and size() < 1. 2025-04-02 19:18:44 +08:00
Pāvels Nadtočajevs 2bbf0f2317 Add properties to configure space trimming on line break. 2025-03-16 16:15:37 +02:00
Thaddeus Crews 113fc5a647 Merge pull request #102648 from bruvzg/el_force
Expose `OVERRUN_ENFORCE_ELLIPSIS` flag to the controls.
2025-03-05 12:07:55 -06:00
havi05 e43756c559 Itemlist - fix text_overrun when using fixed_icon_size 2025-02-10 11:34:45 +01:00
Pāvels Nadtočajevs 912b52a6a5 Expose OVERRUN_ENFORCE_ELLIPSIS flag to the controls. 2025-02-10 08:41:31 +02:00
havi05 2c35077148 Itemlist - fix text_overrun_behavior 2025-01-24 23:48:38 +01:00
Rémi Verschelde 4dbcced69a Merge pull request #100714 from hpvb/fix-100663
Handle changing ItemLists from signals
2025-01-10 23:05:51 +01:00
havi05 a9af65d368 Add HScrollbar to ItemList 2025-01-10 14:59:12 +01:00
HP van Braam 32ef7306f4 Handle changing ItemLists from signals
We make sure we don't touch the ItemList's items array after signals are
emitted as a signal handler might change the item list, causing the
index we had to be invalid.

This fixes #100663
2025-01-05 02:10:28 +01:00
havi05 0ee78a79cf Itemlist - draw focus stylebox after items 2024-12-16 19:49:14 +01:00
havi05 b05111799b ItemList - highlight selected items && draw cursor last 2024-12-14 19:03:43 +01:00
havi05 b29e93bb51 ItemList - Add Toggle mode 2024-12-12 17:33:04 +01:00
Gamemap 84b15a2ea4 ItemList - Fix right padding missing 2024-10-06 17:34:33 +02:00
Gamemap 1e1dbd8e3a Add Auto width behavior to ItemList
Co-authored-by: Craig Hupin <althar93@hotmail.com>
2024-10-04 08:43:13 +02:00
Rémi Verschelde 5314793ac7 Merge pull request #97519 from timothyqiu/itemlist-at
Add auto translate mode for items in `ItemList`
2024-10-03 15:39:23 +02:00
Gamemap 6a9e50b941 Fix ItemList text trimming and autowrap margin 2024-10-01 17:48:41 +02:00
Haoyu Qiu 0101317d46 Add auto translate mode for items in ItemList 2024-09-27 10:52:04 +08:00
Yuri Rubinsky af5fc8354b Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit 2024-07-09 19:38:52 +03:00
A Thousand Ships fbb879debd [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
A Thousand Ships d9e2fc74c7 [Scene] Add SceneStringNames::item_selected 2024-06-19 09:39:05 +02:00
Hilderin 81395cf9bd Fix Huge .tscn Icon and icon in background of File System panel 2024-06-02 09:11:56 -04:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
Gilles Roudière 7705265477 Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-05-10 10:46:04 +02:00
David Giardi f63728cb9f Fix item positioning & pointer detection areas of ItemList 2024-02-27 20:03:10 +01:00
David Giardi c892fd8691 Fix ItemList click detection gaps 2024-02-15 12:16:31 +01:00