On this page
UIPanel
UIPanel.new
Inputs:
- parentSizer [UISizer]: of the newly created Panel
- childSizer [UISizer]: The child sizer of the newly created Panel which will layout the UI elements contained in the Panel
- xPosition [integer?]: [optional, default=-1]
- yPosition [integer?]: [optional, default=-1]
- width [integer?]: [optional, default=-1]
- height [integer?]: [optional, default=-1]
- borderDirection [integer?]: (BorderDirection.ALL, BorderDirection.TOP, BorderDirection.BOTTOM, BorderDirection.LEFT or BorderDirection.RIGHT) [optional, default=BorderDirection.NONE]
- borderSize [integer?]: in pixels [optional, default=0]
- proportion [integer?]: [optional, default=0]
Outputs:
- uiPanel [UIPanel]:
UIPanel:destroy
UIPanel:isVisible
Outputs:
- [boolean]:
UIPanel:setBackgroundColor
Inputs:
- red [float]: red (0.0 - 1.0)
- green [float]: green (0.0 - 1.0)
- blue [float]: blue (0.0 - 1.0)
- alpha [float?]: alpha (0.0 - 1.0) [optional, default=1.0]
UIPanel:setVisible
Inputs:
- visible [boolean?]: [optional, default=true]
Last updated 12 Apr 2025, 16:09 +0200 .