@decky/ui 4.16.1 → 4.16.2

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.
@@ -73,7 +73,7 @@ export declare enum ESteamUISound {
73
73
  TimerExpired = 27,
74
74
  Screenshot = 28
75
75
  }
76
- export declare enum UIMode {
76
+ export declare enum EUIMode {
77
77
  Unknown = -1,
78
78
  GamePad = 4,
79
79
  Desktop = 7
@@ -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 UIMode;
81
- (function (UIMode) {
82
- UIMode[UIMode["Unknown"] = -1] = "Unknown";
83
- UIMode[UIMode["GamePad"] = 4] = "GamePad";
84
- UIMode[UIMode["Desktop"] = 7] = "Desktop";
85
- })(UIMode || (UIMode = {}));
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, UIMode } from './enums';
3
+ import type { EBrowserType, EUIMode } from './enums';
4
4
  export interface BrowserContext {
5
5
  m_eBrowserType?: EBrowserType;
6
- m_UIMode: 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, UIMode } from '../shared/enums';
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
- UIMode: UIMode;
37
+ EUIMode: EUIMode;
38
38
  flDisplayScale?: number;
39
39
  gameID: string;
40
40
  nBrowserID: number;
@@ -1,4 +1,4 @@
1
- import type { UIMode } from '../shared/enums';
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<UIMode>;
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: UIMode) => void): Unregisterable;
16
+ RegisterForUIModeChanged(callback: (mode: EUIMode) => void): Unregisterable;
17
17
  ResetErrorCondition(): void;
18
- SetUIMode(mode: UIMode): void;
18
+ SetUIMode(mode: EUIMode): void;
19
19
  }
20
20
  export declare enum ERefreshLoginReason {
21
21
  Success = 1,
@@ -1,4 +1,4 @@
1
- import type { UIMode } from '../shared/enums';
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<UIMode>;
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: UIMode) => void): Unregisterable;
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, UIMode, SubscribableValue, Unsubscribable } from '../../shared';
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: () => UIMode;
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 { UIMode } from '../../shared';
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: UIMode;
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(): UIMode;
116
+ get MainInstancUIMode(): EUIMode;
117
117
  get MainRunningApp(): SteamAppOverview | undefined;
118
118
  get MainRunningAppID(): number | undefined;
119
119
  get MostRecentlyActiveController(): ControllerInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decky/ui",
3
- "version": "4.16.1",
3
+ "version": "4.16.2",
4
4
  "description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -90,7 +90,7 @@ export enum ESteamUISound {
90
90
  Screenshot,
91
91
  }
92
92
 
93
- export enum UIMode {
93
+ export enum EUIMode {
94
94
  Unknown = -1,
95
95
  GamePad = 4,
96
96
  Desktop = 7,
@@ -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, UIMode } from './enums';
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: 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, UIMode } from '../shared/enums';
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
- UIMode: UIMode;
146
+ EUIMode: EUIMode;
147
147
  flDisplayScale?: number;
148
148
  gameID: string;
149
149
  nBrowserID: number;
@@ -1,4 +1,4 @@
1
- import type { UIMode } from '../shared/enums';
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<UIMode>;
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: UIMode) => void): Unregisterable;
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: UIMode): void;
54
+ SetUIMode(mode: EUIMode): void;
55
55
  }
56
56
 
57
57
  export enum ERefreshLoginReason {
@@ -1,4 +1,4 @@
1
- import type { UIMode } from '../shared/enums';
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<UIMode>;
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: UIMode) => void): Unregisterable;
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, UIMode, SubscribableValue, Unsubscribable } from '../../shared';
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: () => UIMode;
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 { UIMode } from '../../shared';
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: UIMode;
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(): UIMode;
200
+ get MainInstancUIMode(): EUIMode;
201
201
  get MainRunningApp(): SteamAppOverview | undefined;
202
202
  get MainRunningAppID(): number | undefined;
203
203
  get MostRecentlyActiveController(): ControllerInfo;