@wayward/types 2.12.2-beta.dev.20221107.1 → 2.12.2-beta.dev.20221110.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/IGlobal.d.ts +0 -3
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +2 -0
- package/definitions/game/language/Translation.d.ts +3 -3
- package/definitions/game/language/dictionary/Message.d.ts +420 -421
- package/definitions/game/language/dictionary/UiTranslation.d.ts +725 -724
- package/definitions/game/ui/old/IOldUi.d.ts +2 -4
- package/definitions/game/ui/old/OldUi.d.ts +0 -2
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +1 -11
- package/package.json +1 -1
- package/definitions/game/ui/old/functional/FunctionalTooltip.d.ts +0 -11
|
@@ -31,7 +31,6 @@ import type Steamworks from "steamworks/Steamworks";
|
|
|
31
31
|
import "typings/jquery";
|
|
32
32
|
import "typings/jqueryui";
|
|
33
33
|
import type { ISortable, ISortableOptions } from "ui/old/functional/IFunctionalSortable";
|
|
34
|
-
import type { ITooltip, ITooltipOptions } from "ui/old/functional/IFunctionalTooltip";
|
|
35
34
|
import type OldUi from "ui/old/OldUi";
|
|
36
35
|
import type { Ui } from "ui/Ui";
|
|
37
36
|
import "utilities/prototype/Promise";
|
|
@@ -90,8 +89,6 @@ declare global {
|
|
|
90
89
|
getItemType(): ItemType;
|
|
91
90
|
functionalSortable(data: string, ...args: any[]): void;
|
|
92
91
|
functionalSortable(data: ISortableOptions): ISortable;
|
|
93
|
-
functionalTooltip(data: string, ...args: any[]): void;
|
|
94
|
-
functionalTooltip(data: ITooltipOptions): ITooltip;
|
|
95
92
|
import(template: JQuery | HTMLTemplateElement): JQuery;
|
|
96
93
|
}
|
|
97
94
|
}
|
|
@@ -16,6 +16,7 @@ import type Item from "game/item/Item";
|
|
|
16
16
|
export interface IDismantleCanUse extends IActionUsable {
|
|
17
17
|
description: IItemDescription;
|
|
18
18
|
dismantleDescription: IDismantleDescription;
|
|
19
|
+
requiredItem?: Item;
|
|
19
20
|
}
|
|
20
21
|
declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Undefined]], import("../../Human").default, void, IDismantleCanUse, [Item, (Item | undefined)?]>;
|
|
21
22
|
export default _default;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import type { ActionId, IUsableActionDefinition, IUsableActionDefinitionExecutable, IUsableActionExecutionContext, IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, UsableActionUsability } from "game/entity/action/usable/IUsableAction";
|
|
13
13
|
import { IUsableActionNotUsable, UsableActionDisplayContext } from "game/entity/action/usable/IUsableAction";
|
|
14
|
+
import UsableActionRegistrar from "game/entity/action/usable/UsableActionRegistrar";
|
|
14
15
|
import type Player from "game/entity/player/Player";
|
|
15
16
|
import type { IIcon } from "game/inspection/InfoProvider";
|
|
16
17
|
import type Item from "game/item/Item";
|
|
@@ -21,6 +22,7 @@ export declare const USABLE_ACTION_USE_ON_MOVE_UNLOCK_AT = 20;
|
|
|
21
22
|
export interface IUsableActionEvents {
|
|
22
23
|
preExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
|
|
23
24
|
postExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
|
|
25
|
+
showContextMenu(registrar: UsableActionRegistrar): any;
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
28
|
* Create a basic usable action:
|
|
@@ -101,9 +101,9 @@ declare module Translation {
|
|
|
101
101
|
function growthStage(stage?: GrowingStage, spores?: boolean): TranslationImpl | undefined;
|
|
102
102
|
const getString: typeof TranslationImpl.getString;
|
|
103
103
|
const resolve: typeof TranslationImpl.resolve;
|
|
104
|
-
function colorizeQuality(quality: Quality | string): Translation;
|
|
105
|
-
function colorizeQuality(quality: Quality | string, text: string | IStringSection): IStringSection;
|
|
106
|
-
function colorizeQuality(quality: Quality | string, text: IStringSection[]): IStringSection[];
|
|
104
|
+
function colorizeQuality(quality: Quality | string | undefined): Translation;
|
|
105
|
+
function colorizeQuality(quality: Quality | string | undefined, text: string | IStringSection): IStringSection;
|
|
106
|
+
function colorizeQuality(quality: Quality | string | undefined, text: IStringSection[]): IStringSection[];
|
|
107
107
|
function colorizeMessageType(type: MessageType): Translation;
|
|
108
108
|
function colorizeMessageType(type: MessageType, text: string | IStringSection): IStringSection;
|
|
109
109
|
function colorizeMessageType(type: MessageType, text: IStringSection[]): IStringSection[];
|