@kismet.ts/core / Exports / Comment
Class: Comment
Hierarchy
↳
Comment
↳↳
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 Comment(comment?
)
Parameters
Name | Type |
---|---|
comment? | string |
Overrides
Defined in
Properties
borderColor
• borderColor: KismetColor
Defined in
borderWidth
• borderWidth: number
Defined in
commentOptions
• commentOptions: KismetComment
= {}
Inherited from
BaseSequenceItem.commentOptions
Defined in
connections
• connections: KismetConnections
Inherited from
Defined in
drawBox
• drawBox: boolean
Defined in
fillColor
• fillColor: KismetColor
Defined in
fillMaterial
• fillMaterial: null
| string
Defined in
fillTexture
• fillTexture: null
| string
Defined in
filled
• filled: boolean
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 |
Defined in
tileFill
• tileFill: boolean
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
BaseSequenceItem.ClassData
Defined in
baseJSON
• Private
get
baseJSON(): Record
<string
, KismetVariableValue
>
Returns
Record
<string
, KismetVariableValue
>
Inherited from
BaseSequenceItem.baseJSON
Defined in
category
• get
category(): undefined
| string
Returns
undefined
| string
Inherited from
BaseSequenceItem.category
Defined in
linkId
• get
linkId(): string
Returns
string
Inherited from
BaseSequenceItem.linkId
Defined in
position
• get
position(): KismetPosition
Returns
Inherited from
BaseSequenceItem.position
Defined in
rawName
• get
rawName(): string
Returns
string
Inherited from
BaseSequenceItem.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
BaseSequenceItem.breakAllLinks
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
BaseSequenceItem.getConnection
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
BaseSequenceItem.hideUnusedConnections
Defined in
isAction
▸ isAction(): this is SequenceAction
Returns
this is SequenceAction
Inherited from
Defined in
isCommentFrame
▸ isCommentFrame(): boolean
Returns
boolean
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
BaseSequenceItem.isSequenceActionNode
Defined in
isSequenceItem
▸ isSequenceItem(): this is SequenceItemType
Returns
this is SequenceItemType
Inherited from
BaseSequenceItem.isSequenceItem
Defined in
isSequenceNode
▸ isSequenceNode(): this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Returns
this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Inherited from
BaseSequenceItem.isSequenceNode
Defined in
isVariable
▸ isVariable(): this is SequenceVariable
Returns
this is SequenceVariable
Inherited from
Defined in
setBorder
▸ setBorder(options?
): Comment
Parameters
Name | Type |
---|---|
options? | Object |
options.color? | KismetColor |
options.width? | number |
Returns
Defined in
setComment
▸ setComment(comment
): Comment
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?
): Comment
Parameters
Name | Type |
---|---|
options? | Object |
options.color? | KismetColor |
options.material? | string |
options.texture? | string |
options.tileFill? | boolean |
Returns
Defined in
setPosition
▸ setPosition(position
, offset?
): Comment
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
): Comment
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?
): Comment
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
): Comment
Parameters
Name | Type |
---|---|
size | KismetPosition |
Returns
Defined in
setStyle
▸ setStyle(style
): Comment
Parameters
Name | Type |
---|---|
style | "default" |
Returns
Defined in
showAllConnections
▸ showAllConnections(): void
Show all connection sockets.
Same as the editor right click > Show all connectors
Returns
void
Inherited from
BaseSequenceItem.showAllConnections
Defined in
toJSON
▸ toJSON(): Record
<string
, KismetVariableValue
>
Returns
Record
<string
, KismetVariableValue
>
Overrides
Defined in
toString
▸ toString(): string
Returns
string
Overrides
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 ][] |