Skip to main content

TextItemConfig

Hierarchy

Index

Properties

optionalAllowEffect

AllowEffect?: EffectName[]

A list with extra to-be allowed effect names. Should only defined when there are effects that are exclusively managed by script hooks and thus cannot be extracted from the normal extended item options.

Archetype

Archetype: text

The archetype of the extended item config

optionalBaselineProperty

BaselineProperty?: Item

To-be initialized properties independent of the selected item module(s). Relevant if there are properties that are (near) exclusively managed by ExtendedItemConfig.ScriptHooks functions.

optionalChatSetting

ChatSetting?: default

The chat message setting for the item. This can be provided to allow finer-grained chatroom message keys for the item.

optionalChatTags

ChatTags?: CommonChatTags[]

An array of the chat message tags that should be included in the item's chatroom messages.

optionalCopyConfig

CopyConfig?: { AssetName: string; GroupName?: AssetGroupName }

The group name and asset name of a configuration to copy - useful if multiple items share the same config


Type declaration

optionalDialogPrefix

DialogPrefix?: { Chat?: string | ExtendedItemChatCallback<TextItemOption>; Header?: string | ExtendedItemHeaderCallback<TextItemData> }

A record containing various dialog keys used by the extended item screen


Type declaration

optionalDictionary

Contains custom dictionary entries in the event that the base ones do not suffice.

optionalDrawData

DrawData?: ExtendedItemConfigDrawData<Partial<Text>>

An interface with element-specific drawing data for a given screen.

optionalDrawImages

DrawImages?: false

A boolean indicating whether or not images should be drawn for the option and/or module selection screen.

optionalEventListeners

EventListeners?: Partial<Record<Text | Text2 | Text3, TextItemEventListener>>

optionalFont

Font?: string

The font used for dynamically drawing text. Requires AssetDefinition.DynamicAfterDraw to be set.

MaxLength

MaxLength: Partial<Record<Text | Text2 | Text3, number>>

A record with the maximum length for each text-based properties with an input field.

optionalName

Name?: string

The unique name for this (sub)-screen used for the automatic construction of ItemProperties.TypeRecord keys. Names should be short.

If not explicitly specified defaults to the name of ExtendedItemData.parentOption for sub screens and the name of the archetype in case of the (outer-most) super screen.

optionalPushOnPublish

PushOnPublish?: boolean

optionalScriptHooks

A recond containing functions that are run on load, click, draw, exit, and validate, with the original archetype function and parameters passed on to them. If undefined, these are ignored. Note that scripthook functions must be loaded before Female3DCGExtended.js in index.html.