usermattcancel

1,403 Commits over 913 Days - 0.06cph!

2 Years Ago
Support loading font files with SemiLight (350) or ExtraBlack (950) names Add ISteamInput interface from Facepunch.Steamworks Initialize Steam Input from managed Add dispatch events to SteamInput for device callbacks dis/connected, these are always called for already connected controllers Update Steamworks 1.53 for Steam Input improvements including Steam Deck support Update networksystem to resolve removal of deprecated funcs / renaming in Steamworks 1.58 SteamInput.EnableDeviceCallbacks() - should be giving us controller connected / disconnected events but isn't, steamworks bug? Basic action manifest with menu & ingame controls sets, in future we could provide a lot more versatile sets for different genres Start exposing a Controller class in Sandbox.Game, let's make them easily grabbable so we can do UI or BuildInput with them directly Chuck up some debug panels in the input settings menu for each connected controller to debug features
2 Years Ago
Restore SimulateActiveChild to Player fixing weapons not showing / firing.
2 Years Ago
▊▇▉ ▇▅ #▆▊▉▅▇ ▋▅█▅▄▇ ▄▉ ▅▆ ▌▆▉▌█▌▉▅▍ ▆▇▋▋▅▋█ ▊▍▋▌█▇▌ ▍▍▊▄▋ █▊▇▉, ▊▆▉ ▇▌▊▌ ▇▊█▊ ▍▍ ▍ ▇▇▇ ▊▋▅▋▇ ▋█▇▉▍▋ ▋▌▊▆▍▌▅█▉
2 Years Ago
▆▍▇ ▍▉▅▅▍▇▍▄▋▊ ▌▋▄▊▇▄ ▅▊▊▍▆ ▊▋ ▄_▍▅▌▍█▄▅▅▋▇::▇▄▊▉▉▉█, ▇▇▋▅▊ ▉▋▍▇▇ ▋▉ ▄▄▇▌▅▅▌▉▍ ▉▊█▊/▄▊▆▆█▊ ▅▅█▍ ▆▍▌▇▊▄▍ ▅▋▇▊▋▆▍ ▆▉▇▊▄▉ ▌▋▇█▊▌▉▋ ▍▋▊ █▊▅▄▌▆▌▅█ ▍▇ ▌ ▄▄▆█▇▄▌▆█▄▍▄▉▊█ ▊▌▉▆▆▄▋▅ ▄▅▌▇ ▇▉█ ▉▉█▌▆█▇█ ▅▊ ▄█▆▇▋▄█, ▆▋▆▇▍▋▄▌ ▇▌▅▆█▊█▋▍ ██▊▋█▄▆ █▇▊▅▊▉ ▋▇▄█▅▉▇ ▅▊▋▇▍▌▉▆ ▅▋▄▊▊▆▍▇█▋ ▋▋ ▍▍▉▄▌▆▋▅, ▌▆▄█▌ █▌▌ ▊▆▋▉█▄▆▉▉▉▍ ▆▌ ▄▊▊ ▇▋▇▅ ▄▋█▋ ▄▇▇▍▋ ▉▋▆█▄▋▅▍ ▆▇ ▍▊▄ █▇▆▉▆▋ ▉▇▄▄ ▄▊▋▌▋▍█▄▊ ▇▌ ▄ ▌▊▌▋▇█▋▅ ██ █▄▆▅▉▉▅▊▇▇█ ▊▅▋▇▌▇ ▍ ▋▆▆▆▅ ██ ▉▊▉ █▅▊ ▍▊▊▅▋▊▊█ ▍▍ ▄▄▉▊▆▉▄█▉ ▅▋█ ▆▆▅▍▋▋▍ ▍▊▅▆▋. ▉▄▉▉▊▅▋█ ▌▆▅▆▊▌ ▆▄▉▄ ▍▍▌▉ ▇█▄ ▋▍▌▉▍▇▍ ▌▋ ▅▅▄ ▉▋▇▇ ▆▉▄▄▍ ▇▍█▌▇▉▆ = ▆▌▍▋▄▉▌
2 Years Ago
Remove redundant inherited member on MainMenuPanel
2 Years Ago
Don't render panels on invisible overlay panels 🤦 optimize some other code paths too
2 Years Ago
OpenVR update 1.10.20 -> 1.16.8, resolve deprecated crap Interopgen OpenVR's IVROverlay to managed engine Add VROverlayPanel - these are panels rendered in local VR space over the world, input is automatically simulated VR.Init() in MenuDll, set VR.Enabled in Init only since it never changes When in VR create a main menu with an VROverlayPanel, make this wide and 4k so it doesn't look ass Basic interop of IVRInput to managed, get action origins & add VROverlay.SetTransformRelative( VRTrackedDevice ) Add console commands from Sandbox.Menu dll making menu_reload work again Add missing internals to a couple OpenVR structs Add float.MeterToInch / float.InchToMeter extension methods Make main menu VR overlay properly show when ingame Make the loading screen show in VR, add VROverlay.SortOrder, add RootPanel.IsVR set when a RootPanel is owned by a VROverlay If VR is enabled make the GameList.ControlTag default to VR Add 4k & 8k render target sizes to be used as scratch ( dx11 max texture size = 16k ) Use a copy of the current viewport instead of framebuffer when rendering panel backdrop filters Adjust main menu vr size / scaling to a more square aspect ratio and scale it bigger so it's not difficult to read
2 Years Ago
Adjust main menu vr size / scaling to a more square aspect ratio and scale it bigger so it's not difficult to read
2 Years Ago
If VR is enabled make the GameList.ControlTag default to VR Add 4k & 8k render target sizes to be used as scratch ( dx11 max texture size = 16k ) Use a copy of the current viewport instead of framebuffer when rendering panel backdrop filters
2 Years Ago
Add console commands from Sandbox.Menu dll making menu_reload work again Add missing internals to a couple OpenVR structs Add float.MeterToInch / float.InchToMeter extension methods Make main menu VR overlay properly show when ingame Make the loading screen show in VR, add VROverlay.SortOrder, add RootPanel.IsVR set when a RootPanel is owned by a VROverlay
2 Years Ago
OpenVR update 1.10.20 -> 1.16.8, resolve deprecated crap Interopgen OpenVR's IVROverlay to managed engine Add VROverlayPanel - these are panels rendered in local VR space over the world, input is automatically simulated VR.Init() in MenuDll, set VR.Enabled in Init only since it never changes When in VR create a main menu with an VROverlayPanel, make this wide and 4k so it doesn't look ass Basic interop of IVRInput to managed, get action origins & add VROverlay.SetTransformRelative( VRTrackedDevice )
2 Years Ago
OpenVR update 1.10.20 -> 1.16.8, resolve deprecated crap Add internal managed code bindings for OpenVR interfaces to Sandbox.Engine VROverlay class in managed, do basic render & input for main menu. These transparently handle the differing coordinate systems from Source to OpenVR. Add VROverlayPanel<T> where T : RootPanel, acts like a normal VROverlay but automatically renders UI to it Render VR menu from menu addon using VROverlayPanel, render in 4K so it doesn't look shit Store VROverlays with WeakRef, sort out IDisposable to delete VROverlayPanel.RootPanel VROverlay input system for UI using input data from OpenVR Handle scroll events on vr overlays, turn it into InputData for UI Custom OpenVR interop bindings, grab the OpenVR interfaces from engine Lets us cut out loads of bullshit making things way simpler and neater. Restore viewport after rendering in VROverlayPanel Simulate VR overlay mouse position properly from scale Make engine construct OpenVR texture handles instead since they're graphics API specific Update MouseScale properly on vr panel overlays Update vr overlay panel render texture when panel bounds change Hide vr overlays if vr dashboard is open Document on when you should use an overlay vs a worldpanel Dispose of all vr overlays on game end that may not have been picked up by GC yet Prevent redundant calls to OpenVR in property setters Expose TriggerLaserMouseHapticVibration for VR overlays, add quick test case to pulse when hovering panels tidy up, unfuck namespaces / class names / docs Fix vr overlays crashing from wrong thread by using a device thread callback ( even though we were in a render thread anyway? ) Make VR overlays work in-game, hide them when the main menu overlay is showing Fix interop issues from rebase/squash Decide if VROverlayPanel does input from pointer-events Allow absolute overlay transforms from seated or standing origins Add relative overlay transforms from other overlays (they inherit visibility too) Add Overlay.SetHudTransform( Transform ), set it relative to system.HeadsetView overlay view Start exposing IVRInput to the managed engine, let us interact with actions internally ( shit like /user/hand/right ) Add relative overlays to tracked devices misc mark shit as internal, fixes, tidy up
2 Years Ago
Network Client.IsBot so it works clientside
2 Years Ago
tidy up, unfuck namespaces / class names / docs Fix vr overlays crashing from wrong thread by using a device thread callback ( even though we were in a render thread anyway? ) Make VR overlays work in-game, hide them when the main menu overlay is showing
2 Years Ago
Dispose of all vr overlays on game end that may not have been picked up by GC yet Prevent redundant calls to OpenVR in property setters Expose TriggerLaserMouseHapticVibration for VR overlays, add quick test case to pulse when hovering panels
2 Years Ago
Make engine construct OpenVR texture handles instead since they're graphics API specific Update MouseScale properly on vr panel overlays Update vr overlay panel render texture when panel bounds change Hide vr overlays if vr dashboard is open Document on when you should use an overlay vs a worldpanel
2 Years Ago
Use our own interop bindings for OpenVR, grab interface from engine Refactor VROverlay, just set stuff once in property setters instead of in render thread No need for a separate MainMenuPanel impl for VR, just make a VROverlayPanel of it Restore viewport after rendering in VROverlayPanel Simulate VR overlay mouse position properly from scale
2 Years Ago
Store VROverlays with WeakRef, sort out IDisposable to delete VROverlayPanel.RootPanel VROverlay input system for UI using input data from OpenVR Handle scroll events on vr overlays, turn it into InputData for UI Make vr controllers scroll UI the right way and consume the delta after it's used VR mainmenu, split out the lobby bar into a seperate offset overlay
2 Years Ago
VROverlay: handle key management automatically internally Add VROverlayPanel<T> where T : RootPanel, acts like a normal VROverlay but automatically renders UI to it Render VR menu from menu addon using VROverlayPanel, render in 4K so it doesn't look shit
2 Years Ago
OpenVR update 1.10.20 -> 1.16.8, resolve deprecated crap Add internal managed code bindings for OpenVR interfaces to Sandbox.Engine VROverlay class in managed with rendering props and render update loop Basic VROverlay in Sandbox.Menu with a render target texture of the menu UI - probably a shit place for it but can be moved easily. https://files.facepunch.com/matt/1b1811b1/vrmonitor_A6tO3ufJP9.png Iterate on VROverlay API, make the coordinate system match engine, poll events and simulate input in the menu.
2 Years Ago
Fix Event.Hotload not calling on the server, fixes network tables not updating on hotload and probably other shit
2 Years Ago
Basic VROverlay in Sandbox.Menu with a render target texture of the menu UI - probably a shit place for it but can be moved easily. https://files.facepunch.com/matt/1b1811b1/vrmonitor_A6tO3ufJP9.png
2 Years Ago
OpenVR update 1.10.20 -> 1.16.8, resolve deprecated crap Add internal managed code bindings for OpenVR interfaces to Sandbox.Engine VROverlay class in managed with rendering props and render update loop
2 Years Ago
Make sure we update our GameAssembly hash on initial load, fixes all networking errors
2 Years Ago
Make non public and inherited methods register for events again
2 Years Ago
fix build log discord post on long message commits
2 Years Ago
Ensure resident model resources get added to the manifest, fixes error models from missing resources in manifest. This would specifically happen if a server starts a game / map a second time, the resources would remain resident, so when a client does their initial join these models are missing from the manifest resulting in an error. If the client had previously joined on the first time their resources would already be resident and not error. Simplest way to do it, rather then change (and slow down) how the rest of the resource system works. If a resource we try to preload returns an error handle, don't keep the handle alive. Map resources specifically will become valid and load automatically after this.
2 Years Ago
Change WorldInput API to instances to resolve issues and allow simultaneous inputs. * Replace WorldInput.Update with instanced WorldInput fixing hovering and clicking issues as well as allowing simultaneous inputs. * Resolved various issues with WorldPanel.RayToLocalPosition not using the right axis, being inverted and not scaling. * Simulate double click and mousemove events for world inputs. * Fix right clicks not working on WorldInput.
2 Years Ago
Fix missing game lobby settings
2 Years Ago
Fix world panel input by changing WorldInput.Update to [Event.WorldInput.Build] called from the input system. WorldPanel.RayToLocalPosition: fix wrong local position being used for inside checks Simulate right (and middle) mouse button properly in world panel input. Iterate on WorldInput, allow multiple simulated inputs at the same time by migrating state to games Fix inverted x pos and lack of world scale awareness in WorldPanel ray to local code Use WeakReferences of WorldInputs to iterate, gives addon state full ownership and lets GC work nicely. Clear WorldInput reference list on LoopEvent.Init/Shutdown Expose and doc more on WorldInput public class; UseMouseInput allows nice usage with Input.Cursor rays Simulate ondoubleclick & onmousemove events, add WorldInput.Enabled for toggling easily, tidy and refactor UISystem a bit fix potential NREs, small optimizations.
2 Years Ago
Allow RootPanel.Parent = null though
2 Years Ago
Throw if trying to set RootPanel.Parent Fix a couple of NREs preventing -dedicated from working
2 Years Ago
Expose and doc more on WorldInput public class; UseMouseInput allows nice usage with Input.Cursor rays
2 Years Ago
Fix world panel input by changing WorldInput.Update to [Event.WorldInput.Build] called from the input system. WorldPanel.RayToLocalPosition: fix wrong local position being used for inside checks Simulate right (and middle) mouse button properly in world panel input. Iterate on WorldInput, allow multiple simulated inputs at the same time by migrating state to games Fix inverted x pos and lack of world scale awareness in WorldPanel ray to local code Use WeakReferences of WorldInputs to iterate, gives addon state full ownership and lets GC work nicely. Clear WorldInput reference list on LoopEvent.Init/Shutdown
2 Years Ago
SetProperty fallback on [Property] attributes, fixes map entities not working from having their properties not set
2 Years Ago
Generator error if you try to [Net] a static property INetworkSerializer.Read: use ref of NetRead NetWrite.Write don't try to blindly write ref or containing ref types
2 Years Ago
Fix coding errors, remove obsolete and unused shit
2 Years Ago
Fix world panel input by changing WorldInput.Update to [Event.WorldInput.Build] called from the input system. WorldPanel.RayToLocalPosition: fix wrong local position being used for inside checks Simulate right (and middle) mouse button properly in world panel input. Iterate on WorldInput, allow multiple simulated inputs at the same time by migrating state to games Fix inverted x pos and lack of world scale awareness in WorldPanel ray to local code
2 Years Ago
Add a rotating camera around the hole after you putt ScoreFeed handle hole in ones correctly
2 Years Ago
Add transform: scalex, scaley (scale was already supported)
2 Years Ago
Add scss transform: translate( <length>, <length>? ) ( translateX, translateY were already supported )
2 Years Ago
Fix world panel input by changing WorldInput.Update to [Event.WorldInput.Build] called from the input system. WorldPanel.RayToLocalPosition: fix wrong local position being used for inside checks Simulate right (and middle) mouse button properly in world panel input.
2 Years Ago
Fix player par being set on the wrong index
2 Years Ago
Uncomplicate course info bullshit, shouldn't fall over on a full update either now too
2 Years Ago
Cleanup PowerArrow on Ball destruction
2 Years Ago
Don't write empty modeldata.fgd
2 Years Ago
Add [Net] support for generic IDictionary<TKey, TVal>
2 Years Ago
Add tests for combinations of [Net] IDictionary<TKey, TVal>
2 Years Ago
Make [Net] work on IList<T>, deprecate List<T> to prevent confusing behaviour Use VarUnmanagedList on ITypeSymbol.IsUnmanagedType Cleanup and simplify replicated lists code gen, give better feedback if using List<T>
2 Years Ago
Add [Net] support for IDictionary<U, object> where U in unmanaged initially Add support for generic dictionaries where key/val both support unmanaged or class constraints