@wayward/types 2.12.2-beta.dev.20221114.1 → 2.12.2-beta.dev.20221116.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/ui/component/Button.d.ts +1 -0
- package/definitions/game/ui/component/Component.d.ts +1 -1
- package/definitions/game/ui/component/RangeRow.d.ts +1 -0
- package/definitions/game/ui/component/Text.d.ts +2 -0
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +1 -0
- package/definitions/game/utilities/Version.d.ts +4 -0
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ export default class Button extends Component implements IDisableable {
|
|
|
64
64
|
setText(text?: TranslationGenerator): this;
|
|
65
65
|
getText(): TranslationGenerator | undefined;
|
|
66
66
|
getTextAsString(): string;
|
|
67
|
+
setInheritTextTooltip(): this;
|
|
67
68
|
refreshText(): this;
|
|
68
69
|
setIcon(icon?: IIcon, scale?: boolean): this;
|
|
69
70
|
private sound?;
|
|
@@ -328,7 +328,7 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
|
|
|
328
328
|
*/
|
|
329
329
|
schedule(ms: number, debounce: number, cb?: (this: this, component: this) => any, ...args: any[]): this;
|
|
330
330
|
protected onContextMenu(api: IBindHandlerApi): boolean;
|
|
331
|
-
|
|
331
|
+
protected entered: boolean;
|
|
332
332
|
protected onEnter(reason: "mouse" | "focus"): void;
|
|
333
333
|
private menuCancelHideTooltip;
|
|
334
334
|
protected onLeave(reason: "mouse" | "focus" | "remove"): void;
|
|
@@ -37,5 +37,6 @@ export declare class RangeRow extends BlockRow implements IRefreshable, IDisable
|
|
|
37
37
|
addDefaultButton(defaultValue?: () => number): this;
|
|
38
38
|
addDescription(initializer: (description: Paragraph) => any): this;
|
|
39
39
|
refresh(): this;
|
|
40
|
+
setInheritTextTooltip(): this;
|
|
40
41
|
private updateDisplay;
|
|
41
42
|
}
|
|
@@ -21,6 +21,7 @@ import Translation from "language/Translation";
|
|
|
21
21
|
import Component from "ui/component/Component";
|
|
22
22
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
23
23
|
import type { IInput, Modifier } from "ui/input/IInput";
|
|
24
|
+
import type Tooltip from "ui/tooltip/Tooltip";
|
|
24
25
|
import type { IReferenceSection, ISegment, IStringSection } from "utilities/string/Interpolator";
|
|
25
26
|
export default class Text extends Component {
|
|
26
27
|
static resolve(translation: TranslationGenerator | undefined, additionalSegments?: ISegment[], ...args: any[]): IStringSection[];
|
|
@@ -85,6 +86,7 @@ export declare class BasicText extends Component {
|
|
|
85
86
|
inputIndex?: number;
|
|
86
87
|
protected input?: IInput;
|
|
87
88
|
protected inputModifier?: Modifier;
|
|
89
|
+
currentTooltip?: (tooltip: Tooltip) => any;
|
|
88
90
|
constructor(elementType?: string);
|
|
89
91
|
setText(text: IStringSection & Partial<IColorSection> & Partial<ILinkSection> & Partial<IHeadingSection> & Partial<ITooltipSection> & Partial<IReferenceSection> & Partial<IListItemSection> & Partial<IBindingsSection>): this;
|
|
90
92
|
private setTooltipLocation;
|
|
@@ -17,6 +17,10 @@ export interface IVersionInfo {
|
|
|
17
17
|
patch: number;
|
|
18
18
|
name?: string;
|
|
19
19
|
date?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* A number representing the patch (if beta) or minor (if release), used when the stage is not known
|
|
22
|
+
*/
|
|
23
|
+
update?: number;
|
|
20
24
|
}
|
|
21
25
|
declare module Version {
|
|
22
26
|
const versionInfoRegExp: RegExp;
|
package/package.json
CHANGED