@kismet.ts/core / Exports / CommentFrame

Class: CommentFrame

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new CommentFrame(comment?)

Parameters

NameType
comment?string

Overrides

Comment.constructor

Defined in

structures/Comment.ts:169open in new window

Properties

borderColor

borderColor: KismetColor

Inherited from

Comment.borderColor

Defined in

structures/Comment.ts:18open in new window


borderWidth

borderWidth: number

Inherited from

Comment.borderWidth

Defined in

structures/Comment.ts:19open in new window


commentOptions

commentOptions: KismetComment = {}

Inherited from

Comment.commentOptions

Defined in

item/base.ts:62open in new window


connections

connections: KismetConnections

Inherited from

Comment.connections

Defined in

item/base.ts:64open in new window


drawBox

drawBox: boolean

Inherited from

Comment.drawBox

Defined in

structures/Comment.ts:15open in new window


fillColor

fillColor: KismetColor

Inherited from

Comment.fillColor

Defined in

structures/Comment.ts:20open in new window


fillMaterial

fillMaterial: null | string

Inherited from

Comment.fillMaterial

Defined in

structures/Comment.ts:21open in new window


fillTexture

fillTexture: null | string

Inherited from

Comment.fillTexture

Defined in

structures/Comment.ts:22open in new window


filled

filled: boolean

Inherited from

Comment.filled

Defined in

structures/Comment.ts:16open in new window


id

Readonly id: ProcessId

Inherited from

Comment.id

Defined in

item/base.ts:67open in new window


inputs

Protected inputs: Object

Type declaration

NameType
input?string[]
output?string[]
variable?string[]

Inherited from

Comment.inputs

Defined in

item/base.ts:75open in new window


name

name: string

Inherited from

Comment.name

Defined in

item/base.ts:68open in new window


raw

raw: [string, KismetVariableValue][] = []

Inherited from

Comment.raw

Defined in

item/base.ts:70open in new window


rawData

rawData: BaseKismetItemRawData

Inherited from

Comment.rawData

Defined in

item/base.ts:71open in new window


sequence

sequence: string

Inherited from

Comment.sequence

Defined in

item/base.ts:65open in new window


size

size: Object

Type declaration

NameType
xnumber
ynumber

Inherited from

Comment.size

Defined in

structures/Comment.ts:14open in new window


tileFill

tileFill: boolean

Inherited from

Comment.tileFill

Defined in

structures/Comment.ts:17open in new window


type

Readonly type: null | SequenceItemTypeName

Inherited from

Comment.type

Defined in

item/_base.ts:19open in new window

Accessors

ClassData

get ClassData(): Record<"Class" | "ClassType" | "Package", string>

Returns

Record<"Class" | "ClassType" | "Package", string>

Inherited from

Comment.ClassData

Defined in

item/base.ts:142open in new window


baseJSON

Private get baseJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Inherited from

Comment.baseJSON

Defined in

item/base.ts:115open in new window


category

get category(): undefined | string

Returns

undefined | string

Inherited from

Comment.category

Defined in

item/base.ts:138open in new window


linkId

get linkId(): string

Returns

string

Inherited from

Comment.linkId

Defined in

item/base.ts:146open in new window


position

get position(): KismetPosition

Returns

KismetPosition

Inherited from

Comment.position

Defined in

item/base.ts:150open in new window


rawName

get rawName(): string

Returns

string

Inherited from

Comment.rawName

Defined in

item/base.ts:133open in new window

Methods

breakAllLinks(): void

Break all object links to other items.

Same as the editor right click > Break all links to Object(s)

Returns

void

Inherited from

Comment.breakAllLinks

Defined in

item/base.ts:162open in new window


equals

equals(item): boolean

Check whether another item is of the same type as this item

Parameters

NameType
itemSequenceItemType

Returns

boolean

Inherited from

Comment.equals

Defined in

item/base.ts:196open in new window


getConnection

getConnection(type, connectionName?): null | BaseKismetConnection | KismetConnection

Parameters

NameType
typeKismetConnectionType
connectionName?string

Returns

null | BaseKismetConnection | KismetConnection

Inherited from

Comment.getConnection

Defined in

item/base.ts:200open in new window


hideUnusedConnections

hideUnusedConnections(): void

Hide all connection sockets that have no connections currently.

Same as the editor right click > Hide unused connectors

Returns

void

Inherited from

Comment.hideUnusedConnections

Defined in

item/base.ts:173open in new window


isAction

isAction(): this is SequenceAction

Returns

this is SequenceAction

Inherited from

Comment.isAction

Defined in

item/_base.ts:29open in new window


isCommentFrame

isCommentFrame(): boolean

Returns

boolean

Inherited from

Comment.isCommentFrame

Defined in

structures/Comment.ts:49open in new window


isCondition

isCondition(): this is SequenceCondition

Returns

this is SequenceCondition

Inherited from

