@decky/ui 4.16.1 → 4.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals/shared/enums.d.ts +1 -1
- package/dist/globals/shared/enums.js +6 -6
- package/dist/globals/shared/interfaces.d.ts +2 -2
- package/dist/globals/steam-client/Overlay.d.ts +2 -2
- package/dist/globals/steam-client/UI.d.ts +4 -4
- package/dist/globals/steam-client/WebChat.d.ts +3 -3
- package/dist/globals/stores/steamuistore/gamepaduiaudio.d.ts +2 -2
- package/dist/globals/stores/steamuistore/index.d.ts +3 -3
- package/dist/utils/react/fc.js +1 -1
- package/package.json +1 -1
- package/src/globals/shared/enums.ts +1 -1
- package/src/globals/shared/interfaces.ts +2 -2
- package/src/globals/steam-client/Overlay.ts +2 -2
- package/src/globals/steam-client/UI.ts +4 -4
- package/src/globals/steam-client/WebChat.ts +3 -3
- package/src/globals/stores/steamuistore/gamepaduiaudio.ts +2 -2
- package/src/globals/stores/steamuistore/index.ts +3 -3
- package/src/utils/react/fc.ts +1 -1
|
@@ -77,9 +77,9 @@ export var ESteamUISound;
|
|
|
77
77
|
ESteamUISound[ESteamUISound["TimerExpired"] = 27] = "TimerExpired";
|
|
78
78
|
ESteamUISound[ESteamUISound["Screenshot"] = 28] = "Screenshot";
|
|
79
79
|
})(ESteamUISound || (ESteamUISound = {}));
|
|
80
|
-
export var
|
|
81
|
-
(function (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
})(
|
|
80
|
+
export var EUIMode;
|
|
81
|
+
(function (EUIMode) {
|
|
82
|
+
EUIMode[EUIMode["Unknown"] = -1] = "Unknown";
|
|
83
|
+
EUIMode[EUIMode["GamePad"] = 4] = "GamePad";
|
|
84
|
+
EUIMode[EUIMode["Desktop"] = 7] = "Desktop";
|
|
85
|
+
})(EUIMode || (EUIMode = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EResult } from '../steam-client/shared';
|
|
2
2
|
import type { EMsg_t } from './cm';
|
|
3
|
-
import type { EBrowserType,
|
|
3
|
+
import type { EBrowserType, EUIMode } from './enums';
|
|
4
4
|
export interface BrowserContext {
|
|
5
5
|
m_eBrowserType?: EBrowserType;
|
|
6
|
-
m_UIMode:
|
|
6
|
+
m_UIMode: EUIMode;
|
|
7
7
|
m_gameID?: string;
|
|
8
8
|
m_nBrowserID: number;
|
|
9
9
|
m_unAppID?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EBrowserType, ESteamRealm,
|
|
1
|
+
import type { EBrowserType, ESteamRealm, EUIMode } from '../shared/enums';
|
|
2
2
|
import type { EUIComposition, Unregisterable } from './shared';
|
|
3
3
|
export interface Overlay {
|
|
4
4
|
DestroyGamePadUIDesktopConfiguratorWindow(): void;
|
|
@@ -34,7 +34,7 @@ export interface ActivateOverlayRequest {
|
|
|
34
34
|
export interface OverlayBrowserInfo {
|
|
35
35
|
appID: number;
|
|
36
36
|
eBrowserType: EBrowserType;
|
|
37
|
-
|
|
37
|
+
EUIMode: EUIMode;
|
|
38
38
|
flDisplayScale?: number;
|
|
39
39
|
gameID: string;
|
|
40
40
|
nBrowserID: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
2
|
import type { EResult, Unregisterable } from './shared';
|
|
3
3
|
import type { EOSType } from './system';
|
|
4
4
|
export interface UI {
|
|
@@ -6,16 +6,16 @@ export interface UI {
|
|
|
6
6
|
ExitBigPictureMode(): void;
|
|
7
7
|
GetDesiredSteamUIWindows(): Promise<SteamWindow[]>;
|
|
8
8
|
GetOSEndOfLifeInfo(): Promise<OSEndOfLifeInfo>;
|
|
9
|
-
GetUIMode(): Promise<
|
|
9
|
+
GetUIMode(): Promise<EUIMode>;
|
|
10
10
|
NotifyAppInitialized(): void;
|
|
11
11
|
RegisterDesiredSteamUIWindowsChanged(callback: () => void): Unregisterable;
|
|
12
12
|
RegisterForClientConVar(convar: string, callback: (value: string) => void): Unregisterable;
|
|
13
13
|
RegisterForErrorCondition(callback: (param0: ERefreshLoginReason, param1: EResult) => void): Unregisterable;
|
|
14
14
|
RegisterForKioskModeResetSignal(callback: () => void): Unregisterable;
|
|
15
15
|
RegisterForStartupFinished(callback: () => void): Unregisterable;
|
|
16
|
-
RegisterForUIModeChanged(callback: (mode:
|
|
16
|
+
RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
|
|
17
17
|
ResetErrorCondition(): void;
|
|
18
|
-
SetUIMode(mode:
|
|
18
|
+
SetUIMode(mode: EUIMode): void;
|
|
19
19
|
}
|
|
20
20
|
export declare enum ERefreshLoginReason {
|
|
21
21
|
Success = 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
2
|
import type { OverlayBrowserInfo } from './Overlay';
|
|
3
3
|
import type { EResult, Unregisterable } from './shared';
|
|
4
4
|
export interface WebChat {
|
|
@@ -10,7 +10,7 @@ export interface WebChat {
|
|
|
10
10
|
GetPrivateConnectString(param0: number): Promise<string>;
|
|
11
11
|
GetPushToTalkEnabled(): Promise<PushToTalkInfo>;
|
|
12
12
|
GetSignIntoFriendsOnStart(): Promise<boolean>;
|
|
13
|
-
GetUIMode(): Promise<
|
|
13
|
+
GetUIMode(): Promise<EUIMode>;
|
|
14
14
|
OnGroupChatUserStateChange(chatGroupId: number, accountId: number, action: number): void;
|
|
15
15
|
OnNewGroupChatMsgAdded(groupId: string, chatId: string, accountId: number, timestamp: number, param4: number, message: string): void;
|
|
16
16
|
OpenURLInClient(url: string, pid: number, forceExternal: boolean): void;
|
|
@@ -18,7 +18,7 @@ export interface WebChat {
|
|
|
18
18
|
RegisterForFriendPostMessage(callback: (data: FriendChatDialogData) => void): Unregisterable;
|
|
19
19
|
RegisterForMouseXButtonDown(callback: (param0: number) => void): void;
|
|
20
20
|
RegisterForPushToTalkStateChange(callback: (state: boolean) => void): Unregisterable;
|
|
21
|
-
RegisterForUIModeChange(callback: (mode:
|
|
21
|
+
RegisterForUIModeChange(callback: (mode: EUIMode) => void): Unregisterable;
|
|
22
22
|
RegisterOverlayChatBrowserInfoChanged(callback: () => void): Unregisterable;
|
|
23
23
|
SetActiveClanChatIDs(clanChatIds: number[]): void;
|
|
24
24
|
SetNumChatsWithUnreadPriorityMessages(size: number): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ESteamUISound,
|
|
1
|
+
import type { ESteamUISound, EUIMode, SubscribableValue, Unsubscribable } from '../../shared';
|
|
2
2
|
import type { FocusChangeEvent } from '../../steam-client/system/UI';
|
|
3
3
|
import type { CFocusNavigationContext } from '../../stores';
|
|
4
4
|
type NavAudioFile_t = 'bumper_end.wav' | 'camera1.wav' | 'confirmation_negative.wav' | 'confirmation_positive.wav' | 'deck_ui_achievement_toast.wav' | 'deck_ui_bumper_end_02.wav' | 'deck_ui_default_activation.wav' | 'deck_ui_hide_modal.wav' | 'deck_ui_into_game_detail.wav' | 'deck_ui_launch_game.wav' | 'deck_ui_message_toast.wav' | 'deck_ui_misc_01.wav' | 'deck_ui_misc_08.wav' | 'deck_ui_misc_10.wav' | 'deck_ui_navigation.wav' | 'deck_ui_out_of_game_detail.wav' | 'deck_ui_show_modal.wav' | 'deck_ui_side_menu_fly_in.wav' | 'deck_ui_side_menu_fly_out.wav' | 'deck_ui_slider_down.wav' | 'deck_ui_slider_up.wav' | 'deck_ui_switch_toggle_off.wav' | 'deck_ui_switch_toggle_on.wav' | 'deck_ui_tab_transition_01.wav' | 'deck_ui_tile_scroll.wav' | 'deck_ui_toast.wav' | 'deck_ui_typing.wav' | 'deck_ui_volume.wav' | 'desktop_toast_default.wav' | 'desktop_toast_short.wav' | 'pop_sound.wav' | 'recording_highlight.wav' | 'recording_start.wav' | 'recording_stop.wav' | 'steam_at_mention.m4a' | 'steam_chatroom_notification.m4a' | 'timer_expired_alarm.wav' | 'ui_steam_message_old_smooth.m4a' | 'ui_steam_smoother_friend_join.m4a' | 'ui_steam_smoother_friend_online.m4a';
|
|
@@ -21,7 +21,7 @@ export declare class CGamepadUIAudioStore {
|
|
|
21
21
|
m_AudioPlaybackManager: CGamepadUIAudioPlaybackManager;
|
|
22
22
|
m_bCanPlaySound: boolean;
|
|
23
23
|
m_currentlyFocusedAppid: SubscribableValue<number>;
|
|
24
|
-
m_fnGetUIMode: () =>
|
|
24
|
+
m_fnGetUIMode: () => EUIMode;
|
|
25
25
|
m_pendingSoundHandle: number | null;
|
|
26
26
|
m_pendingSoundType: ESteamUISound;
|
|
27
27
|
OnFocusChangeEvent(ev: FocusChangeEvent): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../../shared';
|
|
2
2
|
import type { ENavigationSourceType, NavigationSource } from '../../shared/navigation';
|
|
3
3
|
import type { SteamAppOverview } from '../../steam-client/App';
|
|
4
4
|
import type { ControllerInfo } from '../../steam-client/Input';
|
|
@@ -30,7 +30,7 @@ export interface CSteamUIStore {
|
|
|
30
30
|
m_bStreamingRemotePlayTogether: boolean;
|
|
31
31
|
m_eErrorCondition: ERefreshLoginReason;
|
|
32
32
|
m_eErrorConditionResult: EResult;
|
|
33
|
-
m_mainInstancUIMode:
|
|
33
|
+
m_mainInstancUIMode: EUIMode;
|
|
34
34
|
m_nResumeStreamingInputTimeoutHandle: number;
|
|
35
35
|
m_navigationSource: NavigationSource;
|
|
36
36
|
m_runningAppIDs: number[];
|
|
@@ -113,7 +113,7 @@ export interface CSteamUIStore {
|
|
|
113
113
|
get ErrorConditionResult(): EResult;
|
|
114
114
|
get ForceBetaSectionVisible(): boolean;
|
|
115
115
|
get GamepadUIAudio(): CGamepadUIAudioStore;
|
|
116
|
-
get MainInstancUIMode():
|
|
116
|
+
get MainInstancUIMode(): EUIMode;
|
|
117
117
|
get MainRunningApp(): SteamAppOverview | undefined;
|
|
118
118
|
get MainRunningAppID(): number | undefined;
|
|
119
119
|
get MostRecentlyActiveController(): ControllerInfo;
|
package/dist/utils/react/fc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
2
|
import { applyHookStubs, removeHookStubs } from './react';
|
|
3
3
|
import Logger from '../../logger';
|
|
4
|
-
let loggingEnabled =
|
|
4
|
+
let loggingEnabled = false;
|
|
5
5
|
export function setFCTrampolineLoggingEnabled(value = true) { loggingEnabled = value; }
|
|
6
6
|
;
|
|
7
7
|
let logger = new Logger('FCTrampoline');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EResult } from '../steam-client/shared';
|
|
2
2
|
import type { EMsg_t } from './cm';
|
|
3
|
-
import type { EBrowserType,
|
|
3
|
+
import type { EBrowserType, EUIMode } from './enums';
|
|
4
4
|
|
|
5
5
|
export interface BrowserContext {
|
|
6
6
|
/**
|
|
@@ -11,7 +11,7 @@ export interface BrowserContext {
|
|
|
11
11
|
/**
|
|
12
12
|
* The UI mode in use.
|
|
13
13
|
*/
|
|
14
|
-
m_UIMode:
|
|
14
|
+
m_UIMode: EUIMode;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* If overlay, game's app ID, otherwise doesn't appear.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EBrowserType, ESteamRealm,
|
|
1
|
+
import type { EBrowserType, ESteamRealm, EUIMode } from '../shared/enums';
|
|
2
2
|
import type { EUIComposition, Unregisterable } from './shared';
|
|
3
3
|
|
|
4
4
|
export interface Overlay {
|
|
@@ -143,7 +143,7 @@ export interface ActivateOverlayRequest {
|
|
|
143
143
|
export interface OverlayBrowserInfo {
|
|
144
144
|
appID: number;
|
|
145
145
|
eBrowserType: EBrowserType;
|
|
146
|
-
|
|
146
|
+
EUIMode: EUIMode;
|
|
147
147
|
flDisplayScale?: number;
|
|
148
148
|
gameID: string;
|
|
149
149
|
nBrowserID: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
2
|
import type { EResult, Unregisterable } from './shared';
|
|
3
3
|
import type { EOSType } from './system';
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ export interface UI {
|
|
|
18
18
|
* Retrieves the current UI mode.
|
|
19
19
|
* @returns the current UI mode.
|
|
20
20
|
*/
|
|
21
|
-
GetUIMode(): Promise<
|
|
21
|
+
GetUIMode(): Promise<EUIMode>;
|
|
22
22
|
|
|
23
23
|
NotifyAppInitialized(): void;
|
|
24
24
|
|
|
@@ -43,7 +43,7 @@ export interface UI {
|
|
|
43
43
|
*/
|
|
44
44
|
RegisterForStartupFinished(callback: () => void): Unregisterable;
|
|
45
45
|
|
|
46
|
-
RegisterForUIModeChanged(callback: (mode:
|
|
46
|
+
RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
|
|
47
47
|
|
|
48
48
|
ResetErrorCondition(): void;
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ export interface UI {
|
|
|
51
51
|
* Sets the UI mode to the specified value.
|
|
52
52
|
* @param mode The UI mode to set.
|
|
53
53
|
*/
|
|
54
|
-
SetUIMode(mode:
|
|
54
|
+
SetUIMode(mode: EUIMode): void;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export enum ERefreshLoginReason {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../shared/enums';
|
|
2
2
|
import type { OverlayBrowserInfo } from './Overlay';
|
|
3
3
|
import type { EResult, Unregisterable } from './shared';
|
|
4
4
|
|
|
@@ -44,7 +44,7 @@ export interface WebChat {
|
|
|
44
44
|
* Retrieves the current UI mode.
|
|
45
45
|
* @returns the current UI mode.
|
|
46
46
|
*/
|
|
47
|
-
GetUIMode(): Promise<
|
|
47
|
+
GetUIMode(): Promise<EUIMode>;
|
|
48
48
|
|
|
49
49
|
OnGroupChatUserStateChange(chatGroupId: number, accountId: number, action: number): void;
|
|
50
50
|
|
|
@@ -97,7 +97,7 @@ export interface WebChat {
|
|
|
97
97
|
* @param callback The callback function to be called.
|
|
98
98
|
* @returns an object that can be used to unregister the callback.
|
|
99
99
|
*/
|
|
100
|
-
RegisterForUIModeChange(callback: (mode:
|
|
100
|
+
RegisterForUIModeChange(callback: (mode: EUIMode) => void): Unregisterable;
|
|
101
101
|
|
|
102
102
|
RegisterOverlayChatBrowserInfoChanged(callback: () => void): Unregisterable;
|
|
103
103
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ESteamUISound,
|
|
1
|
+
import type { ESteamUISound, EUIMode, SubscribableValue, Unsubscribable } from '../../shared';
|
|
2
2
|
import type { FocusChangeEvent } from '../../steam-client/system/UI';
|
|
3
3
|
import type { CFocusNavigationContext } from '../../stores';
|
|
4
4
|
|
|
@@ -84,7 +84,7 @@ export declare class CGamepadUIAudioStore {
|
|
|
84
84
|
m_AudioPlaybackManager: CGamepadUIAudioPlaybackManager;
|
|
85
85
|
m_bCanPlaySound: boolean;
|
|
86
86
|
m_currentlyFocusedAppid: SubscribableValue<number>;
|
|
87
|
-
m_fnGetUIMode: () =>
|
|
87
|
+
m_fnGetUIMode: () => EUIMode;
|
|
88
88
|
/** {@link setTimeout} handle */
|
|
89
89
|
m_pendingSoundHandle: number | null;
|
|
90
90
|
m_pendingSoundType: ESteamUISound;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EUIMode } from '../../shared';
|
|
2
2
|
import type { ENavigationSourceType, NavigationSource } from '../../shared/navigation';
|
|
3
3
|
import type { SteamAppOverview } from '../../steam-client/App';
|
|
4
4
|
import type { ControllerInfo } from '../../steam-client/Input';
|
|
@@ -34,7 +34,7 @@ export interface CSteamUIStore {
|
|
|
34
34
|
m_bStreamingRemotePlayTogether: boolean;
|
|
35
35
|
m_eErrorCondition: ERefreshLoginReason;
|
|
36
36
|
m_eErrorConditionResult: EResult;
|
|
37
|
-
m_mainInstancUIMode:
|
|
37
|
+
m_mainInstancUIMode: EUIMode;
|
|
38
38
|
m_nResumeStreamingInputTimeoutHandle: number;
|
|
39
39
|
m_navigationSource: NavigationSource;
|
|
40
40
|
m_runningAppIDs: number[];
|
|
@@ -197,7 +197,7 @@ export interface CSteamUIStore {
|
|
|
197
197
|
get ErrorConditionResult(): EResult;
|
|
198
198
|
get ForceBetaSectionVisible(): boolean;
|
|
199
199
|
get GamepadUIAudio(): CGamepadUIAudioStore;
|
|
200
|
-
get MainInstancUIMode():
|
|
200
|
+
get MainInstancUIMode(): EUIMode;
|
|
201
201
|
get MainRunningApp(): SteamAppOverview | undefined;
|
|
202
202
|
get MainRunningAppID(): number | undefined;
|
|
203
203
|
get MostRecentlyActiveController(): ControllerInfo;
|