s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games

Gamejams

Date
Theme

Date announced very soon. Theme revealed when the jam starts.

$50,000
prizepool
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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

functionsFromFilefunctionsFromInlinefunctionsFromString
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 3

FromFile (filename, variables, failSilently)
StyleSheet
FromInline (content, key)
StyleSheet
Get a stylesheet parsed from an inline string. The parsed sheet is cached under and shared - it only reparses if the content changes (hotload).
FromString (styles, filename, variables)
StyleSheet
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter