Classe motore
TextChannelWindow
*Questo contenuto è tradotto usando AI (Beta) e potrebbe contenere errori. Per visualizzare questa pagina in inglese, clicca qui.
Riepilogo
Riferimento API
Proprietà
FontFace
Campioni di codice
Font della Finestra di Testo Personalizzata
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 si applica solo quando UseDefaultFont è falso
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGuiUseDefaultFont
Campioni di codice
Font della Finestra di Testo Personalizzata
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 si applica solo quando UseDefaultFont è falso
window.UseDefaultFont = false
window.FontFace = Font.fromName("FredokaOne")
window.Parent = screenGui