Hugo Locurcio
180e5d3028
Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
...
These typedefs don't save much typing compared to the full `Ref<Resource>`
and `Ref<RefCounted>`, yet they sometimes introduce confusion among
new contributors.
2022-05-03 01:43:50 +02:00
Michael Alexsander
deb1342036
Make `TabBar/Container` default their alignments to the left instead of center
2022-03-17 18:12:23 -03:00
Haoyu Qiu
86c76dca12
Make name of editor file dialog filters translatable
2022-03-05 12:32:38 +08:00
Michael Alexsander
a811ebf699
Make `TabContainer` use `TabBar` internally
2022-03-03 21:49:58 -03:00
trollodel
05b56f316d
Remove most EditorNode constructor parameters and fields
2022-02-14 14:16:24 +01:00
Rémi Verschelde
7a7fabe4f6
Merge pull request #57641 from Geometror/compilation-time-improvements-1
2022-02-12 09:46:02 +01:00
Hendrik Brucker
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +01:00
Yuri Sizov
175088db25
Add an explicit way to remove a theme type
2022-02-11 17:57:52 +03:00
Rémi Verschelde
fc076ece3d
Revert "Add missing SNAME macro optimization to all theme methods call"
...
This reverts commit a988fad9a0
.
As discussed in #57725 and clarified in #57788 , `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
2022-02-08 10:17:25 +01:00
jmb462
a988fad9a0
Add missing SNAME macro optimization to all theme methods call
2022-02-06 23:06:11 +01:00
Gilles Roudière
73e784de1e
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
2022-02-03 11:59:32 +01:00
Michael Alexsander
64c4a5b283
Bring `TabBar` to full parity with the `TabContainer` implementation.
2022-01-31 15:35:54 -03:00
Wilson E. Alvarez
3eb5e0ac50
Rename String::is_subsequence_ofi to String::is_subsequence_ofn
2022-01-26 18:03:56 -05:00
Kevin Fischer
a4bac268c9
Addded methods to propagate checks & refactored classes to use new methods.
2022-01-18 19:21:59 -08: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
Michael Alexsander
3764dce409
Add undo/redo capabilities to the theme editor
2021-12-30 00:30:50 -03:00
Yuri Sizov
dc858a8100
Improve user communication in the Add Item Type dialog
2021-12-14 17:00:15 +03:00
Nathan Franke
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
kobewi
841a9ef820
ScrollContainer's scrollbar visibility is now enum
2021-12-07 18:27:12 +01:00
Michael Alexsander
3ff78c34e7
Disable base type changing when no type is selected in the theme editor
2021-12-03 15:03:39 -03:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Yuri Sizov
67cbca341a
Add a flag to EditorResourcePicker to differentiate selection contexts
2021-11-02 14:35:15 +03:00
Michael Alexsander
67acb7de6e
Rename `Tabs` to `TabBar`
2021-10-19 11:37:31 -03:00
Rémi Verschelde
a28f44fa53
Merge pull request #53277 from YeldhamDev/tabs_renaming
2021-10-01 07:52:29 +02:00
Michael Alexsander
663e480f24
Rename some elements of `Tabs`
2021-09-30 20:18:23 -03:00
Lightning_A
c63b18507d
Use range iterators for `Map`
2021-09-30 15:09:12 -06:00
Aaron Franke
fa3a32a2d6
Use Key enum instead of plain integers
2021-08-10 16:26:55 -05:00
Yuri Sizov
b27989ff67
Improve user communications in the theme editor
2021-08-04 18:26:36 +03:00
Yuri Sizov
969ba687ef
Put multiple colons back into translated strings
2021-07-31 20:08:07 +03:00
Rémi Verschelde
92299989bd
Use Ref<T> references as iterators where relevant
...
And const when possible.
2021-07-26 19:27:11 +02:00
Rémi Verschelde
ff0b5f8fa1
Merge pull request #50809 from akien-mga/iterators-const-references
2021-07-25 12:52:58 +02:00
Rémi Verschelde
ac3322b0af
Use const references where possible for List range iterators
2021-07-25 12:22:25 +02:00
luz paz
3564c16cb8
Fix various typos with codespell
...
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-25 11:21:51 +02:00
Aaron Franke
4e6efd1b07
Use C++ iterators for Lists in many situations
2021-07-23 17:38:28 -04:00
Haoyu Qiu
4501df3727
Improve add item type UI in theme editor
2021-07-20 16:56:52 +08: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
Yuri Sizov
4bcdbf1280
Fix focus behavior in the Add Item Type dialog of the Theme editor
2021-07-17 13:20:10 +03:00
Yuri Sizov
d82ec336d9
Fix control picker in the Theme editor
2021-07-16 21:32:58 +03:00
kobewi
f4b361dd15
Add header theme type variations to labels
2021-07-13 15:42:09 +02:00
Rémi Verschelde
b44b277f6f
Merge pull request #50169 from pycbouh/theme-type-variations
2021-07-13 15:13:00 +02:00
Rémi Verschelde
aab6dc301c
Merge pull request #50086 from Geometror/label-improve-layout-options
...
Improvements to Label's layout options
2021-07-13 13:10:42 +02:00
Yuri Sizov
4ee0e6ddf5
Add type variations to Theme
2021-07-13 02:26:28 +03:00
reduz
f4379cbc82
Clean up Tree
...
Fixes some problems introduced by #49917
* Tree used minimum size as a stretch ratio, so it forced a minimum size of 1.
* Minimum size redone, stretch ratio moved to a separate setting
* Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired.
* Added a clip content option for situations where fit to contents does not apply.
* Icon would scroll with the item, making it invislbe if the item is too long.
* Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
2021-07-04 13:13:53 -03:00
Hendrik Brucker
56a8d3f30c
Improvements to Label's layout options
...
- Added options to trim the text in case it overruns
- Added more autowrap modes
- Improved line breaking, which ignores trailing spaces
2021-07-04 16:43:55 +02:00
Gilles Roudière
d7d32ced5b
Implement Tree's internal minimum width calculation
2021-06-28 15:54:31 +02:00
Yuri Sizov
304c9b995b
Fix pinned StyleBox incorrectly reacting to several actions in the new Theme editor
2021-06-20 23:04:56 +03:00
Rémi Verschelde
0943ec632c
ThemeEditor: Fix text_submitted connections after #49258
2021-06-17 13:14:06 +02:00
Yuri Sizov
d0e86c7afc
Overhaul the theme editor and improve user experience
2021-06-14 21:46:30 +03:00
Rémi Verschelde
12e0f10c74
Merge pull request #49227 from pycbouh/editor-theme-freeze-changes
...
Prevent `Theme` resource from emitting changes during bulk operations
2021-06-13 15:44:32 +02:00
Rémi Verschelde
9e328bb5b7
Core: Move DirAccess and FileAccess to `core/io`
...
File handling APIs are typically considered part of I/O, and we did have most
`FileAccess` implementations in `core/io` already.
2021-06-11 14:52:39 +02:00