File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class TimerBase {
4
4
static private var __timers : Array <TimerBase > = [];
5
5
6
6
static public function update () {
7
- var currentTime : Float = hxd. Timer .oldTime ;
7
+ var currentTime : Float = hxd. Timer .lastTimeStamp ;
8
8
var count : Int = __timers .length ;
9
9
for (i in 0 ... count ) {
10
10
var timer : TimerBase = __timers [i ];
@@ -27,7 +27,7 @@ class TimerBase {
27
27
28
28
public function new (delay : Int , callback : Void -> Void ) {
29
29
this .callback = callback ;
30
- _start = hxd. Timer .oldTime + delay ;
30
+ _start = hxd. Timer .lastTimeStamp + delay ;
31
31
__timers .push (this );
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package haxe.ui.backend.heaps;
2
2
3
3
import h2d .Graphics ;
4
4
import h2d .Interactive ;
5
- import h2d .Sprite ;
5
+ import h2d .Object ;
6
6
import haxe .ui .util .Rectangle ;
7
7
import hxd .Cursor ;
8
8
@@ -37,7 +37,7 @@ class UISprite extends Graphics
37
37
return value ;
38
38
}
39
39
40
- public function new (parent : Sprite ) {
40
+ public function new (parent : Object ) {
41
41
super (parent );
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments