@kismet.ts/core / Exports / CommentFrame
Class: CommentFrame
Hierarchy
↳
CommentFrame
Table of contents
Constructors
Properties
- borderColor
- borderWidth
- commentOptions
- connections
- drawBox
- fillColor
- fillMaterial
- fillTexture
- filled
- id
- inputs
- name
- raw
- rawData
- sequence
- size
- tileFill
- type
Accessors
Methods
- breakAllLinks
- equals
- getConnection
- hideUnusedConnections
- isAction
- isCommentFrame
- isCondition
- isEvent
- isSequence
- isSequenceActionNode
- isSequenceItem
- isSequenceNode
- isVariable
- setBorder
- setComment
- setFilled
- setPosition
- setProperty
- setSequence
- setSize
- setStyle
- showAllConnections
- toJSON
- toString
- fromJSON
- fromRaw
Constructors
constructor
• new CommentFrame(comment?)
Parameters
| Name | Type |
|---|---|
comment? | string |
Overrides
Defined in
Properties
borderColor
• borderColor: KismetColor
Inherited from
Defined in
borderWidth
• borderWidth: number
Inherited from
Defined in
commentOptions
• commentOptions: KismetComment = {}
Inherited from
Defined in
connections
• connections: KismetConnections
Inherited from
Defined in
drawBox
• drawBox: boolean
Inherited from
Defined in
fillColor
• fillColor: KismetColor
Inherited from
Defined in
fillMaterial
• fillMaterial: null | string
Inherited from
Defined in
fillTexture
• fillTexture: null | string
Inherited from
Defined in
filled
• filled: boolean
Inherited from
Defined in
id
• Readonly id: ProcessId
Inherited from
Defined in
inputs
• Protected inputs: Object
Type declaration
| Name | Type |
|---|---|
input? | string[] |
output? | string[] |
variable? | string[] |
Inherited from
Defined in
name
• name: string
Inherited from
Defined in
raw
• raw: [string, KismetVariableValue][] = []
Inherited from
Defined in
rawData
• rawData: BaseKismetItemRawData
Inherited from
Defined in
sequence
• sequence: string
Inherited from
Defined in
size
• size: Object
Type declaration
| Name | Type |
|---|---|
x | number |
y | number |
Inherited from
Defined in
tileFill
• tileFill: boolean
Inherited from
Defined in
type
• Readonly type: null | SequenceItemTypeName
Inherited from
Defined in
Accessors
ClassData
• get ClassData(): Record<"Class" | "ClassType" | "Package", string>
Returns
Record<"Class" | "ClassType" | "Package", string>
Inherited from
Comment.ClassData
Defined in
baseJSON
• Private get baseJSON(): Record<string, KismetVariableValue>
Returns
Record<string, KismetVariableValue>
Inherited from
Comment.baseJSON
Defined in
category
• get category(): undefined | string
Returns
undefined | string
Inherited from
Comment.category
Defined in
linkId
• get linkId(): string
Returns
string
Inherited from
Comment.linkId
Defined in
position
• get position(): KismetPosition
Returns
Inherited from
Comment.position
Defined in
rawName
• get rawName(): string
Returns
string
Inherited from
Comment.rawName
Defined in
Methods
breakAllLinks
▸ 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
Defined in
equals
▸ equals(item): boolean
Check whether another item is of the same type as this item
Parameters
| Name | Type |
|---|---|
item | SequenceItemType |
Returns
boolean
Inherited from
Defined in
getConnection
▸ getConnection(type, connectionName?): null | BaseKismetConnection | KismetConnection
Parameters
| Name | Type |
|---|---|
type | KismetConnectionType |
connectionName? | string |
Returns
null | BaseKismetConnection | KismetConnection
Inherited from
Defined in
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
Defined in
isAction
▸ isAction(): this is SequenceAction
Returns
this is SequenceAction
Inherited from
Defined in
isCommentFrame
▸ isCommentFrame(): boolean
Returns
boolean
Inherited from
Defined in
isCondition
▸ isCondition(): this is SequenceCondition
Returns
this is SequenceCondition
Inherited from
Defined in
isEvent
▸ isEvent(): this is SequenceEvent<Object>
Returns
this is SequenceEvent<Object>
Inherited from
Defined in
isSequence
▸ isSequence(): this is Sequence
Returns
this is Sequence
Inherited from
Defined in
isSequenceActionNode
▸ isSequenceActionNode(): this is SequenceAction | SequenceCondition
Returns
this is SequenceAction | SequenceCondition
Inherited from
Defined in
isSequenceItem
▸ isSequenceItem(): this is SequenceItemType
Returns
this is SequenceItemType
Inherited from
Defined in
isSequenceNode
▸ isSequenceNode(): this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Returns
this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Inherited from
Defined in
isVariable
▸ isVariable(): this is SequenceVariable
Returns
this is SequenceVariable
Inherited from
Defined in
setBorder
▸ setBorder(options?): CommentFrame
Parameters
| Name | Type |
|---|---|
options? | Object |
options.color? | KismetColor |
options.width? | number |
Returns
Inherited from
Defined in
setComment
▸ setComment(comment): CommentFrame
Set a comment on this item. This comment will be visible in the editor
Parameters
| Name | Type | Description |
|---|---|---|
comment | string | { comment?: string ; outputCommentToScreen?: boolean ; supressAutoComment?: boolean } | The text of the comment or the text in combination with comment options |
Returns
Inherited from
Defined in
setFilled
▸ setFilled(options?): CommentFrame
Parameters
| Name | Type |
|---|---|
options? | Object |
options.color? | KismetColor |
options.material? | string |
options.texture? | string |
options.tileFill? | boolean |
Returns
Inherited from
Defined in
setPosition
▸ setPosition(position, offset?): CommentFrame
Set a new position for this item
Parameters
| Name | Type | Description |
|---|---|---|
position | KismetPosition | The new position coordinates |
offset? | boolean | Whether to use the new position as an offset to the current position (default: false) |
Returns
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
...properties | { name: string ; value: KismetVariableValue }[] | The properties to set. Will not overwrite currently set properties |
Returns
Inherited from
Defined in
setSequence
▸ setSequence(sequence, addToSequence?): CommentFrame
Change the sequence of this item
Parameters
| Name | Type | Description |
|---|---|---|
sequence | string | Sequence | The new sequence of this item: the linkId or the sequence itself |
addToSequence? | boolean | If 'sequence' is the new sequence, whether to add the item to the sequence |
Returns
Inherited from
Defined in
setSize
▸ setSize(size): CommentFrame
Parameters
| Name | Type |
|---|---|
size | KismetPosition |
Returns
Inherited from
Defined in
setStyle
▸ setStyle(style): CommentFrame
Parameters
| Name | Type |
|---|---|
style | "default" |
Returns
Inherited from
Defined in
showAllConnections
▸ showAllConnections(): void
Show all connection sockets.
Same as the editor right click > Show all connectors
Returns
void
Inherited from
Defined in
toJSON
▸ toJSON(): Record<string, KismetVariableValue>
Returns
Record<string, KismetVariableValue>
Inherited from
Defined in
toString
▸ toString(): string
Returns
string
Inherited from
Defined in
fromJSON
▸ Static fromJSON(input): BaseSequenceItem
Converts an object to an item ands sets all other variables on the item. Special object keys:
Parameters
| Name | Type |
|---|---|
input | Record<string, KismetVariableValue> |
Returns
Inherited from
Defined in
fromRaw
▸ Static fromRaw(input): BaseSequenceItem
Converts a two dimensional array of properties to an object. Then calls fromJSON with the object
Parameters
| Name | Type |
|---|---|
input | [string, KismetVariableValue][] |