-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support for desktop Steam UI #712
base: main
Are you sure you want to change the base?
Conversation
7e040c1
to
fa4c4a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
route patches need UIMode in dfl too. It should be optional and default to BPM for backwards compat prob
Navigation.CloseSideMenus(); | ||
setDesktopMenuOpen(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be needed, we should modify Navigation.CloseSideMenus()
to close the desktop menu. Def needed because plugins close side menus too all the time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
@@ -87,10 +105,10 @@ class RouterHook extends Logger { | |||
this.patchGamepadRouter(); | |||
break; | |||
// Not fully implemented yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment can go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
export enum UIMode { | ||
BigPicture = 4, | ||
Desktop = 7, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair
} | ||
|
||
export class DeckyRouterState { | ||
private _routes = new Map<string, RouterEntry>(); | ||
private _routePatches = new Map<string, Set<RoutePatch>>(); | ||
// Update when support for new UIModes is added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What other UIModes are there? I guess SteamVR might be seperate from BPM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea how vr works but I plan to look into it soon
it'll be interesting as it can run at the same time as the desktop ui
Navigation.OpenQuickAccessMenu(QuickAccessTab.Decky); | ||
DeckyPluginLoader.setDesktopMenuOpen(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above comment, we could make OpenQuickAccessMenu
open the desktop menu but eeh i don't know if any plugins use it, and it only makes sense for the decky tab so not really sure.
Noticed while messing aroung, the reorderable list doesn't work properly in desktop mode. Not a shock but it's going to be a little weird to fix i think. |
There also tends to just be a general level of jank lol |
1442381
to
ee39a6f
Compare
works well enough lol
Co-authored-by: Party Wumpus <[email protected]>
ee39a6f
to
7e1406c
Compare
Please tick as appropriate:
Description
This PR adds full feature parity between desktop and gamepad UI modes. The styling is a bit rough, but it's fully functional.
Video
Also includes some React DevTools fixes.