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
Rémi Verschelde
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
kobewi
7d44bb8f06
Remove set_as_minsize()
2022-03-06 00:57:42 +01:00
Hugo Locurcio
a06f82ca4d
Add optional constructor arguments to more Control nodes
...
This can be used to make editor code more compact.
However, as of writing, these constructor arguments cannot be used
from the scripting API.
This was already provided for Label and CheckBox, but it was missing
for other Control nodes where it made sense to provide a default value.
2022-03-04 09:48:41 +01:00
Rémi Verschelde
0f5455230c
Use `switch` consistently in `_notification` (`scene` folder)
2022-02-15 18:44:55 +01: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
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
Nathan Franke
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
Yuri Roubinsky
8be89357ce
Fix `ColorPicker` inverted input on color circle
2021-11-17 20:33:17 +03:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Rémi Verschelde
5ae569560d
Fix missing argument names in bindings
...
While at it, tweak some boolean setters to use `p_enabled` for the bool.
Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-09 00:20:10 +02:00
Yuri Sizov
bdbb7b3999
Remove EDSCALE dependency from /scene/gui
2021-10-04 15:25:08 +03:00
Rémi Verschelde
32ab77ef8f
Merge pull request #52430 from AnilBK/vector2-replacements
2021-09-24 13:04:42 +02:00
Anilforextra
cc51b045da
Construct values only when necessary.
2021-09-23 22:26:07 +05:45
Rémi Verschelde
b334560f05
Merge pull request #49376 from menip/OptionButtonFix
2021-09-17 16:00:42 +02:00
Anilforextra
a1f616dcfc
Use builtin Vector2 functions for calculation of angles.
...
.
2021-09-07 08:30:26 +05:45
menip
4f4c9a5f57
Make Color Picker, Menu Button, Option Button consider camera position scale for popup position.
2021-08-30 08:42:33 -07:00
kobewi
a913ae8d56
Add support for internal nodes
2021-08-28 02:07:23 +02:00
JFonS
c334989e00
Merge pull request #51821 from Calinou/builtin-shaders-add-comments
...
Add comments at the top of each built-in shader to ease debugging
2021-08-25 11:37:57 +02:00
Hugo Locurcio
a139e58f8c
Add comments at the top of each built-in shader to ease debugging
...
When a shader error is printed about a built-in shader, the origin
of the shader will now be recognizable immediately by looking at
the top of the printed shader code.
2021-08-18 03:09:22 +02:00
Hendrik Brucker
ff9901f51e
Reimplement ColorPicker presets
2021-08-18 02:09:48 +02:00
Rémi Verschelde
394191c02f
Merge pull request #50605 from Calinou/tweak-shader-code-style
...
Use C++11 raw literals for shader code to improve readability
2021-07-20 10:05:13 +02:00
Hugo Locurcio
abc38b8d66
Use C++11 raw literals for shader code to improve readability
...
In files that have lots of branching, `\t` was replaced with a
tab character instead.
2021-07-19 08:19:50 +02: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
reduz
a3fb76cd45
Create many types of popups on demand
...
* LineEdit popups created on demand.
* TextEdit popups created on demand.
* SpinSlider popups created on demand.
* ResourcePicker popups created on demand.
Improves editor responsiveness.
2021-07-17 10:57:14 -03:00
Francois Belair
94a464f555
Add cache to color picker for presets
...
This prevents loading from the project metadata more than once,
significantly saving performance with nodes that have color pickers.
2021-07-07 14:17:44 -04:00
Lightning_A
e28fd07b2b
Rename `instance()`->`instantiate()` when it's a verb
2021-06-19 20:49:18 -06:00
Gregory Basile
8ab13f8ace
Documentation search fixes
...
Updates rich_text_label so that the built-in documentation can be searched
Previously, it would only find the first result and would not select other results
Renames "_entered" functions to "_submitted"
2021-06-16 09:43:34 -07:00
Joosep Jääger
16567321ba
Added constants PI, TAU and E to the shader language
2021-05-25 12:15:08 +03:00
kobewi
877dbda209
Create ColorPicker shaders statically
2021-05-17 11:39:20 +02:00
Hugo Locurcio
1e063595c3
Implement reverting to the old color when clicking it in ColorPicker
2021-05-10 18:13:33 +02:00
Hugo Locurcio
9e1bfe2e9e
Display the old color in ColorPicker for easier comparison
...
This only affects ColorPickerButton nodes that spawn a ColorPicker,
not standalone ColorPickers.
This partially addresses #7366 .
2021-05-06 03:08:05 +02:00
Rémi Verschelde
8b6e3d6375
Merge pull request #46340 from gongpha/various-color-picker
...
Add Various ColorPicker shapes
2021-04-10 13:29:50 +02:00
Kongfa Waroros
ce126d4b79
Fix ColorPicker's RGB bars are show in RAW mode and other
2021-04-07 18:39:37 +07:00
Kongfa Waroros
6294507acb
Add Various ColorPicker shapes
2021-04-06 22:48:03 +07:00
Kevin Smith
a7d12920f2
Make ColorPicker button text and tooltips appear in exported projects
2021-04-01 11:06:24 -04:00
Marcel Admiraal
fd30c36985
Rename Texture.get_data() to get_image()
2021-03-28 13:00:46 +01:00
Aaron Franke
10d7fccb54
Rename ButtonList enum and members to MouseButton
2021-03-23 07:13:23 -04:00
Kongfa Waroros
d295d53b4a
Add interpolation bar on each channel in ColorPicker
2021-03-09 14:58:19 +07:00
Kongfa Waroros
27749711b2
Keep Hue value when Saturation or Value is zero
2021-02-19 23:53:00 +07:00
Kongfa Waroros
7c6646c8ac
Avoid signal methods in ColorPicker to access the tree when it isn't in the tree
2021-02-18 20:30:22 +07:00
Rafał Mikrut
7961a1dea3
Initialize class variables with default values in scene/ [2/2]
2021-02-09 18:24:36 +01:00
Kanabenki
03d4ebf129
Update ColorPicker controls when entering tree
2021-02-08 19:25:50 +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
5b937d493f
Rename empty() to is_empty()
2020-12-28 10:39:56 +00:00
Marcel Admiraal
4b8b803931
Rename Control margin to offset
2020-12-23 06:25:56 +00:00
Rémi Verschelde
9a8e123593
Fix connections to CanvasItem and Tabs signals
...
Follow-up to #44188 and #44189 .
2020-12-09 12:04:02 +01:00
Duroxxigar
b687ace7f9
Renamed toplevel to be top_level
2020-10-01 03:17:33 -04:00
Yuri Roubinsky
993ae871c7
Fix ColorPickerButton to apply changes after picker popup closed
2020-09-09 21:38:29 +03:00