Engine Class
TextChannelWindow
*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่
ข้อมูลสรุป
เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
FontFace
ตัวอย่างโค้ด
ฟอนต์หน้าต่างข้อความที่กำหนดเอง
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 = screenGuiUseDefaultFont
ตัวอย่างโค้ด
ฟอนต์หน้าต่างข้อความที่กำหนดเอง
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