Commit Graph

109 Commits

Author SHA1 Message Date
be0c68845e Fix miscellaneous oddities around the class reference (part 6) 2025-11-25 21:20:57 +01:00
ca692bee19 Merge pull request #103672 from dugramen/itemlist-focus-draw-order
Fix ItemList docs for the focus Stylebox's draw order
2025-11-24 16:00:10 -06:00
1e82bafa3a Remove redundant info on the enum types used 2025-06-04 08:21:47 +08:00
7ee96b11de Fix ItemList docs for the focus stylebox's draw order 2025-03-06 11:49:39 -05:00
a9af65d368 Add HScrollbar to ItemList 2025-01-10 14:59:12 +01:00
b05111799b ItemList - highlight selected items && draw cursor last 2024-12-14 19:03:43 +01:00
b29e93bb51 ItemList - Add Toggle mode 2024-12-12 17:33:04 +01:00
eaebb3f864 Fix more miscellaneous oddities around the class reference 2024-11-12 17:44:45 +01:00
1e1dbd8e3a Add Auto width behavior to ItemList
Co-authored-by: Craig Hupin <althar93@hotmail.com>
2024-10-04 08:43:13 +02:00
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
76691afd94 Improve documentation of some ItemList signals 2024-09-27 16:19:40 +08:00
0101317d46 Add auto translate mode for items in ItemList 2024-09-27 10:52:04 +08:00
da916221a7 Merge pull request #88577 from davthedev/itemlist-light-refactor
Fix item positioning, text alignment & unwanted clipping of ItemList items
2024-02-29 13:54:03 +01:00
3fe01226b7 Use black for font outlines by default instead of white
This makes font outlines more usable out of the box, as black
is one of the most commonly used colors for font outlines.
2024-02-28 20:25:15 +01:00
f63728cb9f Fix item positioning & pointer detection areas of ItemList 2024-02-27 20:03:10 +01:00
421e8c5455 Expose force_update_list_size
Rename ItemList::_check_shape_changed to force_update_list_size

`force_update_list_size` is especially useful for updating the auto_height_value early
2023-09-15 13:18:02 -04:00
81064cc239 Doctool: Remove version attribute from XML header
We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).
2023-07-06 10:08:21 +02:00
346f1ab86b Bump version to 4.2-dev
Keep on waitin'
2023-07-05 22:07:03 +02:00
151a4ba6a5 Overhaul the top sections of the class reference (GUI classes) 2023-05-28 14:24:54 +02:00
e5fdce7ca3 Add get_item_rect function to ItemList 2023-05-11 19:01:54 +02:00
ae7872fd02 Merge pull request #76199 from needleful/incremental_search_property
Add allow_search property to ItemList and Tree to control incremental search
2023-04-25 14:44:06 +02:00
142990d60a Add hovered item style to ItemList 2023-04-18 22:52:39 +02:00
9a968088db Add allow_search property to ItemList and Tree 2023-04-18 09:21:18 -07:00
1c1524a651 Bump version to 4.1-dev
Can't stop, won't stop, they said, huh?
2023-03-01 01:44:37 +01:00
fcf54cabba Document MDSF font outlines may require msdf_pixel_range adjustments 2022-12-19 17:17:45 +01:00
c4c9e41073 Make Vector2i values paired with EDSCALE be just Vector2 2022-09-08 14:46:32 -03:00
43f03e2ce6 Improve naming of theme properties throughout GUI code
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
2022-09-06 22:53:17 +03:00
ef942718a0 [doc] Use "param" instead of "code" to refer to parameters (5) 2022-08-15 15:49:48 +03:00
c5d7115038 Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
fe2f62f128 Adjust 2 default theme colors in ItemList and Tree
- Change Tree's drop_position_color from orange to white.
- Change ItemList's guide_color to the same color as Tree's, which fits in with a dark theme better.
2022-08-02 17:48:11 -05:00
344ba0ffaf Refactor Font configuration and import UI, and Font resources. 2022-07-06 14:12:36 +03:00
466bd7ce39 Document incremental search support in ItemList, PopupMenu and Tree 2022-06-17 12:54:09 +02:00
b5c96df277 Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the TextServer. 2022-06-16 16:49:37 +03:00
aef3b5681d Changed signals of ItemList 2022-05-06 13:09:04 +05:30
3073b85de9 Rename theme properties to include underscores
- check_vadjust -> check_v_adjust
- close_h_ofs -> close_h_offset
- close_v_ofs -> close_v_offset
- commentfocus -> comment_focus
- hseparation -> h_separation
- ofs -> offset
- selectedframe -> selected_frame
- state_machine_selectedframe -> state_machine_selected_frame
- table_hseparation -> table_h_separation
- table_vseparation -> table_v_separation
- vseparation -> v_separation
2022-04-23 11:16:18 -05:00
42078dec9f Allow negative indexes in ItemList and PopupMenu 2022-03-12 01:14:03 +01:00
507f72db8e Rename Control's Rect properties to exclude rect_ part 2022-03-08 16:30:35 +00:00
dba0d52349 Fixed bug with text going under scrollbar
added classes reference update
2022-02-25 13:45:38 -08:00
b68dd2e189 Add an XML schema for documentation
This makes it easier to spot syntax errors when editing the
class reference. The schema is referenced locally so validation
can still work offline.

Each class XML's schema conformance is also checked on GitHub Actions.
2022-02-15 00:03:31 +01:00
84a69d7429 Improve the default project theme
The new default project theme uses StyleBoxFlat extensively for
a more modern design and better scalability to multiple resolutions.

SVG icons are now used in place of PNG icons. While this does not
allow for true vector-based icon drawing (icons are still rasterized
at load-time), this makes the design work easier for contributors
and opens the door to vector drawing in the future (e.g. with polygons
or SDFs).

Like for editor icons, the SVG header file is now built automatically
when a SVG file is changed. This removing the need for running
`make_header.py` manually (TODO).

The "Use Hidpi" project setting has been removed in favor of a
"Default Theme Scale" project setting, which allows creating the
default theme at a higher/lower scale than the default.
This can be used when designing GUIs with a high base resolution
to ensure crisp visuals.

Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-19 18:46:01 +03:00
9623fdf141 Merge pull request #56228 from KoBeWi/returns_what
Fix get_v_scroll() desctiption in ItemList
2022-01-04 13:50:37 +01:00
1032c2c434 Merge pull request #55487 from YeldhamDev/scroll_bikeshedding 2022-01-03 14:10:41 +01:00
f97ab4a0e4 Fix get_v_scroll() desctiption in ItemList 2021-12-24 21:10:34 +01:00
6eb7179f1c Rename "items_count" property to "item_count" 2021-12-06 22:02:27 -06:00
b3992f7e6e Make overridden properties link to parent definition
Co-authored-by: Josh DeGraw <joshmdegraw@gmail.com>
2021-12-03 17:47:22 +03:00
397e56964d Sort and group theme properties in docs, improve formatting for theme and enums 2021-12-01 21:02:20 +03:00
ec4f4c6cda Rename all methods that return ScrollBar nodes to get_*_scroll_bar() 2021-11-30 13:46:36 -03:00
a51f92273a Remove ItemList editor and replace it by a property array 2021-10-28 10:16:51 +02:00
07725b611b Add warnings to methods that give access to internal nodes 2021-10-10 22:57:58 +03:00
72e49eadec Fix ItemList layout (+EditorFileDialog) 2021-08-21 00:22:09 +02:00