74eb2a70bd
Refactor and remove excessive calls of NOTIFICATION_THEME_CHANGED
2022-08-25 14:50:49 -06:00
bb5fa91a6b
Disconnect Control from theme resources to avoid issues on destruction
2022-08-24 18:50:04 +03:00
e561c68256
Add some codes, returnes directly if the value is not changed.
...
Avoid executing the following value-changed logics if the value does not really change.
2022-08-23 23:25:22 +08:00
8be27dc59e
Replace Array return types with TypedArray
2022-08-22 22:42:36 +02:00
1f61d47766
Merge pull request #64339 from YuriSizov/core-multilevel-validate-property
2022-08-22 21:39:48 +02:00
1a24c9e14b
Make _validate_property a multilevel method
2022-08-22 18:35:11 +03:00
e08feee8a6
Replace meta properties with regular properties in Control
2022-08-19 20:52:01 +03:00
2bdd7e9ea0
Add methods for node reparenting
2022-08-16 19:44:41 +02:00
9f88300007
Add dumb theme item cache to Control
2022-08-12 14:36:06 +03:00
d4433ae6d3
Remove Signal connect binds
...
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind().
Changed all uses of it to Callable.bind()
2022-07-29 16:26:13 +02:00
6ca95003a9
Reorganize code of control.cpp for better maintainability
2022-07-26 23:03:49 +03:00
f3d43a384d
simplify alignment preset, fixing icon for full rect
2022-07-20 12:18:33 -05:00
97dfbea6ad
Rename Control PRESET_WIDE to PRESET_FULL_RECT
2022-07-18 20:08:11 -05:00
344ba0ffaf
Refactor Font configuration and import UI, and Font resources.
2022-07-06 14:12:36 +03:00
8d62b736b2
Fix find_next_valid_focus() freeze
2022-07-01 00:25:10 +02:00
d9ede52ded
Fix find_next_valid_focus() freeze
2022-06-30 16:22:40 +02:00
82a56e5c42
Merge pull request #61587 from YuriSizov/control-fix-theme-owner-toplevel
...
Fix theme propagation for children of top level controls and windows
2022-06-27 12:03:36 +02:00
5ad1a1b5e7
enhancement: rename exposed property Control::minimum_size to Control::custom_minimum_size
2022-06-23 18:06:10 +02:00
88589c091b
Improve TileSet editor and add more suffixes
2022-06-20 15:28:19 -05:00
5553e27fe8
Add vector value linking
...
Co-authored-by: redlamp <244062+redlamp@users.noreply.github.com >
2022-06-14 14:58:44 +02:00
4678736a39
Add suffixes to all nodes and resources
2022-06-11 09:41:05 -05:00
08e804b3b7
Fix infinite loop when calling Control.popup_centered_minsize()
...
Co-authored-by: sriramun <sriramun2@gmail.com >
2022-06-09 20:20:53 +02:00
ba273c6c5f
Fix theme propagation for children of top level controls and windows
2022-06-01 04:20:00 +03:00
4ac999cc3f
Update last min size when Control becomes visible
2022-05-22 15:50:13 +08:00
5dc3bfb80e
Use suffixes for units in nodes and resources
2022-05-19 14:34:27 -05:00
5c79782c7e
Merge pull request #61088 from groud/keep_unhandled_events_on_pass
2022-05-17 23:50:55 +02:00
6db8b7616d
Keep input event as unhandled if they go through a control set to MOUSE_FILTER_PASS
2022-05-17 15:41:58 +02:00
fa2b3269ae
Merge pull request #59231 from Sauermann/fix-top-level-identification
2022-05-16 15:10:27 +02:00
20cfe6e229
Simplify anchor metadata
2022-05-09 18:51:13 +02:00
1dc7bcc83c
Cleanup metadata usage
2022-05-06 00:27:10 +02:00
b6e9314564
Merge pull request #59185 from NeilKleistGao/master
2022-05-05 16:41:39 +02:00
f01e1ce1dd
Inlcude CanvasLayer transform into calculation of Control screen position
2022-04-28 00:18:32 +02:00
be611c1c05
Implement Label3D node.
...
Add "generate_mipmap" font import option.
Add some missing features to the Sprite3D.
Move BiDi override code from Control to TextServer.
Add functions to access TextServer font cache textures.
Add MSDF related flags and shader to the standard material.
Change standard material cache to use HashMap instead of Vector.
2022-04-22 12:08:46 +03:00
249d6a4225
Fix how Root Control Node is determined
2022-04-01 13:34:57 +02:00
d8946a7111
Remove metadata _edit_layout_mode and _edit_use_custom_anchors if they have default values
2022-04-01 13:38:32 +08:00
2f20ff0ed6
Extract theme property names for localization
2022-04-01 11:35:22 +08:00
0472839509
Fix Control::warp_mouse to respect canvas transform
2022-03-30 23:18:23 +02:00
7119d355eb
String: Remove TTR and DTR defines in non-tools build
...
This ensures we don't use TTR in runtime code, as it's specifically meant
to source translations for the editor.
2022-03-28 20:26:35 +02:00
0494e024d8
Rename warp mouse functions to warp_mouse
2022-03-27 14:12:01 +02:00
bcf13dc175
Expose methods for screen-space transforms
2022-03-13 16:05:08 +01:00
40c08e522f
Revert "Update mouse cursor shape after changes"
...
This reverts commit 0fce98b4b5 .
2022-03-10 09:43:06 +01:00
0fce98b4b5
Update mouse cursor shape after changes
...
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
2022-03-09 07:54:03 +01:00
507f72db8e
Rename Control's Rect properties to exclude rect_ part
2022-03-08 16:30:35 +00:00
c003ab43c3
Remove custom_* prefixes compatibility
2022-03-05 21:35:10 +01:00
0f5455230c
Use switch consistently in _notification (scene folder)
2022-02-15 18:44:55 +01:00
ddc8ec6b44
Limit inspector updates when dragging anchored controls
2022-02-13 00:19:06 +03:00
107b6f299c
Reorganize inspector layout workflow for Control nodes
2022-02-10 20:29:34 +03:00
73e784de1e
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
2022-02-03 11:59:32 +01:00
3521eecb4c
Exposes gui_release_focus and gui_get_focus_owner to Viewport
2022-02-01 15:07:22 +01:00
e1148cc452
Revert "Fix control node transform animation jitter with pivot offset"
...
This reverts commit dfb7d46a2a .
2022-01-31 13:30:35 +02:00