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
StyleSelector
chevron_left Classes
class
StyleSelector

Constructors

functionsStyleSelector

Fields

crop_dinAdjacentSiblingcrop_dinAnyOfcrop_dinAsStringcrop_dinBlockcrop_dinDecendantOfcrop_dinElementcrop_dinFlagscrop_dinGeneralSiblingcrop_dinHascrop_dinImmediateParentcrop_dinNotcrop_dinNthChildcrop_dinParentcrop_dinSelfScorecrop_dinUniversalSelector

Properties

data_objectClassesdata_objectIddata_objectScore

Methods

functionsFinalizefunctionsTestfunctionsTestBroadphasefunctionsTestParent
StyleSelector
A CSS selector like "Panel.button.red:hover .text"
class Sandbox.UI .
sealedSandbox.Engine

build Constructors 1

StyleSelector ()

crop_din Fields 15

AdjacentSibling
bool
For + combinator
AnyOf
StyleSelector[]
AsString
string
Block
StyleBlock
DecendantOf
StyleSelector[]
Element
string
Flags
PseudoClass
GeneralSibling
bool
For ~ combinator
Has
StyleSelector[]
ImmediateParent
bool
Not
StyleSelector
NthChild
Func`2
Parent
StyleSelector
Descendant combinator A B Child combinator A > B Adjacent sibling combinator A + B General sibling combinator A ~B
SelfScore
int
UniversalSelector
bool
True if this has a universal selector (*)

data_object Properties 3

Classes
String[]
Id
string
The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors
Score
int

functions Methods 4

Finalize (block)
Test (target, forceFlag)
bool
Test whether target passes our selector test. We use forceFlag to do alternate tests for flags like ::before and ::after. It's basically added to the target's pseudo class list for the test.
TestBroadphase (target)
bool
TestParent (target, recusive)
bool
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