Commit Graph

59 Commits

Author SHA1 Message Date
Michael Alexsander 89d7b494d7 Add property to auto adjust oversampling with canvas item scale. Apply it to theme preview. 2026-05-25 22:17:59 +03:00
Thaddeus Crews 932e68953f Merge pull request #119711 from arkology/theme-drop
Fix theme preview `+` position after dropping new scene
2026-05-25 11:19:05 -05:00
Michael Alexsander 983ce07e83 Make theme previews scale with the editor 2026-05-25 10:45:55 -03:00
arkology 6bcef2bd6a Fix theme preview + position after dropping new scene 2026-05-24 18:04:38 +03:00
DeeJayLSP 995d280a1e Remove unused loop counter from EditorPropertySizeFlags::setup() 2026-05-05 20:42:31 -03:00
Enzo Novoselic 7b82c0fe01 Remove unnecessary class_db.h includes 2026-05-02 13:08:34 -04:00
Michael Alexsander b0a0113ac3 Remove redraw timer for theme previews 2026-04-23 13:36:54 -03:00
Michael Alexsander 022bbc1042 Fix Theme editor's default preview not having the correct theme 2026-04-09 14:33:44 -03:00
StarryWorm 4ae336740d Add missing resource_*.h includes
Add missing `resource_importer.h` includes
Add missing `resource_loader.h` includes
Add missing `resource_saver.h` includes
2026-03-27 07:03:39 -04:00
风青山 2c7071d3ae Make the resource type's default theme item editable in Theme editor
In most cases, we may only need to modify some properties of the default
resource instead of all. But click the plus icon to override item, it
will use an empty object to override. Allow `EditorResourcePicker` to be
editable, you can use the **Make Unique** option to create a copy and
then edit it.
2026-03-20 08:58:13 +08:00
Rémi Verschelde 005e054245 Remove unused includes in editor with clangd-tidy
Also includes the few changes flagged in `main`.
2026-03-15 20:47:05 +01:00
kobewi 9a0c0bf757 Remove redundant _has_main_screen() overrides 2026-03-13 13:10:09 +01:00
Rémi Verschelde 2759cbdc6c Merge pull request #87081 from timoschwarzer/feature/control-render-transform
Add transform offset to Control nodes
2026-03-06 15:16:43 +01:00
Timo Schwarzer c3d96f262f Add offset transform to Control nodes 2026-03-05 22:55:49 +01:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde f332faf46b Explicitly include core/os/os.h where used 2026-03-04 09:54:10 +01:00
StarryWorm 357fa00a4a rm class_db.h from resource.h 2026-02-27 19:08:29 -05:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Thaddeus Crews 4af7648288 Merge pull request #102992 from Giganzo/anchor-show
Add highlight to used anchor preset in ControlEditorToolbar popup
2026-02-23 11:58:48 -06:00
Giganzo 84bc552487 Add highlight to used anchor/sizing preset in ControlEditorToolbar popup 2026-02-21 12:23:12 +01:00
Rémi Verschelde ad4b910a10 Minimize include dependencies of display_server.h
- Removes `native_menu.h` dependency from `display_server.h`.
  It's now forward-declared in all DisplayServer implementations and should
  be included in the .cpp's.
- Removes some unused `rb_set.h` and `rb_map.h` dependencies, which leads to
  having to include them explicitly in half the scene and editor codebase...
  which shows how much we depend on `display_server.h`.
