1
0
Fork 0
Commit Graph

51 Commits

Author SHA1 Message Date
Thaddeus Crews a20ca7bbfe
Merge pull request #110459 from YeldhamDev/let_the_poor_ints_slide
Allow to use sliders for integers in `EditorSpinSlider`
2025-09-22 13:28:52 -05:00
Thaddeus Crews be421bcdd4
Merge pull request #110250 from YeldhamDev/i_just_cant_keep_focused
Hide `Control` focus when given via mouse input
2025-09-22 13:28:44 -05:00
Michael Alexsander f16ff829f0
Allow to use sliders for integers in `EditorSpinSlider` 2025-09-22 11:23:15 -03:00
Michael Alexsander aeb3a45c97
Hide `Control` focus when given via mouse input 2025-09-19 13:43:29 -03:00
Giganzo 3d6b4f9038 Add suffix to EditorSpinSlider tooltips 2025-07-24 21:51:45 +02:00
A Thousand Ships f11aff3841
Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
kobewi b41d6ecf8c Allow to override editor settings per project 2025-06-02 17:51:26 +02:00
Thaddeus Crews ad40939b6f
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
A Thousand Ships 889410dcda
Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +02:00
Thaddeus Crews 51201cb549
Merge pull request #105041 from lodetrick/editor-spin-slider-consume-input
Fix EditorSpinSlider Scroll Edit when inside a ScrollContainer
2025-04-07 08:43:29 -05:00
Logan Detrick c361e60cfa Fix Grabber Double Scaling when zoomed 2025-04-07 01:05:00 -07:00
Logan Detrick 97651fd4ac Consumes Scroll Events and fixes Mouse Warp 2025-04-04 18:07:47 -07:00
Pāvels Nadtočajevs e47207ad16
Fix updating editor icons on translation change. 2025-03-28 15:04:32 +02:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +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
Pāvels Nadtočajevs b252867145 [macOS/Windows] Add `Emoji & Symbols` context menu item to LineEdit/TextEdit to show system character picker. 2025-01-10 09:25:34 +02:00
bruvzg cc1db569e1 [TextServer] Improve embedded objects handling performance. 2025-01-07 08:01:29 +02:00
A Thousand Ships af56d6e8e8
Use `SceneStringName` in more places 2024-12-02 14:39:16 +01:00
Silc Lizard (Tokage) Renew e283fdfb59 Fix spinner in AnimationTrackEdit in FPS mode 2024-11-17 01:54:06 +09:00
Thaddeus Crews 9374e8da32
Merge pull request #97946 from WhalesState/editor-spin-slider
Fix `EditorSpinSlider` grabber `TextureRect` doesn't follow parent when scrolling.
2024-11-12 09:27:42 -06:00
Mounir Tohami 5862da6f90 Fix `EditorSpinSlider` grapper `TextureRect` doesn't follow parent when scrolling. 2024-10-07 18:34:39 +00:00
passivestar 16f3d52253 Fix EditorSpinSlider blocking viewport from getting focus 2024-09-10 14:44:47 +04:00
matheusmdx 1eacd1fd0e Fix is_inside_tree error when inspecting an Environment resource 2024-09-07 12:45:07 -03:00
Haoyu Qiu 8c5121d445 Remove duplicated read only checks in EditorSpinSlider
Also made read only checks in EditorSpinSlider's implementation to use
`read_only` directly for consistency.
2024-09-06 08:13:46 +08:00
detomon 88f1b679f3 Prevent editing value on focus when `EditorSpinSlider` is read-only 2024-09-05 15:26:09 +02:00
Rémi Verschelde 5a61e10e09
Merge pull request #89265 from davthedev/spinbox-buttons-refactor
Improve SpinBox interaction, split arrows, add theme attributes
2024-08-27 16:54:39 +02:00
David Giardi e371587147 Improve SpinBox interaction, split arrows, add theme attributes 2024-08-23 18:21:20 +02:00
kit d357a7d0f9 Fix EditorSpinSlider when hidden 2024-08-01 12:14:56 -04:00
Rémi Verschelde ef3443ef35
Merge pull request #93165 from passivestar/scenetree-shortcut-focus
Prevent node rename shortcut from stealing focus from controls
2024-07-17 11:42:38 +02:00
passivestar 09f967bc00 Prevent node rename shortcut from stealing focus from controls 2024-07-09 16:29:35 +04:00
A Thousand Ships d519715d94
[Scene] Add `SceneStringNames::font(_size/_color)` 2024-06-18 17:24:27 +02:00
A Thousand Ships cade5b88d9
Use `CoreStringNames::normal` in more places 2024-05-30 22:57:54 +02:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
kit 5fd23730eb Fix editor spin slider RTL and margin 2024-05-02 08:34:46 -04:00
A Thousand Ships 56b05a5a3d
[Editor] Remove redundant code from `EditorSpinSlider` 2024-03-15 15:03:12 +01:00
passivestar 5689dbc209 Allow to abort `SpinSlider` value changes 2024-02-16 07:54:35 +04:00
Rémi Verschelde d584ce0122
Merge pull request #80544 from MewPurPur/buff-editorspinslider-2
Fix read-only EditorSpinSlider display
2024-02-09 18:08:55 +01:00
Yuri Sizov 95b27fe8c7 Reorganize code related to editor theming
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.

Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.

All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
kobewi 0e8f90f4c8 Update deferred calls to use Callables 2024-01-09 16:11:47 +01:00
Yuri Sizov 4f0e2ea86e Merge pull request #80699 from aXu-AP/spin-box-comma-decimals
Allow comma as a decimal separator for SpinBox
2023-09-28 20:04:02 +02:00
Rémi Verschelde 480590ceb2
Merge pull request #81278 from Alex2782/bugfix_EditorSpinSlider_clamp#81272
Fix clamping logic in `EditorSpinSlider`
2023-09-26 08:19:15 +02:00
aXu-AP 4d3dc0e944 Use comma as a decimal separator for SpinBox
Add support for comma ',' as a decimal separator for SpinBox. This implementation allows for expressions like `pow(2, 3)` to be used as well. If you use comma to separate decimals, use semicolon `;` to separate function parameters.
Change EditorSpinSlider behavior to match.
2023-09-21 15:45:37 +03:00
ajreckof 6afadbaa9f Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platform 2023-09-19 10:29:07 +02:00
Alexander Hartmann 053d718154 Fixes the 'CLAMP' problem in the 'EditorSpinSlider' ...
... when arrow keys are pressed up or down.
2023-09-03 20:47:22 +02:00
bruvzg 5453503697
[Text Server] Store extra spacing of individual font variations. 2023-08-24 11:58:12 +03:00
MewPurPur fac939b7c3 Fix read-only EditorSpinSlider display 2023-08-12 15:30:42 +03:00
Markus Sauermann 42402aa7db Fix the distance for grabbing a EditorSpinSlider
Currently moving the mouse for a single pixel is enough to trigger
grabbing, which happens often unintentionally.
2023-06-16 09:39:49 +02:00
Winston Yallow 277e261acf
Add editor setting for spin slider sensibility 2023-04-27 13:45:24 +02:00
Samuele Panzeri b6abb34759 Fix editor spin slider remaining editable if set read_only during an edit and fix related animation player crash 2023-04-22 18:34:36 +02:00
Rémi Verschelde c5d9470c7c
Merge pull request #75765 from YuriSizov/editor-node-optimize-includes
Improve includes of `EditorNode` (and everything else)
2023-04-11 19:40:24 +02:00