Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ItemDismantleInfo

Index

Type aliases

Mode

Mode: "action" | "standalone"

Variables

Const SYMBOL_IS_DISMANTLE_INSPECTION

SYMBOL_IS_DISMANTLE_INSPECTION: unique symbol = Symbol("IS_DISMANTLE_INSPECTION")

Const useInfo

useInfo: UseInfo<{ dismantle: IDismantleDescription }, Dismantle, {}, Item> = UseInfo.of<Item>().actions(ActionType.Dismantle).handle(info => {const dismantle = info.description.dismantle;if (!dismantle) {return undefined;}if (info.details.has(SYMBOL_IS_DISMANTLE_INSPECTION)) {return undefined; // dismantle action info shouldn't show for dismantle inspections}return { ...info, dismantle };}).apply(({ type, dismantle }) => [getRequired(type, dismantle),LabelledValue.label(UiTranslation.GameTooltipItemUseActionDismantleProduces).add(...getProduced(dismantle)).addClasses("labelled-list", "display-inline").setComponent(Text).setInline(),]).setDisplayLevel(InfoDisplayLevel.Extra)

Functions

getProduced

getRequired

getRequiredInternal

getRequiredTranslation

  • Parameters

    Returns undefined | { item: any; translation: any }

Generated using TypeDoc