- Forward-declare `input_event.h`, so now we need only `keyboard.h`.
2026-02-17 19:45:31 +01:00
Danil Alexeev bf6a88045a Theme Editor: Remember split offset between editor sessions 2026-02-05 13:28:07 +03:00
kobewi d6975dac11 Add FilterLineEdit to unify editor filter field navigation 2026-02-03 15:37:20 +01:00
Kazox61 fa2d63e3fe Adds VirtualJoystick 2026-01-29 08:29:12 +01:00
Michael Alexsander 810b377492 Fix not being able to remove empty theme overrides in the editor 2026-01-24 20:52:02 -03:00
Giganzo 876ac8b457 Add inner tab styling to Manage Theme Items dialog 2026-01-17 14:44:04 +01:00
Michael Alexsander b4f14f92e8 Fix and improve the theme editor 2026-01-09 16:45:35 -03:00
Rémi Verschelde 9009a6636c Merge pull request #114366 from KoBeWi/uh
Add EditorDock's own DockSlot enum
2026-01-07 01:41:50 +01:00
Rémi Verschelde 8254d13836 Merge pull request #113630 from YeldhamDev/clip_that_out
Fix properties for container sizing not clipping in the inspector
2026-01-07 01:41:29 +01:00
kobewi 9f96d2199d Add EditorDock's own DockSlot enum 2026-01-02 13:16:23 +01:00
passivestar 3393740d42 Improve the look of inner tabs in modern theme 2025-12-30 06:05:12 +04:00
Pāvels Nadtočajevs 338cfba60a Use ObjectID to store nodes in the editor selection. 2025-12-18 09:16:43 +02:00
Michael Alexsander 4b73e5af24 Fix properties for container sizing not clipping in the inspector 2025-12-05 11:26:14 -03:00
Giganzo c01711ca16 Fix property height in the inspector for control layout 2025-12-05 00:06:24 +01:00
Rémi Verschelde 8437869434 Merge pull request #112615 from YeldhamDev/inspector_props_size_fix
Fix issues with property height in the inspector
2025-12-04 15:52:40 +01:00
Rémi Verschelde 11ffcb3ef7 Merge pull request #113108 from KoBeWi/Thock
Change Theme to EditorDock and add `closable` property
2025-12-03 09:49:31 +01:00
Pāvels Nadtočajevs 1bcc499d9a Use EditorSpinSlider in the theme editor. 2025-12-02 19:02:01 +02:00
kobewi 2de97cafb7 Change Theme to EditorDock and add closable property 2025-12-02 16:27:36 +01:00
Michael Alexsander 034942557e Fix issues with property height in the inspector 2025-12-01 23:14:33 -03:00
风青山 81f727b6dd Fix the returned controls of EditorHelpBitTooltip::show_tooltip() were not freed in ScriptTextEditor
The returned control is an orphan node, which is to make the standard tooltip invisible.
2025-11-23 23:31:59 +08:00
kobewi 67735cf213 Make bottom panel into available dock slot 2025-11-21 18:52:13 +01:00
Malcolm Anderson a48353b1c6 Stop drawing of MarginContainer margins if not in tree
Use `is_visible_in_tree()` as per KoBeWi's suggestion
2025-11-13 16:35:13 -08:00
Thaddeus Crews ac8991c3c3 Merge pull request #109237 from arkology/theme-editor-ui
`ThemeEditor`: Reorganize/fix UI to make it fit in editor (at its minimum size in single-window mode) better
2025-11-10 08:20:09 -06:00
Thaddeus Crews e6768b5db4 Merge pull request #111095 from Meorge/feat/margincontainer-viz
Visualize MarginContainer margins when selected
2025-10-14 10:31:24 -05:00
Thaddeus Crews 2568505535 Merge pull request #108065 from lodetrick/range-hint-cleanup
Clean up numeric EditorProperty `setup()` methods
2025-10-13 19:28:34 -05:00
Logan Detrick 7998b5e8d2 Cleanup EditorProperty setup methods 2025-10-08 15:52:46 -07:00
Malcolm Anderson 36c7bbb47a Visualize MarginContainer margins when selected
This time as an EditorPlugin!

Improve rendering of inner area of MarginContainer

Decrease thickness and opacity of lines, and render margins as a rectangle rather than lines extending to the edges of the bounding box

Apply suggestions from code review

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>

Use `get_margin_size`, change color of viz border, and trigger redraw on MarginContainer's draw signal
2025-10-03 11:42:05 -07:00
A Thousand Ships bd65cfa876 Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
2025-09-25 13:48:53 +02:00
Lukas Tenbrink 8ef4a43ada Replace many uses of is_class with derives_from. 2025-09-23 19:59:00 +02:00