ChatInputBarConfiguration

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

만들 수 없음

기본 텍스트 채팅 입력란의 속성을 구성합니다. 부모는 TextChatService입니다.

요약

속성

속성

AbsolutePosition

읽기 전용
복제되지 않음

기본 채팅 입력란의 화면 위치를 픽셀로 제공하는 읽기 전용 속성입니다. GuiBase2d.AbsolutePosition와 비슷하게 동작합니다.

AbsoluteSize

읽기 전용
복제되지 않음

기본 채팅 입력란의 화면 크기를 픽셀로 제공하는 읽기 전용 속성입니다. GuiBase2d.AbsoluteSize와 비슷하게 동작합니다.

AutocompleteEnabled

병렬 읽기

채팅 입력 바에 대한 자동 완성을 활성화할지 여부를 설정합니다. 자동 완성을 비활성화하려면 false로 설정합니다.

BackgroundColor3

병렬 읽기

기본 채팅 입력 바의 배경색. 기본값은 Color3.new(25, 27, 29) 입니다.

BackgroundTransparency

병렬 읽기

기본 채팅 입력 바의 배경 투명도가 숫자로 0에서 1 사이입니다.이 값은 사용자의 GuiService.PreferredTransparency와 곱해서 채팅 입력 바에서 사용되는 효과적인 배경 투명도를 생성하며, 여기에 설정된 값보다 불투명할 수 있습니다.기본값은 0.2 입니다.

Enabled

병렬 읽기

기본 채팅 입력 바를 표시할지 여부. 숨기려면 false로 숨기다.

FontFace

병렬 읽기

기본 채팅 입력란에서 텍스트를 렌더링하는 데 사용되는 글꼴. 기본값은 Enum.Font.BuilderSansMedium 입니다.

IsFocused

읽기 전용
복제되지 않음

기본 채팅 입력란이 포커스 되었는지 여부를 나타냅니다.입력란의 초점 상태 변경에 응답하는 콜백 함수를 구현할 수 있도록 속성 변경 이벤트를 발사하는 데 유용합니다.

코드 샘플

The code below includes a simple way to create a typing indicator bubble above a user's avatar when the user is typing. Paste into a LocalScript.

Typing Indicator Bubble

local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local ChatInputBarConfiguration = TextChatService:FindFirstChildOfClass("ChatInputBarConfiguration")
local BubbleChatConfiguration = TextChatService:FindFirstChildOfClass("BubbleChatConfiguration")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
-- Set up TextLabel
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.fromScale(1, 1)
textLabel.Text = ". . ."
textLabel.BackgroundColor3 = BubbleChatConfiguration.BackgroundColor3
textLabel.BorderColor3 = BubbleChatConfiguration.BackgroundColor3
textLabel.BackgroundTransparency = BubbleChatConfiguration.BackgroundTransparency
textLabel.TextColor3 = BubbleChatConfiguration.TextColor3
textLabel.FontFace = BubbleChatConfiguration.FontFace
textLabel.TextSize = BubbleChatConfiguration.TextSize
-- Parent a UICorner to the TextLabel to have rounded corners
local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 12)
uiCorner.Parent = textLabel
-- Set up Billboard
local typingIndicatorBillboard = Instance.new("BillboardGui")
typingIndicatorBillboard.Enabled = false
typingIndicatorBillboard.Size = UDim2.fromScale(1, 1)
typingIndicatorBillboard.StudsOffsetWorldSpace = Vector3.new(-0, 4, 0)
typingIndicatorBillboard.Adornee = Character
textLabel.Parent = typingIndicatorBillboard
typingIndicatorBillboard.Parent = LocalPlayer:FindFirstChildOfClass("PlayerGui")
ChatInputBarConfiguration:GetPropertyChangedSignal("IsFocused"):Connect(function()
-- Enable the typing indicator when the input bar is focused and disable otherwise
typingIndicatorBillboard.Enabled = ChatInputBarConfiguration.IsFocused
end)

KeyboardKeyCode

병렬 읽기

추가 키 사용자는 기본 채팅 입력란에 초점을 맞추도록 누르면 됩니다./ 키에 더해 초점을 맞추기 위한 추가 핫키를 원할 때 유용합니다.

PlaceholderColor3

병렬 읽기

기본 채팅 입력 바의 자리 표시자 텍스트 색상. 기본값은 Color3.new(178, 178, 178) 입니다.

TargetTextChannel

병렬 읽기

사용자가 기본 채팅 입력란으로 메시지를 보낼 때 사용할 TextChannel 를 결정합니다.

TextBox

병렬 읽기

사용자를 대신하여 메시지를 보내는 지정된 TextBox 인스턴스에 대한 참조.모습, 위치 및 레이아웃을 자유롭게 조작하여 사용자 지정 채팅 입력란 UI를 경험에 통합할 수 있습니다.이 속성을 사용자 지정 TextBox 로 설정하기로 선택하면 다음 행동에 대해 코드를 작성할 필요가 없습니다.

보안상 일부 제한이 적용되어 프로모트되면 TextBox 에서 ChatInputBarConfiguration.TextBox 로 Luau 코드가 수행할 수 없습니다.

TextColor3

병렬 읽기

기본 채팅 입력 바의 텍스트 색상. 기본값은 Color3.new(255, 255, 255) 입니다.

TextSize

병렬 읽기

기본 채팅 입력 바의 텍스트 크기. 기본값은 14 입니다.

TextStrokeColor3

병렬 읽기

기본 채팅 입력란의 텍스트에 대한 텍스트 스트로크 색상. 기본값은 Color3.new(0, 0, 0)입니다.

TextStrokeTransparency

병렬 읽기

기본 채팅 입력란의 텍스트 스트로크 투명도. 기본값은 0.5 입니다.

메서드

이벤트