35 lines
895 B
Kotlin
35 lines
895 B
Kotlin
package org.opengamestudio
|
|
|
|
import androidx.compose.foundation.layout.*
|
|
import androidx.compose.material3.*
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.*
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
import androidx.compose.ui.unit.dp
|
|
|
|
@Composable
|
|
fun HPView() {
|
|
Column(
|
|
horizontalAlignment = Alignment.CenterHorizontally,
|
|
modifier = Modifier.padding(40.dp),
|
|
verticalArrangement = Arrangement.spacedBy(16.dp)
|
|
) {
|
|
Text(
|
|
style = MaterialTheme.typography.headlineLarge,
|
|
text = "Hello, platform!"
|
|
)
|
|
|
|
Text(
|
|
fontFamily = FontFamily.Monospace,
|
|
style = MaterialTheme.typography.titleMedium,
|
|
text = HPVM.countText
|
|
)
|
|
|
|
Button(
|
|
onClick = { hpSet(F.didClickIncrement, true) }
|
|
) {
|
|
Text("Increment")
|
|
}
|
|
}
|
|
}
|