ChatWindowConfiguration

Mostrar obsoleto

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.

Não criável

Configura as propriedades da janela de chat de texto padrão. É parente de TextChatService .

Resumo

Propriedades

Métodos

Propriedades

AbsolutePosition

Somente leitura
Não replicado

AbsoluteSize

Somente leitura
Não replicado

BackgroundColor3

Ler Parallel

BackgroundTransparency

Ler Parallel

Enabled

Ler Parallel

FontFace

Ler Parallel

HeightScale

Ler Parallel

HorizontalAlignment

TextColor3

Ler Parallel

TextSize

Ler Parallel

TextStrokeColor3

Ler Parallel

TextStrokeTransparency

Ler Parallel

VerticalAlignment

WidthScale

Ler Parallel

Métodos

DeriveNewMessageProperties


Devolução

Amostras de código

CanUsersDirectChatAsync

local TextChatService = game:GetService("TextChatService")
local directChatParticipants = TextChatService:CanUsersDirectChatAsync(userId1, { userId2 })
-- Check for eligible participants
if #directChatParticipants > 0 then
local directChannel = Instance.new("TextChannel")
directChannel.Parent = TextChatService
for _, participant in directChatParticipants do
directChannel:AddUserAsync(participant)
end
return directChannel
end
warn("Could not create TextChannel. Not enough eligible users.")
return nil

Eventos