Classes
Members
activeInstance :ChatLog
Type:
- Source:
groupApi :GroupsApi
Type:
- GroupsApi
- Source:
Methods
(static) findInstance(title, nameopt) → {ChatLog}
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| title | string | |||
| name | string | <optional> | "ChatLog" | 
- Source:
Returns:
- Type
- ChatLog
(static) getInstance(scene, title, nameopt) → {ChatLog}
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| scene | * | |||
| title | string | main | ||
| name | string | <optional> | "ChatLog" | 
- Source:
Returns:
- Type
- ChatLog
addAttachment(groupMessage)
    CHECKME this may make things easier but introduces dependency on the client
    Parameters:
| Name | Type | Description | 
|---|---|---|
| groupMessage | GroupMessage | 
- Source:
addListener()
    Add a listener to be called when input text is changed.
Listeners are current world, groups, i.e. whatever this chat is for.
- Source:
attachToHud()
    Attach chatlog to the HUD
- Source:
dispose()
    Clean up
- Source:
isSelectableMesh()
    XR pointer selection support
- Source:
leftSide()
    Move to left side of the screen
- Source:
log(who, what, link, local)
    Log something written by someone.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| who | String | who wrote that | 
| what | String | what they wrote | 
| link | object | world link | 
| local | boolean | FIXME not used | 
- Source:
logMessage(groupMessage)
    CHECKME this may make things easier but introduces dependency on the client
    Parameters:
| Name | Type | Description | 
|---|---|---|
| groupMessage | GroupMessage | 
- Source:
moveToAnchor()
    Move either left or right, whatever is the current anchor
- Source:
removeListener()
    Remove a listener
- Source:
rightSide()
    Move to right side of the screen
- Source:
shareWorld()
    Share a world: notifies all the listeners (world or group) with the world name, content and link
- Source:
show()
    Show both TextArea and TextAreaInput, and attach to HUD.
- Source:
write()
    Internally called on text input.
- Source: