tobsef
07/03/2020, 8:16 PMContainer#getLocalBoundsInternal
). It was hard to get out, why my click event doesn't work. It seems to be a performance optimization.
suspend fun main() = Korge(width = 512, height = 512) {
solidRect(100, 100, color = GREEN) {
centerOn(this@Korge)
onClick {
color = if(color == GREEN) BLUE else GREEN
}
}
container {
solidRect(100, 100, color = RED) {
}
solidRect(100, 100, color = RED) {
alignRightToRightOf(this@Korge)
}
solidRect(100, 100, color = RED) {
alignBottomToBottomOf(this@Korge)
}
solidRect(100, 100, color = RED) {
alignBottomToBottomOf(this@Korge)
alignRightToRightOf(this@Korge)
}
}
}
Rachid
07/04/2020, 4:19 PMsolidRect
on the same container?tobsef
07/04/2020, 8:41 PM