26 Commits

Author SHA1 Message Date
Layla
99ed8d97b2 fallback to shortcut without modifier if the shortcut doesn't exist with modifier (allows things like tool switching while modifier is down) (#3653) 2025-12-22 08:32:18 +00:00
Carson Kompon
551e10f8ee Make sure UI/Panel Eyedropper Tool works with recent GameEditorSession changes (#3637) 2025-12-19 08:04:55 -05:00
DrakeFruit
3fd6045762 fix prefabs not being added to vmap references 2025-12-17 20:19:27 +00:00
Carson Kompon
57b5efb655 Only download packages from the current project when opening in the Editor (#3619)
- Only download packages from the current project when opening in the editor
- Make sure to download packages referenced within any libraries in the current project
2025-12-17 09:59:28 -05:00
Matt
6d96831e2d Reset Game.IsPaused when the scene is stopped.
Tint pause button blue when the game is paused.
2025-12-12 13:40:02 +00:00
Lorenz Junglas
91f8fcf183 Speed up / parallelize tests (#3587)
- Added Sandbox.Test.Unit project (contains independent tests that can run in parallel) 
- Modify some slow/stress tests (e.g. instead of doing a million iterations settle for 10k).

Tests run almost twice as fast now.
2025-12-10 14:23:00 +01:00
Layla
4bcacf00f2 Mapping editor tool (#3434) 2025-12-06 21:00:36 +00:00
Patrick Jr.
18ec2c5b55 Fix: Properly destroy Scene in MapWorld to prevent memory leak 2025-12-05 12:40:46 +00:00
Sam Pavlovic
db6ca66000 Update swapchain from native method instead of recreating it when video changed (#3562)
Recreating it works fine on Intel GPU, no issues on validation but didnt work on other cards, there is a better way to do this from native without dangling around

Fixes https://github.com/Facepunch/sbox-issues/issues/9675
2025-12-05 09:37:12 -03:00
766974616c79
9a205bce37 Fix clamped does nothing 2025-12-04 10:23:12 +00:00
Lorenz Junglas
1e0fca7f55 Add screenshot_highres con command (#3546) 2025-12-04 09:01:23 +00:00
Sam Pavlovic
ab81dd2357 Make MSAA setting work on editor SceneRenderingWidgets (#3539)
* Make MSAA setting work on editor SceneRenderingWidgets

MSAA settings never worked with editor viewport, only on game tab, now with playmode it always takes highest MSAA value from hardware regardless of what

Two things from this PR:
* Pass current engine MSAA setting when creating SceneRenderingWidget swapchain
* Add callback when video settings are changed, recreate swapchain when so

Replicates fine for all SceneRenderingWidgets, applies instantly

https://files.facepunch.com/sampavlovic/1b0311b1/sbox-dev_bjEMrrYe71.mp4

* Push RenderMultisampleType_t nMSAAAmount on interop
2025-12-03 16:41:38 -03:00
Sol Williams
f19a719ece Save/Save As tweaks (#3495)
* Fix default %project%/Assets/ location when saving prefabs + scenes
* Display error message box if it's not a valid assets location
* Tweak "File > Save" enabled conditions to match if they'll do something
2025-12-03 14:57:44 +00:00
Sol Williams
cd82c815fa Fix engine transient search path prio too high in editor, skip in menu project (#3533) 2025-12-03 14:52:41 +00:00
Conna Wiles
3efe8ef209 Implement Game.IsClosing (#3538) 2025-12-03 10:35:16 +00:00
Tony Ferguson
cd491677a0 SceneEditorSession: stop setting window icon on frame, do it when we edit the editor title which is already in sync (#3529)
Tentatively resolves Facepunch/sbox-issues#9659
2025-12-02 10:24:04 +00:00
Lorenz Junglas
59369163fc Engine swapchain validation error fixes (#3525)
* Don't DrawInitialWindowImage in ToolsMode

* Remove UpdateWindowSize call during editor startup
2025-12-01 20:10:19 +00:00
sboxbot
95a575e1c4 Fix "QMenu was null when calling clear" error (#3516)
Co-authored-by: trende2001 <68961063+trende2001@users.noreply.github.com>
2025-12-01 02:28:13 -08:00
sboxbot
a6fdc48ecd Add min and max zoom to GraphicsView (#3511)
Co-authored-by: HaydenPrice <haydenwprice95@gmail.com>
2025-12-01 06:53:05 +00:00
sboxbot
b2b8612055 Min length library (#3509)
Co-authored-by: 766974616c79 <100430077+766974616c79@users.noreply.github.com>
2025-11-30 19:16:55 +00:00
Sol Williams
4abac08bff AssetList: fix label clipping, use proper text eliding (#3480) 2025-11-28 12:49:09 +00:00
sboxbot
83df9b8f3a Display s&box version in editor (#3483)
* display application version in log on editor startup

* show version in editor about popup

---------

Co-authored-by: nixx quality <nixx@is-fantabulo.us>
2025-11-28 09:40:05 +01:00
Carson Kompon
2d90d6bf55 Opening a scene/prefab no longer opens a new tab if one already exists. It will focus the existing tab like it did before (#3479)
https://files.facepunch.com/CarsonKompon/2025/November/27_09-14-PalevioletredMarten.mp4
2025-11-27 12:26:41 -05:00
Sol Williams
b3243e89b3 SceneRenderingWidget: still do Scene.PreRender without a camera in the scene (#3456)
Fixes Facepunch/sbox-issues#9567
2025-11-26 16:13:11 +00:00
Sol Williams
80aa601771 Restore separate GameEditorSessions (#3453)
* SceneEditorSession: make game vs editor scenes more distinct, Scene is whichever is currently active

* Route prefab update, model reload etc events to both scenes if needed

* SceneTree update checking a bit cleaner

* Bring back GameEditorSessions instead, so undo, selection etc can all be linked 1:1 with scenes again

* tweak and tidy
2025-11-26 16:05:23 +00:00
s&box team
71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00