@wayward/types 2.13.0-beta.dev.20230504.1 → 2.13.0-beta.dev.20230505.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.
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +1 -1
- package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
- package/definitions/launcher/ui/{Article.d.ts → component/Article.d.ts} +5 -2
- package/definitions/launcher/ui/{Button.d.ts → component/Button.d.ts} +1 -1
- package/definitions/launcher/ui/{InputButton.d.ts → component/InputButton.d.ts} +2 -2
- package/definitions/launcher/ui/{Section.d.ts → component/Section.d.ts} +1 -1
- package/definitions/launcher/ui/{main → launcher}/FolderButton.d.ts +4 -4
- package/definitions/launcher/ui/{main → launcher}/FolderSelector.d.ts +21 -6
- package/definitions/launcher/ui/{main → launcher}/Mods.d.ts +4 -8
- package/definitions/launcher/ui/{main → launcher}/Resources.d.ts +4 -9
- package/package.json +1 -1
- /package/definitions/launcher/ui/{Component.d.ts → component/Component.d.ts} +0 -0
|
@@ -80,6 +80,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
80
80
|
civilizationScoreTiles: Record<number, number>;
|
|
81
81
|
contaminatedWater: IWaterContamination[];
|
|
82
82
|
creatureSpawnTimer: number;
|
|
83
|
+
loadCount: number;
|
|
83
84
|
mapGenVersion: string;
|
|
84
85
|
name?: string;
|
|
85
86
|
position: IVector2;
|
|
@@ -91,7 +92,6 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
91
92
|
tileContainers: ITileContainer[];
|
|
92
93
|
version: string;
|
|
93
94
|
tileData: SaferNumberIndexedObject<SaferNumberIndexedObject<SaferNumberIndexedObject<ITileData[]>>>;
|
|
94
|
-
loadCount: number;
|
|
95
95
|
readonly seeds: ISeeds;
|
|
96
96
|
readonly seededRandom: Random<LegacySeededGenerator | PCGSeededGenerator>;
|
|
97
97
|
readonly game: Game;
|
|
@@ -23,7 +23,7 @@ import type QuadrantComponent from "ui/screen/screens/game/component/QuadrantCom
|
|
|
23
23
|
import { DialogId } from "ui/screen/screens/game/Dialogs";
|
|
24
24
|
import { QuadrantComponentId } from "ui/screen/screens/game/IGameScreenApi";
|
|
25
25
|
import type ActionBar from "ui/screen/screens/game/static/ActionBar";
|
|
26
|
-
import
|
|
26
|
+
import MenuBar from "ui/screen/screens/game/static/MenuBar";
|
|
27
27
|
import type Messages from "ui/screen/screens/game/static/Messages";
|
|
28
28
|
import type StatsQuadrant from "ui/screen/screens/game/static/Stats";
|
|
29
29
|
import MovementHandler from "ui/screen/screens/game/util/movement/MovementHandler";
|
|
@@ -99,6 +99,8 @@ export default class ItemComponent extends Component {
|
|
|
99
99
|
durabilityBar?: Component;
|
|
100
100
|
readonly draggable?: Draggable;
|
|
101
101
|
constructor(handler: IItemHandler);
|
|
102
|
+
private registerTickEndHandlerForDecay;
|
|
103
|
+
private deregisterTickEndHandlerForDecay;
|
|
102
104
|
private lastItem?;
|
|
103
105
|
private getItem;
|
|
104
106
|
protected onSlotUpdate(actionBar: ActionBar, slot: ActionSlot): void;
|
|
@@ -37,6 +37,6 @@ export default class MenuBar extends QuadrantComponent implements ISortableCompo
|
|
|
37
37
|
refresh(): void;
|
|
38
38
|
protected getContextMenuDescription(api: IBindHandlerApi): ContextMenuDescriptions;
|
|
39
39
|
private getMissingMenuBarButtons;
|
|
40
|
-
|
|
40
|
+
static registerButtonBindHandlers(until: Promise<any>): void;
|
|
41
41
|
}
|
|
42
42
|
export {};
|
|
@@ -68,7 +68,7 @@ export default class Messages extends QuadrantComponent {
|
|
|
68
68
|
setShouldUnfocusOnSend(shouldUnfocusOnSend: boolean): this;
|
|
69
69
|
getMaxMessages(): number;
|
|
70
70
|
setMaxMessages(maxMessages: number): this;
|
|
71
|
-
scrollToNewest(): void
|
|
71
|
+
scrollToNewest(): Promise<void>;
|
|
72
72
|
sendPinnedMessage(pinnedMessage: PinnedMessage): PinnedMessage;
|
|
73
73
|
pinQuestRequirement(quest: QuestInstance, requirement?: RequirementInstance): IPinnedMessage | PinnedMessage | undefined;
|
|
74
74
|
unpinMessage(pinnedMessage: PinnedMessage, time?: number): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import Button from "ui/component/Button";
|
|
12
|
+
import Component from "ui/component/Component";
|
|
13
|
+
import Mods from "ui/launcher/Mods";
|
|
14
|
+
import Resources from "ui/launcher/Resources";
|
|
15
|
+
export declare enum LauncherUIClasses {
|
|
16
|
+
Main = "launcher-app",
|
|
17
|
+
LaunchRow = "launcher-launch-row",
|
|
18
|
+
LaunchOptions = "launcher-launch-options",
|
|
19
|
+
LaunchButton = "launcher-launch-button"
|
|
20
|
+
}
|
|
21
|
+
export default class LauncherUI extends Component {
|
|
22
|
+
readonly resources: Resources;
|
|
23
|
+
readonly mods: Mods;
|
|
24
|
+
readonly launchRow: Component<HTMLElement>;
|
|
25
|
+
readonly launchOptions: Component;
|
|
26
|
+
readonly launchButton: Button & Component<HTMLElement>;
|
|
27
|
+
constructor();
|
|
28
|
+
private launch;
|
|
29
|
+
private cleanUp;
|
|
30
|
+
private makeLinks;
|
|
31
|
+
private createId;
|
|
32
|
+
}
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import Component from "ui/Component";
|
|
11
|
+
import Component from "ui/component/Component";
|
|
12
12
|
export declare enum ArticleClasses {
|
|
13
13
|
Main = "launcher-article",
|
|
14
|
-
Title = "launcher-article-title"
|
|
14
|
+
Title = "launcher-article-title",
|
|
15
|
+
ScrollableContent = "launcher-article-scrollable-content"
|
|
15
16
|
}
|
|
16
17
|
export default class Article extends Component<HTMLElement> {
|
|
17
18
|
readonly title: Component<HTMLHeadingElement>;
|
|
19
|
+
private _scrollableContent?;
|
|
18
20
|
constructor(headingLevel: "h1" | "h2" | "h3" | "h4" | "h5" | "h6");
|
|
21
|
+
get scrollableContent(): Component<HTMLDivElement>;
|
|
19
22
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import Component from "ui/Component";
|
|
11
|
+
import Component from "ui/component/Component";
|
|
12
12
|
export declare enum ButtonClasses {
|
|
13
13
|
Main = "button",
|
|
14
14
|
DisplayModeBlock = "button-block",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import Button from "ui/Button";
|
|
12
|
-
import Component from "ui/Component";
|
|
11
|
+
import Button from "ui/component/Button";
|
|
12
|
+
import Component from "ui/component/Component";
|
|
13
13
|
export declare enum InputButtonClasses {
|
|
14
14
|
Main = "button-input",
|
|
15
15
|
Active = "button-input-active",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import Component from "ui/Component";
|
|
11
|
+
import Component from "ui/component/Component";
|
|
12
12
|
export declare enum SectionClasses {
|
|
13
13
|
Main = "launcher-section"
|
|
14
14
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import type { ComponentEventManager, ComponentEvents } from "ui/Component";
|
|
12
|
-
import Component from "ui/Component";
|
|
13
|
-
import InputButton from "ui/InputButton";
|
|
14
|
-
import type { IFolder } from "ui/
|
|
11
|
+
import type { ComponentEventManager, ComponentEvents } from "ui/component/Component";
|
|
12
|
+
import Component from "ui/component/Component";
|
|
13
|
+
import InputButton from "ui/component/InputButton";
|
|
14
|
+
import type { IFolder } from "ui/launcher/FolderSelector";
|
|
15
15
|
export declare enum FolderButtonClasses {
|
|
16
16
|
Main = "button-folder",
|
|
17
17
|
Title = "button-folder-title",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import type { ComponentEventManager, ComponentEvents } from "ui/Component";
|
|
12
|
-
import Component from "ui/Component";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import type { ComponentEventManager, ComponentEvents } from "ui/component/Component";
|
|
12
|
+
import Component from "ui/component/Component";
|
|
13
|
+
import Section from "ui/component/Section";
|
|
14
|
+
import FolderButton from "ui/launcher/FolderButton";
|
|
15
15
|
export interface IFolderSelectorEvents extends ComponentEvents<Section> {
|
|
16
16
|
addNew: {
|
|
17
17
|
folders: IFolder[];
|
|
@@ -28,9 +28,13 @@ export interface IFolder {
|
|
|
28
28
|
path: string;
|
|
29
29
|
}
|
|
30
30
|
export type Folders = Map<string, string>;
|
|
31
|
-
export
|
|
31
|
+
export declare enum FolderSelectorClasses {
|
|
32
|
+
Main = "folder-selector",
|
|
33
|
+
AddNewButton = "folder-selector-add-new-button"
|
|
34
|
+
}
|
|
35
|
+
declare abstract class FolderSelector extends Section {
|
|
32
36
|
event: ComponentEventManager<this, IFolderSelectorEvents>;
|
|
33
|
-
readonly optionsWrapper: Component
|
|
37
|
+
readonly optionsWrapper: Component;
|
|
34
38
|
constructor();
|
|
35
39
|
getSelectedFolderPath(): string | null;
|
|
36
40
|
getFolders(): IFolder[];
|
|
@@ -46,3 +50,14 @@ export default abstract class FolderSelector extends Section {
|
|
|
46
50
|
save(folders: Folders | IFolder[]): void;
|
|
47
51
|
load(): Map<string, string>;
|
|
48
52
|
}
|
|
53
|
+
declare namespace FolderSelector {
|
|
54
|
+
abstract class WithDefault extends FolderSelector {
|
|
55
|
+
readonly defaultButton: FolderButton;
|
|
56
|
+
constructor();
|
|
57
|
+
protected abstract getDefaultFolder(): IFolder;
|
|
58
|
+
protected select(button?: FolderButton): void;
|
|
59
|
+
getSelectedFolderPath(): string;
|
|
60
|
+
getFolders(includeDefault?: boolean): IFolder[];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export default FolderSelector;
|
|
@@ -8,13 +8,9 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
12
|
-
import FolderSelector from "ui/
|
|
13
|
-
export default class Mods extends FolderSelector {
|
|
14
|
-
readonly steamButton: FolderButton;
|
|
15
|
-
constructor();
|
|
11
|
+
import type { IFolder } from "ui/launcher/FolderSelector";
|
|
12
|
+
import FolderSelector from "ui/launcher/FolderSelector";
|
|
13
|
+
export default class Mods extends FolderSelector.WithDefault {
|
|
16
14
|
protected getName(): string;
|
|
17
|
-
protected
|
|
18
|
-
getSelectedFolderPath(): string;
|
|
19
|
-
getFolders(includeSteam?: boolean): import("ui/main/FolderSelector").IFolder[];
|
|
15
|
+
protected getDefaultFolder(): IFolder;
|
|
20
16
|
}
|
|
@@ -8,16 +8,11 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
export default class Resources extends FolderSelector {
|
|
15
|
-
readonly steamButton: FolderButton;
|
|
16
|
-
constructor();
|
|
11
|
+
import type { IFolder } from "ui/launcher/FolderSelector";
|
|
12
|
+
import FolderSelector from "ui/launcher/FolderSelector";
|
|
13
|
+
export default class Resources extends FolderSelector.WithDefault {
|
|
17
14
|
protected getName(): string;
|
|
15
|
+
protected getDefaultFolder(): IFolder;
|
|
18
16
|
verifyFolder(folder: IFolder): Promise<boolean>;
|
|
19
17
|
protected verifyAddingFolders(verifyFolders: IFolder[]): Promise<IFolder[]>;
|
|
20
|
-
protected select(button?: FolderButton): void;
|
|
21
|
-
getSelectedFolderPath(): string;
|
|
22
|
-
getFolders(includeSteam?: boolean): IFolder[];
|
|
23
18
|
}
|
package/package.json
CHANGED
|
File without changes
|