Commit graph

507 commits

Author SHA1 Message Date
kleonc
03bc116f6d Show enum property invalid value in inspector 2025-02-12 14:31:56 +01:00
Thaddeus Crews
b934413657
Merge pull request #102518 from Giganzo/rectN-slider
Hide EditorSpinSlider slider for Rect2i
2025-02-07 14:50:36 -06:00
Giganzo
2a655acd5b Hide EditorSpinSlider slider for Rect2i 2025-02-07 03:37:57 +01:00
Giganzo
d53dbaf81a Hide EditorSpinSlider slider for VectorNI 2025-02-05 23:27:33 +01:00
Hugo Locurcio
57700b0563
Make EditorSpinSlider display a slider for floats with a step of 1.0
Integers still don't display a slider (and use up/down arrows instead),
so that they can be quickly distinguished from floats in the inspector.

However, this now makes floats with a step of 1.0 look different
from integers in the inspector.
2025-01-22 23:03:01 +01:00
Lars Pettersson
3376ba6688
Don't instantiate ColorPicker in EditorPropertyColor constructor 2025-01-21 00:16:07 +01:00
Michael Alexsander
753900188a
Make Inspector search inside sub-resources 2025-01-06 12:30:55 -03:00
Yufeng Ying
f241c1fda0 Remove unused header in editor.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:38 +08:00
Lukas Tenbrink
b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01:00
Hugo Locurcio
e4106f8d61 Show String properties' text in a tooltip in the inspector
This allows previewing single-line or multipline strings
that are too long too fit within the box in the inspector.
2024-12-04 01:24:14 +01:00
A Thousand Ships
af56d6e8e8
Use SceneStringName in more places 2024-12-02 14:39:16 +01:00
Rémi Verschelde
8d3fc48abf
Merge pull request #97521 from pafuent/enhance_scroll_container_focus
Add a focus border on `ScrollContainer`
2024-11-29 22:46:09 +01:00
Thaddeus Crews
0ee60dd543
Merge pull request #99516 from KoBeWi/quantum_entanglement_of_source_files
Untangle ColorPicker includes
2024-11-26 13:04:54 -06:00
Thaddeus Crews
185a86a87d
Merge pull request #98567 from ydeltastar/remote-pick
Fix `ColorPicker`'s remote synchronization when typing values
2024-11-26 13:04:42 -06:00
Pablo Andres Fuente
86ea0127a3 Add a focus border on ScrollContainer
Also added new unit tests for `Control`.

