Clase de motor
StyleBase
*Este contenido se traduce usando la IA (Beta) y puede contener errores. Para ver esta página en inglés, haz clic en aquí.
Resumen
Métodos
InsertStyleRule(rule: StyleRule,priority: number?):() |
SetStyleRules(rules: Instances):() |
Eventos
Heredado por
Referencia API
Métodos
InsertStyleRule
SetStyleRules
StyleBase:SetStyleRules(rules:Instances):()
Parámetros
rules:Instances |
Devuelve
()
Muestras de código
Establecer Reglas de Estilo
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local coreSheet = Instance.new("StyleSheet")
coreSheet.Name = "CoreSheet"
coreSheet.Parent = ReplicatedStorage
local styleRuleA = Instance.new("StyleRule")
styleRuleA.Selector = "Frame"
styleRuleA:SetProperty("BackgroundColor3", Color3.new(1, 0, 0))
local styleRuleB = Instance.new("StyleRule")
styleRuleB.Selector = "Frame"
styleRuleB:SetProperty("BackgroundColor3", Color3.new(0, 1, 0))
coreSheet:SetStyleRules({ styleRuleA, styleRuleB })Eventos