s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
BaseStyles
chevron_left
Classes
class
BaseStyles
search
Constructors
lock
BaseStyles
Properties
data_object
AlignContent
data_object
AlignItems
data_object
AlignSelf
data_object
AnimationDelay
data_object
AnimationDirection
data_object
AnimationDuration
data_object
AnimationFillMode
data_object
AnimationIterationCount
data_object
AnimationName
data_object
AnimationPlayState
data_object
AnimationTimingFunction
data_object
AspectRatio
data_object
BackdropFilterBlur
data_object
BackdropFilterBrightness
data_object
BackdropFilterContrast
data_object
BackdropFilterHueRotate
data_object
BackdropFilterInvert
data_object
BackdropFilterSaturate
data_object
BackdropFilterSepia
data_object
BackgroundAngle
data_object
BackgroundBlendMode
data_object
BackgroundColor
data_object
BackgroundImage
data_object
BackgroundPlaybackPaused
data_object
BackgroundPositionX
data_object
BackgroundPositionY
data_object
BackgroundRepeat
data_object
BackgroundSizeX
data_object
BackgroundSizeY
data_object
BackgroundTint
data_object
BorderBottomColor
data_object
BorderBottomLeftRadius
data_object
BorderBottomRightRadius
data_object
BorderBottomWidth
data_object
BorderImageFill
data_object
BorderImageRepeat
data_object
BorderImageSource
data_object
BorderImageTint
data_object
BorderImageWidthBottom
data_object
BorderImageWidthLeft
data_object
BorderImageWidthRight
data_object
BorderImageWidthTop
data_object
BorderLeftColor
data_object
BorderLeftWidth
data_object
BorderRightColor
data_object
BorderRightWidth
data_object
BorderTopColor
data_object
BorderTopLeftRadius
data_object
BorderTopRightRadius
data_object
BorderTopWidth
data_object
Bottom
data_object
CaretColor
data_object
ColumnGap
data_object
Content
data_object
Cursor
data_object
Display
data_object
FilterBlur
data_object
FilterBorderColor
data_object
FilterBorderWidth
data_object
FilterBrightness
data_object
FilterContrast
data_object
FilterHueRotate
data_object
FilterInvert
data_object
FilterSaturate
data_object
FilterSepia
data_object
FilterTint
data_object
FlexBasis
data_object
FlexDirection
data_object
FlexGrow
data_object
FlexShrink
data_object
FlexWrap
data_object
FontColor
data_object
FontFamily
data_object
FontSize
data_object
FontSmooth
data_object
FontStyle
data_object
FontVariantNumeric
data_object
FontWeight
data_object
HasAnimation
data_object
Height
data_object
ImageRendering
data_object
JustifyContent
data_object
Left
data_object
LetterSpacing
data_object
LineHeight
data_object
MarginBottom
data_object
MarginLeft
data_object
MarginRight
data_object
MarginTop
data_object
MaskAngle
data_object
MaskImage
data_object
MaskMode
data_object
MaskPositionX
data_object
MaskPositionY
data_object
MaskRepeat
data_object
MaskScope
data_object
MaskSizeX
data_object
MaskSizeY
data_object
MaxHeight
data_object
MaxWidth
data_object
MinHeight
data_object
MinWidth
data_object
MixBlendMode
data_object
ObjectFit
data_object
Opacity
data_object
Order
data_object
OutlineColor
data_object
OutlineOffset
data_object
OutlineWidth
data_object
Overflow
data_object
OverflowX
data_object
OverflowY
data_object
PaddingBottom
data_object
PaddingLeft
data_object
PaddingRight
data_object
PaddingTop
data_object
PerspectiveOriginX
data_object
PerspectiveOriginY
data_object
PointerEvents
data_object
Position
data_object
Right
data_object
RowGap
data_object
SoundIn
data_object
SoundOut
data_object
TextAlign
data_object
TextBackgroundAngle
data_object
TextDecorationColor
data_object
TextDecorationLine
data_object
TextDecorationSkipInk
data_object
TextDecorationStyle
data_object
TextDecorationThickness
data_object
TextFilter
data_object
TextLineThroughOffset
data_object
TextOverflow
data_object
TextOverlineOffset
data_object
TextStrokeColor
data_object
TextStrokeWidth
data_object
TextTransform
data_object
TextUnderlineOffset
data_object
Top
data_object
Transform
data_object
TransformOriginX
data_object
TransformOriginY
data_object
WhiteSpace
data_object
Width
data_object
WordBreak
data_object
WordSpacing
data_object
ZIndex
Methods
functions
Add
functions
ApplyCascading
functions
Clone
functions
Dirty
functions
FillDefaults
functions
From
functions
FromLerp
lock
Lerp
functions
LerpProperty
functions
Set
functions
SetRect
BaseStyles
Auto generated container class for majority of CSS properties available.
class
Sandbox.UI
.
abstract
Sandbox.Engine
build
Constructors
1
BaseStyles
(
)
data_object
Properties
148
AlignContent
Nullable`1
Represents the
align-content
CSS property.
AlignItems
Nullable`1
Represents the
align-items
CSS property.
AlignSelf
Nullable`1
Represents the
align-self
CSS property.
AnimationDelay
Nullable`1
Represents the
animation-delay
CSS property.
AnimationDirection
string
Represents the
animation-direction
CSS property.
AnimationDuration
Nullable`1
Represents the
animation-duration
CSS property.
AnimationFillMode
string
Represents the
animation-fill-mode
CSS property.
AnimationIterationCount
Nullable`1
Represents the
animation-iteration-count
CSS property.
AnimationName
string
Represents the
animation-name
CSS property.
AnimationPlayState
string
Represents the
animation-play-state
CSS property.
AnimationTimingFunction
string
Represents the
animation-timing-function
CSS property.
AspectRatio
Nullable`1
Represents the
aspect-ratio
CSS property.
BackdropFilterBlur
Nullable`1
Represents the
backdrop-filter-blur
CSS property.
BackdropFilterBrightness
Nullable`1
Represents the
backdrop-filter-brightness
CSS property.
BackdropFilterContrast
Nullable`1
Represents the
backdrop-filter-contrast
CSS property.
BackdropFilterHueRotate
Nullable`1
Represents the
backdrop-filter-hue-rotate
CSS property.
BackdropFilterInvert
Nullable`1
Represents the
backdrop-filter-invert
CSS property.
BackdropFilterSaturate
Nullable`1
Represents the
backdrop-filter-saturate
CSS property.
BackdropFilterSepia
Nullable`1
Represents the
backdrop-filter-sepia
CSS property.
BackgroundAngle
Nullable`1
Represents the
background-angle
CSS property.
BackgroundBlendMode
string
Represents the
background-blend-mode
CSS property.
BackgroundColor
Nullable`1
Represents the
background-color
CSS property.
BackgroundImage
Texture
BackgroundPlaybackPaused
Nullable`1
Controls whether the background video is paused. Mirrors
animation-play-state
. Maps to the CSS property
background-playback-state: paused | running
.
BackgroundPositionX
Nullable`1
Represents the
background-position-x
CSS property.
BackgroundPositionY
Nullable`1
Represents the
background-position-y
CSS property.
BackgroundRepeat
Nullable`1
Represents the
background-repeat
CSS property.
BackgroundSizeX
Nullable`1
Represents the
background-size-x
CSS property.
BackgroundSizeY
Nullable`1
Represents the
background-size-y
CSS property.
BackgroundTint
Nullable`1
Represents the
background-tint
CSS property.
BorderBottomColor
Nullable`1
Represents the
border-bottom-color
CSS property.
BorderBottomLeftRadius
Nullable`1
Represents the
border-bottom-left-radius
CSS property.
BorderBottomRightRadius
Nullable`1
Represents the
border-bottom-right-radius
CSS property.
BorderBottomWidth
Nullable`1
Represents the
border-bottom-width
CSS property.
BorderImageFill
Nullable`1
Represents the
border-image-fill
CSS property.
BorderImageRepeat
Nullable`1
Represents the
border-image-repeat
CSS property.
BorderImageSource
Texture
BorderImageTint
Nullable`1
Represents the
border-image-tint
CSS property.
BorderImageWidthBottom
Nullable`1
Represents the
border-image-width-bottom
CSS property.
BorderImageWidthLeft
Nullable`1
Represents the
border-image-width-left
CSS property.
BorderImageWidthRight
Nullable`1
Represents the
border-image-width-right
CSS property.
BorderImageWidthTop
Nullable`1
Represents the
border-image-width-top
CSS property.
BorderLeftColor
Nullable`1
Represents the
border-left-color
CSS property.
BorderLeftWidth
Nullable`1
Represents the
border-left-width
CSS property.
BorderRightColor
Nullable`1
Represents the
border-right-color
CSS property.
BorderRightWidth
Nullable`1
Represents the
border-right-width
CSS property.
BorderTopColor
Nullable`1
Represents the
border-top-color
CSS property.
BorderTopLeftRadius
Nullable`1
Represents the
border-top-left-radius
CSS property.
BorderTopRightRadius
Nullable`1
Represents the
border-top-right-radius
CSS property.
BorderTopWidth
Nullable`1
Represents the
border-top-width
CSS property.
Bottom
Nullable`1
Represents the
bottom
CSS property.
CaretColor
Nullable`1
Represents the
caret-color
CSS property.
ColumnGap
Nullable`1
Represents the
column-gap
CSS property.
Content
string
Represents the
content
CSS property.
Cursor
string
Represents the
cursor
CSS property.
Display
Nullable`1
Represents the
display
CSS property.
FilterBlur
Nullable`1
Represents the
filter-blur
CSS property.
FilterBorderColor
Nullable`1
Represents the
filter-border-color
CSS property.
FilterBorderWidth
Nullable`1
Represents the
filter-border-width
CSS property.
FilterBrightness
Nullable`1
Represents the
filter-brightness
CSS property.
FilterContrast
Nullable`1
Represents the
filter-contrast
CSS property.
FilterHueRotate
Nullable`1
Represents the
filter-hue-rotate
CSS property.
FilterInvert
Nullable`1
Represents the
filter-invert
CSS property.
FilterSaturate
Nullable`1
Represents the
filter-saturate
CSS property.
FilterSepia
Nullable`1
Represents the
filter-sepia
CSS property.
FilterTint
Nullable`1
Represents the
filter-tint
CSS property.
FlexBasis
Nullable`1
Represents the
flex-basis
CSS property.
FlexDirection
Nullable`1
Represents the
flex-direction
CSS property.
FlexGrow
Nullable`1
Represents the
flex-grow
CSS property.
FlexShrink
Nullable`1
Represents the
flex-shrink
CSS property.
FlexWrap
Nullable`1
Represents the
flex-wrap
CSS property.
FontColor
Nullable`1
Represents the
font-color
CSS property.
FontFamily
string
Represents the
font-family
CSS property.
FontSize
Nullable`1
Represents the
font-size
CSS property.
FontSmooth
Nullable`1
Represents the
font-smooth
CSS property.
FontStyle
Nullable`1
Represents the
font-style
CSS property.
FontVariantNumeric
Nullable`1
Represents the
font-variant-numeric
CSS property.
FontWeight
Nullable`1
Represents the
font-weight
CSS property.
HasAnimation
bool
Whether there is an active CSS animation.
Height
Nullable`1
Represents the
height
CSS property.
ImageRendering
Nullable`1
Represents the
image-rendering
CSS property.
JustifyContent
Nullable`1
Represents the
justify-content
CSS property.
Left
Nullable`1
Represents the
left
CSS property.
LetterSpacing
Nullable`1
Represents the
letter-spacing
CSS property.
LineHeight
Nullable`1
Represents the
line-height
CSS property.
MarginBottom
Nullable`1
Represents the
margin-bottom
CSS property.
MarginLeft
Nullable`1
Represents the
margin-left
CSS property.
MarginRight
Nullable`1
Represents the
margin-right
CSS property.
MarginTop
Nullable`1
Represents the
margin-top
CSS property.
MaskAngle
Nullable`1
Represents the
mask-angle
CSS property.
MaskImage
Texture
MaskMode
Nullable`1
Represents the
mask-mode
CSS property.
MaskPositionX
Nullable`1
Represents the
mask-position-x
CSS property.
MaskPositionY
Nullable`1
Represents the
mask-position-y
CSS property.
MaskRepeat
Nullable`1
Represents the
mask-repeat
CSS property.
MaskScope
Nullable`1
Represents the
mask-scope
CSS property.
MaskSizeX
Nullable`1
Represents the
mask-size-x
CSS property.
MaskSizeY
Nullable`1
Represents the
mask-size-y
CSS property.
MaxHeight
Nullable`1
Represents the
max-height
CSS property.
MaxWidth
Nullable`1
Represents the
max-width
CSS property.
MinHeight
Nullable`1
Represents the
min-height
CSS property.
MinWidth
Nullable`1
Represents the
min-width
CSS property.
MixBlendMode
string
Represents the
mix-blend-mode
CSS property.
ObjectFit
Nullable`1
Represents the
object-fit
CSS property.
Opacity
Nullable`1
Represents the
opacity
CSS property.
Order
Nullable`1
Represents the
order
CSS property.
OutlineColor
Nullable`1
Represents the
outline-color
CSS property.
OutlineOffset
Nullable`1
Represents the
outline-offset
CSS property.
OutlineWidth
Nullable`1
Represents the
outline-width
CSS property.
Overflow
Nullable`1
Represents the
overflow
CSS property.
OverflowX
Nullable`1
Represents the
overflow-x
CSS property.
OverflowY
Nullable`1
Represents the
overflow-y
CSS property.
PaddingBottom
Nullable`1
Represents the
padding-bottom
CSS property.
PaddingLeft
Nullable`1
Represents the
padding-left
CSS property.
PaddingRight
Nullable`1
Represents the
padding-right
CSS property.
PaddingTop
Nullable`1
Represents the
padding-top
CSS property.
PerspectiveOriginX
Nullable`1
Represents the
perspective-origin-x
CSS property.
PerspectiveOriginY
Nullable`1
Represents the
perspective-origin-y
CSS property.
PointerEvents
Nullable`1
Represents the
pointer-events
CSS property.
Position
Nullable`1
Represents the
position
CSS property.
Right
Nullable`1
Represents the
right
CSS property.
RowGap
Nullable`1
Represents the
row-gap
CSS property.
SoundIn
string
Represents the
sound-in
CSS property.
SoundOut
string
Represents the
sound-out
CSS property.
TextAlign
Nullable`1
Represents the
text-align
CSS property.
TextBackgroundAngle
Nullable`1
Represents the
text-background-angle
CSS property.
TextDecorationColor
Nullable`1
Represents the
text-decoration-color
CSS property.
TextDecorationLine
Nullable`1
Represents the
text-decoration-line
CSS property.
TextDecorationSkipInk
Nullable`1
Represents the
text-decoration-skip-ink
CSS property.
TextDecorationStyle
Nullable`1
Represents the
text-decoration-style
CSS property.
TextDecorationThickness
Nullable`1
Represents the
text-decoration-thickness
CSS property.
TextFilter
Nullable`1
Represents the
text-filter
CSS property.
TextLineThroughOffset
Nullable`1
Represents the
text-line-through-offset
CSS property.
TextOverflow
Nullable`1
Represents the
text-overflow
CSS property.
TextOverlineOffset
Nullable`1
Represents the
text-overline-offset
CSS property.
TextStrokeColor
Nullable`1
Represents the
text-stroke-color
CSS property.
TextStrokeWidth
Nullable`1
Represents the
text-stroke-width
CSS property.
TextTransform
Nullable`1
Represents the
text-transform
CSS property.
TextUnderlineOffset
Nullable`1
Represents the
text-underline-offset
CSS property.
Top
Nullable`1
Represents the
top
CSS property.
Transform
Nullable`1
Represents the
transform
CSS property.
TransformOriginX
Nullable`1
Represents the
transform-origin-x
CSS property.
TransformOriginY
Nullable`1
Represents the
transform-origin-y
CSS property.
WhiteSpace
Nullable`1
Represents the
white-space
CSS property.
Width
Nullable`1
Represents the
width
CSS property.
WordBreak
Nullable`1
Represents the
word-break
CSS property.
WordSpacing
Nullable`1
Represents the
word-spacing
CSS property.
ZIndex
Nullable`1
Represents the
z-index
CSS property.
functions
Methods
11
Add
(
bs
)
Copy over only the styles that are set.
ApplyCascading
(
parent
)
Clone
(
)
object
Perform a deep copy of this stylesheet
Dirty
(
)
Called when any CSS properties are changed.
FillDefaults
(
)
From
(
bs
)
Copy all styles from given style set.
FromLerp
(
from
,
to
,
delta
)
Lerp every property in this stylesheet
Lerp
(
o
,
a
,
b
,
defaultValue
,
delta
)
LerpProperty
(
name
,
from
,
to
,
delta
)
Lerp a specific property by name
Set
(
property
,
value
)
bool
Copy all styles from given style set.
SetRect
(
r
,
scale
)
Set Left, Right, Width and Height based on this rect. Scale can be used to scale the rect (maybe you want to use Panel.ScaleFromScreen etc)
Inheritance
BaseStyles
Styles
PanelStyle
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.