Comment.isCondition

Defined in

item/_base.ts:33open in new window


isEvent

isEvent(): this is SequenceEvent<Object>

Returns

this is SequenceEvent<Object>

Inherited from

Comment.isEvent

Defined in

item/_base.ts:37open in new window


isSequence

isSequence(): this is Sequence

Returns

this is Sequence

Inherited from

Comment.isSequence

Defined in

item/_base.ts:41open in new window


isSequenceActionNode

isSequenceActionNode(): this is SequenceAction | SequenceCondition

Returns

this is SequenceAction | SequenceCondition

Inherited from

Comment.isSequenceActionNode

Defined in

item/_base.ts:49open in new window


isSequenceItem

isSequenceItem(): this is SequenceItemType

Returns

this is SequenceItemType

Inherited from

Comment.isSequenceItem

Defined in

item/_base.ts:45open in new window


isSequenceNode

isSequenceNode(): this is SequenceAction | SequenceCondition | SequenceEvent<Object>

Returns

this is SequenceAction | SequenceCondition | SequenceEvent<Object>

Inherited from

Comment.isSequenceNode

Defined in

item/_base.ts:53open in new window


isVariable

isVariable(): this is SequenceVariable

Returns

this is SequenceVariable

Inherited from

Comment.isVariable

Defined in

item/_base.ts:60open in new window


setBorder

setBorder(options?): CommentFrame

Parameters

NameType
options?Object
options.color?KismetColor
options.width?number

Returns

CommentFrame

Inherited from

Comment.setBorder

Defined in

structures/Comment.ts:53open in new window


setComment

setComment(comment): CommentFrame

Set a comment on this item. This comment will be visible in the editor

Parameters

NameTypeDescription
commentstring | { comment?: string ; outputCommentToScreen?: boolean ; supressAutoComment?: boolean }The text of the comment or the text in combination with comment options

Returns

CommentFrame

Inherited from

Comment.setComment

Defined in

item/base.ts:216open in new window


setFilled

setFilled(options?): CommentFrame

Parameters

NameType
options?Object
options.color?KismetColor
options.material?string
options.texture?string
options.tileFill?boolean

Returns

CommentFrame

Inherited from

Comment.setFilled

Defined in

structures/Comment.ts:69open in new window


setPosition

setPosition(position, offset?): CommentFrame

Set a new position for this item

Parameters

NameTypeDescription
positionKismetPositionThe new position coordinates
offset?booleanWhether to use the new position as an offset to the current position (default: false)

Returns

CommentFrame

Inherited from

Comment.setPosition

Defined in

item/base.ts:244open in new window


setProperty

setProperty(...properties): CommentFrame

Set a variable if the variable has no variable connection. Used for properties you can set in the properties screen in the editor.

Parameters

NameTypeDescription
...properties{ name: string ; value: KismetVariableValue }[]The properties to set. Will not overwrite currently set properties

Returns

CommentFrame

Inherited from

Comment.setProperty

Defined in

item/base.ts:258open in new window


setSequence

setSequence(sequence, addToSequence?): CommentFrame

Change the sequence of this item

Parameters

NameTypeDescription
sequencestring | SequenceThe new sequence of this item: the linkId or the sequence itself
addToSequence?booleanIf 'sequence' is the new sequence, whether to add the item to the sequence

Returns

CommentFrame

Inherited from

Comment.setSequence

Defined in

item/base.ts:273open in new window


setSize

setSize(size): CommentFrame

Parameters

NameType
sizeKismetPosition

Returns

CommentFrame

Inherited from

Comment.setSize

Defined in

structures/Comment.ts:98open in new window


setStyle

setStyle(style): CommentFrame

Parameters

NameType
style"default"

Returns

CommentFrame

Inherited from

Comment.setStyle

Defined in

structures/Comment.ts:104open in new window


showAllConnections

showAllConnections(): void

Show all connection sockets.

Same as the editor right click > Show all connectors

Returns

void

Inherited from

Comment.showAllConnections

Defined in

item/base.ts:186open in new window


toJSON

toJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Inherited from

Comment.toJSON

Defined in

structures/Comment.ts:131open in new window


toString

toString(): string

Returns

string

Inherited from

Comment.toString

Defined in

structures/Comment.ts:159open in new window


fromJSON

Static fromJSON(input): BaseSequenceItem

Converts an object to an item ands sets all other variables on the item. Special object keys:

Parameters

NameType
inputRecord<string, KismetVariableValue>

Returns

BaseSequenceItem

Inherited from

Comment.fromJSON

Defined in

item/base.ts:342open in new window


fromRaw

Static fromRaw(input): BaseSequenceItem

Converts a two dimensional array of properties to an object. Then calls fromJSON with the object

Parameters

NameType
input[string, KismetVariableValue][]

Returns

BaseSequenceItem

Inherited from

Comment.fromRaw

Defined in

item/base.ts:322open in new window