@wayward/types 2.12.2-beta.dev.20221115.1 → 2.12.2-beta.dev.20221117.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.
@@ -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
- private entered;
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.12.2-beta.dev.20221115.1",
4
+ "version": "2.12.2-beta.dev.20221117.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",