s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
Popup
SetPositioning
chevron_left
Classes
class
Popup
Constructors
functions
Popup
Fields
lock
Header
lock
IconPanel
lock
TitleLabel
Properties
data_object
AnchorRect
data_object
CloseWhenParentIsHidden
data_object
Icon
data_object
IgnoresInput
lock
ParentPopup
data_object
PopupSource
data_object
PopupSourceOffset
data_object
Position
data_object
SelectedChild
data_object
TakesKeyboardFocus
data_object
Title
Methods
functions
AddOption
functions
Delete
functions
Failure
functions
MoveSelection
functions
OnButtonTyped
functions
OnLayout
functions
SetPositioning
functions
Success
functions
Tick
SetPositioning
Sets Sandbox.UI.Popup.PopupSource, Sandbox.UI.Popup.Position and Sandbox.UI.Popup.PopupSourceOffset. Applies relevant CSS classes.
method
void
SetPositioning
(
Panel
sourcePanel
,
PositionMode
position
,
float
offset
)
Parameters
Name
Type
Description
sourcePanel
Panel
Which panel triggered this popup.
position
PositionMode
Desired positioning mode.
offset
float
Offset away from the
.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.