Closed hoseyjoe closed 3 years ago
It never says hi??
import haxe.Timer; import haxe.ui.Toolkit; import haxe.ui.HaxeUIApp; class Main { public static function main() { Toolkit.theme = "dark"; var app = new HaxeUIApp(); app.ready(function() { app.addComponent(new MainView()); app.start(); }); var timer = new Timer(Math.floor(1000)); timer.run = () -> { trace("hi"); } } }
the in built haxe timer wont work, no. It requires an event loop, you can however use the haxeui Timer class (haxe.ui.util.Timer)... these are cross framework timers
you are so right
It never says hi??