Commit Graph

38 Commits

Author SHA1 Message Date
Michael Alexsander da5d187ae4 Temporarily remove flow capabilities of the Game view toolbar 2026-04-08 11:47:45 -03: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
Michael Alexsander 2f4e6b9de4 Allow to change the color of canvas selection 2026-03-06 16:13:43 -03:00
Michael Alexsander 27c86165f7 Add View3DController for editor 3D view manipulation 2026-03-05 12:51:48 -03:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Thaddeus Crews bb1e018314 Merge pull request #115119 from Nintorch/joypad-unfocused
Add project setting to ignore joypad events if the app is unfocused
2026-03-04 11:20:39 -06: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 727b06a79f Move ProcessID typedef out of OS
This allows decoupling a number of files from `os.h`.
2026-03-04 15:00:45 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
Nintorch d418d692b9 Project setting to ignore joypads on unfocused app
Co-Authored-By: Christoph Taucher <4498502+chtau@users.noreply.github.com>
2026-03-03 11:03:37 +05:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Max Aller d66c9cfeba Fix game speed UI not resetting when game is restarted
_reset_time_scales() has a visibility guard that was originally needed
to prevent resets on session start. After 4e06e305bf scoped the call to
only run when all sessions end, the guard is unnecessary and prevents
the speed state from being properly reset.

Replace is_visible_in_tree() with an is_inside_tree() guard on the UI
update only, to avoid theme access warnings while still allowing the
state reset when the Game tab is not active.

Also includes a fix to the reset-to-1.0x button, which will now always be
disabled if the speed is already 1.0x.

Fixes #115400.
2026-02-22 18:40:32 -08:00
Michael Alexsander 6862edcede Move RuntimeNodeSelect to its own files 2026-01-29 11:02:25 -03:00
Saulo-de-Souza 0bca218e01 Editor: Remove duplicate 2026-01-28 15:52:23 -03:00
Pāvels Nadtočajevs c3bef1b83f Split EmbeddedProcess::reset to allow stopping timers without full reset. 2026-01-15 11:19:43 +02:00
Michael Alexsander 4e06e305bf Fix speed being reset when it shouldn't in the game editor 2026-01-13 15:00:25 -03:00
arkology 993d28c2cf Fix gray bar of embed game window in Windows 2026-01-11 11:14:07 +03:00
Rémi Verschelde 7552bbf80d Merge pull request #114571 from passivestar/interaction-colors
Improve interaction feedback in modern theme
2026-01-05 11:45:22 +01:00
xuhuisheng 75446fc4d0 Fix switch to GameView when closing game window 2026-01-05 11:09:43 +01:00
passivestar 411c47f87e Improve interaction feedback in modern theme 2026-01-04 00:11:03 +04:00
Rémi Verschelde 5a0026ba6e Merge pull request #112210 from Giganzo/hover-game-speed
Fix hover state for game speed button in game window
2025-12-18 23:31:00 +01:00
ydeltastar a92851c517 Add options to prevent selection of locked or child nodes of selection groups in the Game view 2025-12-12 14:22:48 -03:00
cpl-s-matsuyama 0baa47bb53 Fix crash on quit when settings_changed signal is emitted during exit
Add `is_inside_tree()` guard to `GameView::_editor_or_project_settings_changed()`
to prevent accessing invalid state when the signal is emitted during editor shutdown.

Fixes #113829
2025-12-10 10:41:43 +09:00
Pāvels Nadtočajevs e2b8c9f038 [Editor] Fix missing "+" in the bunch of tooltips. 2025-12-05 10:20:50 +02:00
Rémi Verschelde c7ae694d6b Merge pull request #113300 from LanzaSchneider/fix-focus-grab-warning-macos
MacOS: Fix focus grab warning on macOS when running game in embedded mode.
2025-12-01 11:49:58 +01:00
Rémi Verschelde d1b9e51e12 Merge pull request #113269 from bruvzg/emb_headless
[Editor] Disable embedded mode, if `--headless` is in the main instance argument list.
2025-12-01 11:49:41 +01:00
xuhuisheng 54b738dea4 Fix signal too early causing theme warning 2025-11-29 09:23:42 +08:00
LanzaSchneider fc79b3c115 Fix focus grab warning on macOS when running game in embedded mode. 2025-11-29 09:19:14 +08:00
Pāvels Nadtočajevs bb8537f657 [Editor] Disable embedded mode, if --headless is in the main instance argument list. 2025-11-28 10:48:43 +02:00
Dery Almas bbf65ae72f Wayland: Implement game embedding
This patch introduces a new protocol proxy, which multiplxes Wayland
clients into a single connection, allowing us to redirect calls (e.g.
create toplevel -> create subsurface). Mixed with some state tracking
and emulation, we can embed a full-featured client into the editor.
2025-11-19 21:24:18 +01:00
arkology cb8e592b5e Improve and reduce Game window sizing 2025-11-10 20:48:52 +03:00
Giganzo b326b15f7f Fix hover state for game speed button in game window 2025-10-30 17:33:50 +01:00
Michael Alexsander e06f015f95 Add a new editor theme
Co-authored-by: passivestar <60579014+passivestar@users.noreply.github.com>
2025-10-30 00:31:54 -03:00
DexterFstone 7ddce8ab26 Add game speed controls to the embedded game window 2025-10-05 11:13:15 +05:30
PiCode dd11265c4c Improve suspend button 2025-09-01 14:38:45 +03:00
Giganzo 54ac5cd068 Fix shortcut reset for spatial_editor/tool_select 2025-08-12 10:46:20 +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