學習
引擎類別
TextChannelWindow
無法瀏覽

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡。


概要

繼承成員

API 參考
屬性
Target
平行讀取
功能: UI, Chat
TextChannelWindow.Target:TextChannel

FontFace
平行讀取
功能: UI, Chat
TextChannelWindow.FontFace:Font
範例程式碼
自訂文字頻道視窗字型
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
local window = Instance.new("TextChannelWindow")
window.Size = UDim2.fromOffset(400, 300)
window.Target = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
-- FontFace 僅在 UseDefaultFont 為 false 時應用
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGui

UseDefaultFont
平行讀取
功能: UI, Chat
TextChannelWindow.UseDefaultFont:boolean
範例程式碼
自訂文字頻道視窗字型
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
local window = Instance.new("TextChannelWindow")
window.Size = UDim2.fromOffset(400, 300)
window.Target = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
-- FontFace 僅在 UseDefaultFont 為 false 時應用
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGui

©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。