Reference API Roblox

Engine API

Website

Related

Reference API Roblox

ChatWindowConfiguration

Configures properties of the default chat window.

This class is not creatable. Instances of this class cannot be created with Instance.new.
Tags: [NotCreatable]

Member index 17

HistoryMember
726AbsolutePosition: Vector2
726AbsoluteSize: Vector2
726BackgroundColor3: Color3
726BackgroundTransparency: double
726Enabled: bool
726FontFace: Font
726HeightScale: float
726HorizontalAlignment: HorizontalAlignment
726TextColor3: Color3
726TextSize: int64
726TextStrokeColor3: Color3
726TextStrokeTransparency: double
726VerticalAlignment: VerticalAlignment
726WidthScale: float
645DeriveNewMessageProperties(): ChatWindowMessageProperties
inherited from Instance
726Archivable: bool
726Capabilities: SecurityCapabilities
726IsInSandbox: bool
726Name: string
726Parent: Instance
726PredictionMode: PredictionMode
726Sandboxed: bool
726UniqueId: UniqueId
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
648GetChildren(): Instances
462GetDebugId(scopeLength: int = 4): string
707GetDescendants(): Instances
486GetFullName(): string
706GetStyled(name: string, selector: string?): Variant
657GetStyledPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
664IsPropertyModified(property: string): bool
698QueryDescendants(selector: string): Instances
573Remove(): null
576RemoveTag(tag: string): null
664ResetPropertyToDefault(property: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
726children(): Instances
726clone(): Instance
726destroy(): null
726findFirstChild(name: string, recursive: bool = false): Instance
726getChildren(): Instances
726isDescendantOf(ancestor: Instance): bool
726remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
726childAdded(child: Instance)
inherited from Object
726ClassName: string
726className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
726isA(className: string): bool
647Changed(property: string)

Description

Configures properties of the default text chat window. It is parented to TextChatService.

History 55

Members 17

AbsolutePosition

TypeDefault
Vector2

Read-only property that provides the screen position of the default chat window in pixels. Behaves similarly to GuiBase2d.AbsolutePosition.

This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 3

Tags: [ReadOnly, NotReplicated]

AbsoluteSize

TypeDefault
Vector2

Read-only property that provides the screen size of the default chat window in pixels. Behaves similarly to GuiBase2d.AbsoluteSize.

This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 3

Tags: [ReadOnly, NotReplicated]

BackgroundColor3

TypeDefault
Color3

Background color of the default chat window. If the background color is not overridden, this value will respect the user's GuiService.PreferredTransparency by making the menu more gray as the transparency of the menu decreases. Default value is Color3.new(25, 27, 29).

History 3

BackgroundTransparency

TypeDefault
double

Background transparency of the default chat window as a number between 0 and 1. This value is multiplied with the user's GuiService.PreferredTransparency to create the effective background transparency used by the chat window, which may be more opaque than this value set here. Default value is 0.3.

History 3

DeriveNewMessageProperties

Parameters (0)
No parameters.
Returns (1)
ChatWindowMessageProperties

Creates a new ChatWindowMessageProperties instance that can be used to customize the appearance of messages in the chat window. ChatWindowMessageProperties inherits from TextChatMessageProperties.

This is intended to be used during custom TextChatService.OnChatWindowAdded callbacks.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
local TextChatService = game:GetService("TextChatService")
local ChatWindowConfiguration = TextChatService.ChatWindowConfiguration

TextChatService.OnChatWindowAdded = function(textChatMessage)
  local properties = ChatWindowConfiguration:DeriveNewMessageProperties()

  if textChatMessage.Metadata == "Important" then
    properties.TextColor3 = Color3.fromRGB(255, 0, 0)
  end

  return properties
end

History 1

Enabled

TypeDefault
bool

Whether to show the default chat window. Set to false to hide.

History 3

FontFace

TypeDefault
Font

Font used to render text in the default chat window. Default is Font.BuilderSansMedium.

History 3

HeightScale

TypeDefault
float

Factor by which the height of the default chat window should be scaled. Must be a value between 0.5 and 2. Defining a value outside of range clamps the actual value to the closest bound.

History 3

HorizontalAlignment

TypeDefault
HorizontalAlignment

Horizontal alignment of the chat window. Behaves similarly to UIGridStyleLayout.HorizontalAlignment. Setting to Left or Right adding a small padding away from touching the corresponding horizontal edge of the screen. Setting to Center aligns the window in the horizontal middle of the screen. Default value is Left.

History 5

TextColor3

TypeDefault
Color3

Color of the text in default chat window. Default value is Color3.new(255, 255, 255).

History 3

TextSize

TypeDefault
int64

Size of the text in default chat window. Default value is 14.

History 3

TextStrokeColor3

TypeDefault
Color3

Color of the text stroke for text in default chat window. Default value is Color3.new(0, 0, 0).

History 3

TextStrokeTransparency

TypeDefault
double

Transparency of the text stroke for text in default chat window. Default value is 0.5.

History 3

VerticalAlignment

TypeDefault
VerticalAlignment

Vertical alignment of the chat window. Behaves similarly to UIGridStyleLayout.VerticalAlignment. Setting to Top or Bottom adds a small padding away from touching the corresponding edge of the screen. Setting to Center aligns the window in the vertical middle of the screen. Default value is Top.

History 5

WidthScale

TypeDefault
float

Factor by which the width of the default chat window should be scaled. Must be a value between 0.5 and 2. Defining a value outside of range clamps the actual value to the closest bound.

History 3

Settings