@wayward/types 2.11.5-beta.dev.20220306.1 → 2.11.5-beta.dev.20220308.1
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/definitions/game/game/item/IItem.d.ts +3 -2
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +2 -1
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +6 -0
- package/definitions/game/ui/Ui.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +9 -2
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +1 -1
- package/definitions/hosts/shared/interfaces.d.ts +5 -0
- package/package.json +1 -1
|
@@ -121,7 +121,8 @@ export declare enum Prompt {
|
|
|
121
121
|
SteamworksModImportedSaveGame = 103,
|
|
122
122
|
SteamworksOpenFolderFailure = 104,
|
|
123
123
|
SteamworksModPublishModJsonUpdateFailed = 105,
|
|
124
|
-
|
|
124
|
+
SteamworksNotAvailableOnSteamDeck = 106,
|
|
125
|
+
UiSaveDrop = 107
|
|
125
126
|
}
|
|
126
127
|
export declare enum PromptType {
|
|
127
128
|
Info = 0,
|
|
@@ -123,8 +123,9 @@ declare const promptDescriptions: {
|
|
|
123
123
|
102: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[modName: string]>;
|
|
124
124
|
103: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[modName: string]>;
|
|
125
125
|
104: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
126
|
+
106: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
|
|
126
127
|
105: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[error: string | undefined, publishedFileId: string]>;
|
|
127
|
-
|
|
128
|
+
107: import("game/meta/prompt/IPrompt").IPromptChoiceDescription<any[], never[]>;
|
|
128
129
|
};
|
|
129
130
|
declare const _default: Record<Prompt, PromptDescription<any[]>>;
|
|
130
131
|
export default _default;
|
|
@@ -18,6 +18,9 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
18
18
|
private betaName;
|
|
19
19
|
private buildTime;
|
|
20
20
|
private overlayWorks;
|
|
21
|
+
private runningOnSteamDeck;
|
|
22
|
+
private floatingTextInputFocused;
|
|
23
|
+
private floatingTextInputBlurTime;
|
|
21
24
|
private initializingMods;
|
|
22
25
|
private logsPath;
|
|
23
26
|
private backupsPath;
|
|
@@ -43,6 +46,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
43
46
|
private _isTraceRecording;
|
|
44
47
|
private _intervalIds;
|
|
45
48
|
get isGameOverlayActive(): boolean;
|
|
49
|
+
get isRunningOnSteamDeck(): boolean;
|
|
46
50
|
isElectron(): boolean;
|
|
47
51
|
reload(): Promise<void>;
|
|
48
52
|
openGpuInfoWindow(): void;
|
|
@@ -126,6 +130,8 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
|
126
130
|
protected onGlobalSlotLoaded(): void;
|
|
127
131
|
writeBackup(slot: number, data: Uint8Array): Promise<string | undefined>;
|
|
128
132
|
private _writeBackupFile;
|
|
133
|
+
onInputFocus(inputElement: HTMLElement): void;
|
|
134
|
+
private onFloatingGamepadTextInputDismissed;
|
|
129
135
|
setupMultiplayerLog(): void;
|
|
130
136
|
getMultiplayerLogs(): string;
|
|
131
137
|
multiplayerLog(...args: any[]): void;
|
|
@@ -86,6 +86,7 @@ export declare class Ui extends EventEmitter.Host<IUiEvents> {
|
|
|
86
86
|
updateFontStyle(): void;
|
|
87
87
|
updateUIAnimations(): void;
|
|
88
88
|
updateUIOpacity(): void;
|
|
89
|
+
updatePowerMode(): void;
|
|
89
90
|
toggleDeveloperMode(enabled: boolean): this;
|
|
90
91
|
protected onGlobalSlotLoaded(): void;
|
|
91
92
|
protected onPlay(): void;
|
|
@@ -18,11 +18,18 @@ import type { IStringSection } from "utilities/string/Interpolator";
|
|
|
18
18
|
export interface IStatDisplayDescription extends IModdable {
|
|
19
19
|
imagePath?: string | ((entity: Entity, stat: IStat) => string);
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The CSS variable to use for the stat bar color
|
|
22
|
+
* Defaults to white
|
|
22
23
|
*/
|
|
23
24
|
color?: string | ((entity: Entity, stat: IStat) => string);
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* The CSS variable to use for the stat bar color in RGB format
|
|
27
|
+
* Defaults to white
|
|
28
|
+
*/
|
|
29
|
+
rgbColor?: string | ((entity: Entity, stat: IStat) => string);
|
|
30
|
+
/**
|
|
31
|
+
* The CSS variable to use for the background of the stat bar
|
|
32
|
+
* Defaults to black
|
|
26
33
|
*/
|
|
27
34
|
darkColor?: string | ((entity: Entity, stat: IStat) => string);
|
|
28
35
|
/**
|
|
@@ -36,7 +36,7 @@ export declare abstract class StatElement extends Component {
|
|
|
36
36
|
/**
|
|
37
37
|
* Returns the color of this stat.
|
|
38
38
|
*/
|
|
39
|
-
getStatColor(
|
|
39
|
+
getStatColor(type?: "dark" | "rgb"): string;
|
|
40
40
|
/**
|
|
41
41
|
* Returns the formatted CSS url for the stat icon.
|
|
42
42
|
*/
|
|
@@ -89,6 +89,11 @@ export interface ISteamworks {
|
|
|
89
89
|
getFileCount(): number;
|
|
90
90
|
getFileNameAndSize(index: number): IRemoteFile;
|
|
91
91
|
deleteRemoteFile(name: string): void;
|
|
92
|
+
getCurrentBatteryPower(): number;
|
|
93
|
+
isSteamRunningOnSteamDeck(): boolean;
|
|
94
|
+
showFloatingGamepadTextInput(nTextFieldXPosition: number, nTextFieldYPosition: number, nTextFieldWidth: number, nTextFieldHeight: number): boolean;
|
|
95
|
+
dismissFloatingGamepadTextInput(): boolean;
|
|
96
|
+
setFloatingGamepadTextInputDismissedCallback(cb: () => void): void;
|
|
92
97
|
}
|
|
93
98
|
export interface ISteamworksNetworking {
|
|
94
99
|
initRelayNetworkAccess(): undefined;
|
package/package.json
CHANGED