mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Update text
This commit is contained in:
parent
fc7f2f96b2
commit
6f0e199818
@ -26,6 +26,7 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.draw.clipToBounds
|
import androidx.compose.ui.draw.clipToBounds
|
||||||
import androidx.compose.ui.geometry.Offset
|
import androidx.compose.ui.geometry.Offset
|
||||||
import androidx.compose.ui.geometry.Size
|
import androidx.compose.ui.geometry.Size
|
||||||
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.input.pointer.pointerInput
|
import androidx.compose.ui.input.pointer.pointerInput
|
||||||
import androidx.compose.ui.layout.onGloballyPositioned
|
import androidx.compose.ui.layout.onGloballyPositioned
|
||||||
import androidx.compose.ui.layout.positionInParent
|
import androidx.compose.ui.layout.positionInParent
|
||||||
@ -77,8 +78,8 @@ fun DisableRendering(nav: NavHostController) {
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(8.dp)
|
.padding(8.dp)
|
||||||
) {
|
) {
|
||||||
Text("Scroll ${visibleSpineBoys.count()} spine boys out of the viewport")
|
Text("There are ${visibleSpineBoys.count()} spine boys visible. Scroll around to find the odd one out...")
|
||||||
Text("Rendering is disabled when the spine view moves out of the viewport, preserving CPU/GPU resources.")
|
Text("Rendering is disabled when the spine view moves out of the viewport, preserving CPU/GPU resources.", color = Color.Gray)
|
||||||
}
|
}
|
||||||
SpineBoys(visibleSpineBoys)
|
SpineBoys(visibleSpineBoys)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user