Mercurial > games > semicongine
diff tests/test_panel.nim @ 1128:ae54dbb08e53
merge into git mirror
author | sam <sam@basx.dev> |
---|---|
date | Thu, 23 May 2024 01:44:10 +0700 |
parents | 73b572f82a1f |
children | 74957cbf589b |
line wrap: on
line diff
--- a/tests/test_panel.nim Mon Apr 29 02:37:42 2024 -0700 +++ b/tests/test_panel.nim Thu May 23 01:44:10 2024 +0700 @@ -64,23 +64,23 @@ scene.add origin engine.loadScene(scene) - while engine.updateInputs() == Running and not engine.keyIsDown(Escape): - if engine.keyWasPressed(F1): + while engine.updateInputs() and not keyIsDown(Escape): + if keyWasPressed(F1): button.horizontalAlignment = Left counterText.horizontalAlignment = Left - elif engine.keyWasPressed(F2): + elif keyWasPressed(F2): button.horizontalAlignment = Center counterText.horizontalAlignment = Center - elif engine.keyWasPressed(F3): + elif keyWasPressed(F3): button.horizontalAlignment = Right counterText.horizontalAlignment = Right - elif engine.keyWasPressed(F4): + elif keyWasPressed(F4): button.verticalAlignment = Top counterText.verticalAlignment = Top - elif engine.keyWasPressed(F5): + elif keyWasPressed(F5): button.verticalAlignment = Center counterText.verticalAlignment = Center - elif engine.keyWasPressed(F6): + elif keyWasPressed(F6): button.verticalAlignment = Bottom counterText.verticalAlignment = Bottom