Rindbee
44e32ba75c
Fix font_size not working in TabContainer
2022-04-25 23:22:59 +08:00
FireForge
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
Bastiaan Olij
9b7b9de0e5
Add action map editor for OpenXR
2022-04-04 18:43:29 +10:00
Michael Alexsander
b8ce726dd0
Small fixes for `TabContainer`
2022-03-31 16:43:09 -03:00
Michael Alexsander
94b8f38de2
Add visual marker when dragging and dropping tabs
2022-03-21 22:16:29 -03:00
Rémi Verschelde
45fa14e1ae
Merge pull request #58850 from YeldhamDev/more_tab_regressions
2022-03-08 14:28:39 +01:00
Paweł Fertyk
5381a27f79
Fix crash with all_tabs_in_front
...
Fixes #58790 .
2022-03-08 00:19:21 +01:00
Michael Alexsander
c0381594c3
Fix regressions with nameless and icon-only tabs
2022-03-06 22:17:35 -03:00
kobewi
b3864db7e0
Change tabs_rearrange_group to property
2022-03-05 21:03:01 +01:00
Michael Alexsander
ebf630441f
Fix renaming `TabContainer` children not updating tab names when outside the tree
2022-03-04 18:26:08 -03:00
Michael Alexsander
a811ebf699
Make `TabContainer` use `TabBar` internally
2022-03-03 21:49:58 -03:00
Rémi Verschelde
0f5455230c
Use `switch` consistently in `_notification` (`scene` folder)
2022-02-15 18:44:55 +01:00
Yuri Sizov
107b6f299c
Reorganize inspector layout workflow for Control nodes
2022-02-10 20:29:34 +03:00
jmb462
1ce81dc5f2
Add missing SNAME macro optimization in some function calls
2022-02-06 15:54:04 +01:00
Rémi Verschelde
8eb1d20346
Merge pull request #56206 from KoBeWi/random_call_deferred_to_the_rescue_once_again
2022-01-05 10:57:53 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
kobewi
a7a41a3431
Fix TabContainer not setting layout immediately
2021-12-23 23:47:27 +01:00
Nathan Franke
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
Nathan Franke
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
kobewi
ea7cc1dea9
Rename minimum_size_changed() method
2021-12-06 14:02:34 +01:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Rémi Verschelde
9293c76636
Merge pull request #53049 from AnilBK/dont-construct-2
2021-09-25 12:26:08 +02:00
Anilforextra
cdd912c48e
Construct values only when necessary.
2021-09-25 14:46:45 +05:45
Michael Alexsander
7ce02b642e
Expose `TabContainer`'s tab hidding for scripts
2021-09-24 01:26:59 -03:00
Matthew Newall
02cbf94022
Removed unused Ref<Font> font variables
2021-09-09 19:47:16 +00:00
Gilles Roudière
88c3e3180a
Merge pull request #52050 from nobuyukinyuu/bind-get-tab-idx-at-point-40
...
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-09-07 11:09:35 +02:00
kleonc
3311a5b593
TabContainer Fix drawing current tab when it's disabled
2021-09-01 03:59:45 +02:00
nobuyuki_nyuu
65d83cc99b
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-08-29 09:10:44 -05:00
kobewi
a913ae8d56
Add support for internal nodes
2021-08-28 02:07:23 +02:00
reduz
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.
Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
kleonc
fd483c729f
TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-04 21:13:10 +02:00
kleonc
a5a4532378
TabContainer Fix moving dropped tab at incorrect child index
2021-08-02 14:15:51 +02:00
Michael Alexsander
94a64d557e
Add `auto_translate` toggle for automatic translation
2021-07-29 18:30:34 -03:00
reduz
6631f66c2a
Optimize StringName usage
...
* Added a new macro SNAME() that constructs and caches a local stringname.
* Subsequent usages use the cached version.
* Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time.
* Replaced all theme usages by this new macro.
* Replace all signal emission usages by this new macro.
* Replace all call_deferred usages by this new macro.
This is part of ongoing work to optimize GUI and the editor.
2021-07-18 21:20:02 -03:00
Lightning_A
e28fd07b2b
Rename `instance()`->`instantiate()` when it's a verb
2021-06-19 20:49:18 -06:00
besh81
e7e7aa7d12
Fixed bug in tab_container with hidden tabs
...
Fix a bug that occour when there are hidden tabs in tab_container.
The visualization isn't correct due to missing values in tab_widths array.
2021-05-07 13:01:27 +02:00
Rafał Mikrut
504bc5cc67
Fix crashes in *_input functions
2021-04-05 08:52:21 +02:00
Aaron Franke
10d7fccb54
Rename ButtonList enum and members to MouseButton
2021-03-23 07:13:23 -04:00
Rémi Verschelde
888051889e
Merge pull request #46674 from cmd410/fix-tab-container
...
Fix TabContainer _get_tab_width for localized node names
2021-03-17 21:05:20 +01:00
Yuri Sizov
0c41411fe8
Fix stale tab names in TabContainer
2021-03-14 22:54:46 +03:00
Crystal Melting Dot
89baf02fb6
Fix TabContainer _get_tab_width
...
Now it translates node name before calculating tab width
2021-03-04 22:10:28 +03:00
bruvzg
d78336c65e
[CTL] Add missing font outline drawing routines and theme constants.
2021-02-14 14:11:44 +02:00
reduz
1aa2823fa3
Removed _change_notify
...
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap.
-For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed()
-Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10 19:31:24 -03:00
Rafał Mikrut
7961a1dea3
Initialize class variables with default values in scene/ [2/2]
2021-02-09 18:24:36 +01:00
Marcel Admiraal
8eb39f4e8b
Change themes *_color_* to *_*_color
...
Changed:
font_color_accel -> font_accelerator_color
font_color_bg -> font_unselected_color
font_color_disabled -> font_disabled_color
font_color_fg -> font_selected_color
font_color_hover -> font_hover_color
font_color_hover_pressed -> font_hover_pressed_color
font_color_pressed -> font_pressed_color
font_color_readonly -> font_readonly_color
font_color_selected -> font_selected_color
font_color_shadow -> font_shadow_color
font_color_uneditable -> font_uneditable_color
icon_color_disabled -> icon_disabled_color
icon_color_hover -> icon_hover_color
icon_color_hover_pressed -> icon_hover_pressed_color
icon_color_normal -> icon_normal_color
icon_color_pressed -> icon_pressed_color
Also includes:
font_outline_modulate -> font_outline_color
tab_fg -> tab_selected
tab_bg -> tab_unselected
2021-01-24 06:28:49 +00:00
Rafał Mikrut
56734f44e5
Fix errors when removing non Control node from TabContainer
2021-01-12 10:48:18 +01:00
Rémi Verschelde
b5334d14f7
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
2021-01-01 20:19:21 +01:00
Marcel Admiraal
4b8b803931
Rename Control margin to offset
2020-12-23 06:25:56 +00:00
gongpha
0394ff3c99
Refresh TextLine buffer when moving tab
2020-12-13 02:38:53 +07:00
volzhs
814f9015f8
Add option to draw all tabs in front
2020-12-10 07:47:10 +09:00