-
public class MenuScene extends Scene<StaticComponentView<out StaticComponentView<?>>>
Baseclass for BGW menu scenes. Extend this class in order to create your own menu scene.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MenuScene.Companion
-
Field Summary
Fields Modifier and Type Field Description private final DynamicComponentView
draggedComponent
private final RootComponent<StaticComponentView<out StaticComponentView<?>>>
rootNode
private final Double
width
private final Double
height
private Visual
background
private Double
opacity
-
Method Summary
Modifier and Type Method Description final DynamicComponentView
getDraggedComponent()
final RootComponent<StaticComponentView<out StaticComponentView<?>>>
getRootNode()
The root node of this Scene. final Double
getWidth()
The width of this Scene in virtual coordinates. final Double
getHeight()
The height of this Scene in virtual coordinates. final Visual
getBackground()
final Unit
setBackground(Visual background)
final Double
getOpacity()
final Unit
setOpacity(Double opacity)
-
-
Method Detail
-
getDraggedComponent
final DynamicComponentView getDraggedComponent()
-
getRootNode
final RootComponent<StaticComponentView<out StaticComponentView<?>>> getRootNode()
The root node of this Scene. Use it to compare the parent Property of any ComponentView to find out whether it was directly added to the Scene.
-
getBackground
final Visual getBackground()
-
setBackground
final Unit setBackground(Visual background)
-
getOpacity
final Double getOpacity()
-
setOpacity
final Unit setOpacity(Double opacity)
-
-
-
-