13 Commits

Author SHA1 Message Date
boxrocket
fd13dd19bc BaseFileSystem.FileExists returns false instead of exception on null/empty path 2026-07-30 13:56:17 +01:00
Garry Newman
d95169d8fa Unit Test Cleanup (#5064)
* Move all unit tests to Engine/Tests
* Fix Margin.EdgeSubtract
* Fix Capsule.Contains
* EnvironmentVariables.Remove if it's null
* Fixed ray trace never returning startedsolid
* Fix HistoryList.Navigate on empty list
* Fix GameObject.WorldPosition accepting NaNs
* Fix flex: initial expanding to the wrong grow/shrink
* Translation.TryConvert shouldn't throw on invalid enum strings
* Skip sound file tests on machines with no audio device
2026-06-12 13:23:50 +01:00
joshuascript
a538efb0ac Fix BaseFileSystem's GetRelativePath casting ToLowerInvariant on path through Zio internally 2026-06-08 11:39:03 +01:00
joshuascript
3bf526d504 Resolve SubFileSystem paths case-insensitively 2026-06-08 11:39:03 +01:00
joshuascript
77a692a799 Update Zio to latest version 0.23.0 2026-06-08 11:39:03 +01:00
Garry Newman
d27c236689 UI additions and optimizations (#4968)
ADDED
css min(), max() and clamp() for lengths
css-wide keywords inherit, initial, unset, revert (incl. shorthands)
added currentColor keyword to css
colors can parse oklch(), lab() and hwb()
added css text-align: justify
css white-space: pre-wrap and break-spaces
added css word-break: break-word
parses css image-rendering: crisp-edges (point sampling)
added css inset shorthand
now parses 1–4 values in the css border-width shorthand
added css transition-duration, -delay, -property and -timing-function longhands
css :has() now supports descendant selectors
added css opacity percentages
added css overflow: auto (maps to scroll)
added css gap: normal
added css filter: none
css transform: scale() now takes comma-separated args
css animations now accept ms units
added more css justify-content, align-* and text-align keywords (start, end, …)
parses css dvh/svh/lvh/dvw viewport units (treated as vh/vw)
parses css object-fit: scale-down (treated as contain)
added css margin-block / margin-inline (+ the logical margin sides)
added css padding-block / padding-inline (+ the logical padding sides)
added css inset-block / inset-inline (+ the logical inset sides)
added the css flex-flow shorthand
added the css font shorthand
added css font-size keywords (xx-small … xxx-large)
css letter-spacing and word-spacing now accept normal
added css font-smooth: none
css aspect-ratio now accepts the auto form
css font-family now maps generic families (serif, sans-serif, monospace)
added css flex-flow
added css font

FIXED
fixed css !important dropping the whole declaration
css line-height without units is now a multiplier
fixed css calc() division and full-expression parsing
fixed the css flex shorthand for single-number and three-value forms
fixed the css transition shorthand when the property is omitted
css font-family now uses the first family in a comma stack
colors now parse fully in the css background shorthand
an unknown css @-rule no longer drops the whole stylesheet
css variables no longer match on partial tokens
injected css variables are kept across stylesheet hotloads
fixed css selector specificity overflowing when comparing rules
css background: none now resets the background (image and colour)
css filter: none now overrides a filter set by a base class
css transform: none now overrides a transform set by a base class

IMPROVED
css rule matching is ~3–5× faster on large stylesheets (rules indexed by class)
~2× fewer allocations in css transitions (snapshot styles once, not per property)
finished css animations no longer re-layout every frame
less GC in css sibling/child selector queries (no list copies or wrappers)
less GC diffing active css rules (no LINQ or hashsets)
faster, lower-GC Yoga layout wrapper
css stylesheet hotload now watches newly imported files
2026-06-02 19:19:23 +01:00
Sam Pavlovic
e0c584c9a3 format 2026-04-24 13:55:18 +01:00
Matt Stevens
dcbebfad0c Add Zio CaseInsensitivePhysicalFileSystem which wraps the PhysicalFileSystem on Linux only.
Instead of changing stuff in 1000 places and putting the responsibility
of casing on developers, resolve it at a filesystem level.

Windows stays on the default PhysicalFileSystem.
2026-04-24 13:55:18 +01:00
Sam Pavlovic
5aaa52f367 Upgrade Zio to latest version (#4561) 2026-04-18 12:51:02 +01:00
Sol Williams
0c7f41e63a Cancel loading fixes (#4484)
* Loads now cancel correctly on disconnect/close across all entry points
* Unified some loading flow and UI logic
* Fixed errors when cancelling mid-load
2026-04-08 10:47:38 +01:00
Tony Ferguson
b8889c62f0 Wrap FindDirectory path enumeration in a try catch, to match FindFile, so we don't get an exception for missing directories (#4340) 2026-03-19 00:31:53 +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
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