Co-authored-by: ator-dev <dominic.codedeveloper@gmail.com>
2024-11-23 23:54:38 -03:00
kobewi
289e548e34 Untangle ColorPicker includes 2024-11-22 21:42:50 +01:00
kobewi
7fa39c0dbe Fix global paths in EditorPropertyPath 2024-11-18 12:25:48 +01:00
kobewi
5be53c36c0 Simplify some UID conversions 2024-11-14 23:22:59 +01:00
Thaddeus Crews
ec6a1c0e79
Merge pull request #97912 from reduz/property-path-store-uid
Expose path properties save UID internally if referencing a resource
2024-11-11 14:18:41 -06:00
Thaddeus Crews
696ca9db3c
Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
Thaddeus Crews
b7a0971ad2
Merge pull request #97934 from adamscott/give-AThousandShips-a-break
[Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
2024-10-29 19:25:36 -05:00
Aaron Franke
562c666e3d
Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
yds
893ce62967 Fix ColorPicker's remote synchronization when typing values 2024-10-26 18:41:16 -03:00
Thaddeus Crews
cd3c86d604
Merge pull request #90047 from ajreckof/fix-editing-exported-nodes-in-array-as-text
Fix editing exported nodes in array as text.
2024-10-25 13:04:00 -05:00
Adam Scott
0d350e7108
Set clang-format RemoveSemicolon rule to true
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 -04:00
bjornmp
06998a3927 Enforce that custom nodes keep their original type
Enforce that custom nodes and resources created via the "Create New Node" dialog, should permanently retain their original type (script). This means:

- Type continuity: It should be impossible for the user to (accidentally) clear the original script of a custom node that was created via the "Create New Node" dialog.

- Extensibility: The user should be able to extend custom types as usual (create a script that inherits the original type and replace the original script of that node with his own). However, if he then clears his extension-script from that node later on, the custom type should revert to its original script instead of becoming a non-scripted type.
2024-10-22 18:18:16 +02:00
Juan
db25c8fce1 Exposed path properties save UID if referencing a resource
Currently, if a user or some resource exposes a path in a script,
if this references a resource path it will be saved as a full path.

This will make refactoring not work if the resource pointed towards
changes location or is renamed.

This change makes it so an uid:// path is saved internally in case
a path to a resource has been selected, effectively making it refactor proof.
2024-10-07 15:33:37 +02:00
Rémi Verschelde
def5a04d06
Merge pull request #97543 from KoBeWi/to_edit_or_not_to_edit
Fix closing Theme Editor not actually closing it
2024-10-04 22:43:41 +02:00
Rémi Verschelde
b08a3d8978
Merge pull request #95149 from KoBeWi/inspector_mains
Don't fold resources when child of main inspector exits
2024-10-04 22:43:08 +02:00
Rémi Verschelde
60708ccbfe
Merge pull request #96542 from Maran23/inspector-scrolls-away
Fix Inspector may scroll away when editing a property that adds or removes sub properties
2024-10-01 17:30:45 +02:00
kobewi
66d2b0fc6a Fix closing Theme Editor not actually closing it 2024-09-27 17:08:20 +02:00
A Thousand Ships
7d8684fdb5
[Editor] Merge duplicate entries in enum property inspector
This helps with confusion over how selecting a key with a duplicate
value won't be selected as only the first entry with a particular value will
be selected.
2024-09-12 16:05:11 +02:00
Rémi Verschelde
b0328993e6
Merge pull request #87674 from WhalesState/line-edit
Prevent `LineEdit` focus loss when text is submitted or rejected and allow selecting without editing with arrow keys.
2024-09-11 12:34:31 +02:00
Mounir Tohami
c36f466a4c Prevent LineEdit from losing focus when text is submitted or rejected. 2024-09-10 13:43:31 +00:00
Rémi Verschelde
a0823ce5fe
Merge pull request #96620 from ajreckof/fix-clear-button-on-Array-Node]
Fix clear button on `Array[Node]`.
2024-09-09 17:51:46 +02:00
ajreckof
dee0453b57 fix clear button on Array[Node] 2024-09-06 13:39:25 +02:00
Thaddeus Crews
9853a69144
Implement typed dictionaries 2024-09-04 10:27:26 -05:00
Marius Hanl
27b7b433e0 Fix Inspector may scrolls away when editing a property that adds or removes sub properties 2024-09-04 01:20:11 +02:00
kobewi
065dd099dd Remove empty bind_methods() 2024-08-15 08:24:32 +02:00
kobewi
5cf9afb0c0 Don't fold resources when child of main inspector exits 2024-08-04 22:31:10 +02:00
A Thousand Ships
fbb879debd
[Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
A Thousand Ships
ca18a06ecb
[Scene] Add SceneStringNames::confirmed 2024-06-19 09:40:54 +02:00
A Thousand Ships
d9e2fc74c7
[Scene] Add SceneStringNames::item_selected 2024-06-19 09:39:05 +02:00
A Thousand Ships
d519715d94
[Scene] Add SceneStringNames::font(_size/_color) 2024-06-18 17:24:27 +02:00
A Thousand Ships
755a0efbb6
[Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
kobewi
6479b5673f Remove unused base_hint from EditorPropertyNodePath 2024-05-29 13:18:19 +02:00
A Thousand Ships
4ed62665a2
Replace .bind(...).call_deferred() with .call_deferred(...) 2024-05-27 13:29:57 +02:00
Michael Alexsander
e1798f4278
Fix unchecking theme overrides not creating an undo action 2024-05-22 21:24:31 -03:00
A Thousand Ships
ee79386f7b
[Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
kobewi
413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00