Class · inherits TextChatConfigurations
ChatWindowConfiguration
Configures properties of the default chat window.
About ChatWindowConfiguration
Configures properties of the default text chat window. It is parented to
TextChatService.
Chat UI composition
The default chat UI is composed of two separate elements: the chat window
(message list) configured by this object, and the chat input bar
configured by ChatInputBarConfiguration. Each element reports its own
AbsoluteSize and AbsolutePosition independently. To determine the total
screen bounds of the entire chat UI, combine values from both configurations
by computing the union of the two rectangles.
Properties 14
AbsolutePosition
: Vector2ReadOnlyNotReplicatedActual screen position of the default chat window, in pixels.Read-only property that provides the screen position of the default chat window (message list) in pixels. Behaves similarly to
GuiBase2d.AbsolutePosition.This value represents only the message list portion of the chat UI, not the entire chat interface. To get the total bounds including the input bar, see
ChatInputBarConfiguration.AbsolutePositionand combine both regions. See the code example in the class description above.AbsoluteSize
: Vector2ReadOnlyNotReplicatedActual screen size of the default chat window, in pixels.Read-only property that provides the screen size of the default chat window (message list) in pixels. Behaves similarly to
GuiBase2d.AbsoluteSize.This value represents only the message list portion of the chat UI, not the entire chat interface. To get the total bounds including the input bar, see
ChatInputBarConfiguration.AbsoluteSizeand combine both regions. See the code example in the class description above.BackgroundColor3
: Color3Background color of the default chat window.Background color of the default chat window. If the background color is not overridden, this value will respect the user's
GuiService.PreferredTransparencyby making the menu more gray as the transparency of the menu decreases. Default value isColor3.new(25, 27, 29).BackgroundTransparency
: doubleBackground transparency of the default chat window.Background transparency of the default chat window as a number between
0and1. This value is multiplied with the user'sGuiService.PreferredTransparencyto create the effective background transparency used by the chat window, which may be more opaque than this value set here. Default value is0.3.Enabled
: booleanWhether to show the default chat window.Whether to show the default chat window. Set to
falseto hide.FontFace
: Datatype.FontFont used to render text in the default chat window.Font used to render text in the default chat window. Default is
Font.BuilderSansMedium.HeightScale
: floatFactor by which the height of the default chat window should be scaled.Factor by which the height of the default chat window should be scaled. Must be a value between
0.5and2. Defining a value outside of range clamps the actual value to the closest bound.HorizontalAlignment
: HorizontalAlignmentHorizontal alignment of the chat window.Horizontal alignment of the chat window. Behaves similarly to
UIGridStyleLayout.HorizontalAlignment. Setting toLeftorRightadding a small padding away from touching the corresponding horizontal edge of the screen. Setting toCenteraligns the window in the horizontal middle of the screen. Default value isLeft.TextColor3
: Color3Color of the text in default chat window.Color of the text in default chat window. Default value is
Color3.new(255, 255, 255).TextSize
: int64Size of the text in default chat window.Size of the text in default chat window. Default value is
14.TextStrokeColor3
: Color3Color of the text stroke for text in default chat window.Color of the text stroke for text in default chat window. Default value is
Color3.new(0, 0, 0).TextStrokeTransparency
: doubleTransparency of the text stroke for text in default chat window.Transparency of the text stroke for text in default chat window. Default value is
0.5.VerticalAlignment
: VerticalAlignmentVertical alignment of the chat window.Vertical alignment of the chat window. Behaves similarly to
UIGridStyleLayout.VerticalAlignment. Setting toToporBottomadds a small padding away from touching the corresponding edge of the screen. Setting toCenteraligns the window in the vertical middle of the screen. Default value isTop.WidthScale
: floatFactor by which the width of the default chat window should be scaled.Factor by which the width of the default chat window should be scaled. Must be a value between
0.5and2. Defining a value outside of range clamps the actual value to the closest bound.
Methods 1
DeriveNewMessageProperties
() → ChatWindowMessagePropertiesCreates a newChatWindowMessagePropertiesinstance that can be used to customize the appearance of messages in the chat window.Creates a new
ChatWindowMessagePropertiesinstance that can be used to customize the appearance of messages in the chat window.ChatWindowMessagePropertiesinherits fromTextChatMessageProperties.This is intended to be used during custom
TextChatService.OnChatWindowAddedcallbacks.
ChatWindowConfiguration also has every member of TextChatConfigurations. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.