CreditsScene, HanseaticHistoryScene, LoadGameScene, StartupScenepublic abstract class BaseStartupScene
extends ch.sahits.game.openpatrician.javafx.OpenPatricianScene
createPerspectiveTransform()
must be applied. This effect however does not change the bounds
of the involved controls. Therefore the following steps have to be taken:
// Load the polygons for the scene with the name startup from the indicated file
List<ch.sahits.game.graphic.data.Polygon> startupPolygons = polygonLoader.getPolygon("/polygonDefinition.xml", "startup");
// Find the polygon with the name polygonName and create an instance
Polygon untransformed = polygonLoader.toJavaFXPolygon(polygonLoader.find(startupPolygons, polygonName));
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
BaseStartupScene.LabelHoverChangeListener |
ChangeListener which changes the style class of the label upon a boolean change.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected javafx.scene.image.ImageView |
paperScroll |
|
protected double |
untransformedHeight |
|
protected double |
untransformedWidth |
| Constructor | Description |
|---|---|
BaseStartupScene(javafx.scene.layout.Region root) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
changeScene(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene) |
|
protected javafx.scene.layout.Pane |
createBaseSceneLayout() |
Create the base scene layout containing the paper scroll.
|
protected javafx.scene.effect.PerspectiveTransform |
createPerspectiveTransform() |
Define the perspective transform that will map a rectangle (control) to the paper scroll.
|
SceneChangeable |
getSceneChangeable() |
|
protected abstract java.lang.String |
getStyleSheetFilename() |
Define the stylesheet name to be applied for this scene.
|
void |
setSceneChangeable(SceneChangeable sceneChangeable) |
protected javafx.scene.image.ImageView paperScroll
protected double untransformedWidth
protected double untransformedHeight
protected abstract java.lang.String getStyleSheetFilename()
protected final javafx.scene.layout.Pane createBaseSceneLayout()
getStyleSheetFilename(). Initialize dimensionsprotected final javafx.scene.effect.PerspectiveTransform createPerspectiveTransform()
public SceneChangeable getSceneChangeable()
public void setSceneChangeable(SceneChangeable sceneChangeable)
public void changeScene(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.