[orx-gui] Add GUIAppearance to configure base color and bar width

This commit is contained in:
Edwin Jakobs
2022-09-29 11:40:03 +02:00
parent b6d77837c6
commit 6e493b3fb2
8 changed files with 98 additions and 63 deletions

View File

@@ -12,22 +12,17 @@ fun main() = application {
}
program {
// -- this block is for automation purposes only
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
val gui = GUI()
gui.compartmentsCollapsedByDefault = false
val settings = @Description("Settings") object {
@XYParameter("Position", 0.0, 800.0, 0.0, 800.0,
precision = 2,
invertY = false,
showVector = true)
var position: Vector2 = Vector2(0.0,0.0)
@XYParameter(
"Position", 0.0, 800.0, 0.0, 800.0,
precision = 2,
invertY = false,
showVector = true
)
var position: Vector2 = Vector2(0.0, 0.0)
}
gui.add(settings)