You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
341 B
13 lines
341 B
package nova.monadic_sfx.ui.screens
|
|
|
|
import scalafx.application.JFXApp.PrimaryStage
|
|
import scalafx.scene.Parent
|
|
import monix.eval.Task
|
|
|
|
trait Screen {
|
|
protected def appStage: PrimaryStage
|
|
def changeRoot(root: Parent): Unit = {
|
|
appStage.scene().setRoot(root)
|
|
}
|
|
def changeRootL(root: Parent): Task[Unit] = Task(changeRoot(root))
|
|
}
|