s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
StyleSheet
chevron_left Classes
class
StyleSheet

Constructors

functionsStyleSheet

Fields

crop_dinKeyFramescrop_dinMixinscrop_dinVariables

Properties

data_objectFileNamedata_objectIncludedFilesdata_objectNodes

Methods

functionsAddKeyFramesfunctionsGetMixinfunctionsGetVariablefunctionsReleasefunctionsReplaceVariablesfunctionsSetMixinfunctionsTryGetMixin

Static Properties

data_objectLoaded

Static Methods

functionsFromFilefunctionsFromString
StyleSheet
class Sandbox.UI .
Sandbox.Engine

build Constructors 1

StyleSheet ()

crop_din Fields 3

KeyFrames
Dictionary`2
Mixins
Dictionary`2
Variables
Dictionary`2

data_object Properties 3

FileName
string
IncludedFiles
List`1
Nodes
List`1

functions Methods 7

AddKeyFrames (frames)
GetMixin (name)
MixinDefinition
Get a mixin by name or null if not found.
GetVariable (name, defaultValue)
string
Release ()
Releases the filesystem watcher so we won't get file changed events.
ReplaceVariables (str)
string
SetMixin (mixin)
Register a mixin definition.
TryGetMixin (name, mixin)
bool
Try to get a mixin by name.

data_object Static Properties 1

Loaded
List`1

functions Static Methods 2

FromFile (filename, variables, failSilently)
StyleSheet
FromString (styles, filename, variables)
StyleSheet
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter