why can't we use TornadoFX DSLs in a Controller? i...
# tornadofx
a
why can't we use TornadoFX DSLs in a Controller? i.e.
Copy code
private fun housePane(position: Pos): StackPane {
        val houseNum = (1..6).random()

        return stackpane {
            rectangle {
                fill = c("4E9830")
                width = 100.0
                height = 100.0
            }
            imageview("house$houseNum.png").apply {
                alignment = position
            }
        }
    }