Skip to content

Commit

Permalink
Haxe4 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
MSGhero committed Dec 22, 2018
1 parent 68bb9bf commit ef3ba89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haxe/ui/backend/ComponentBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ class ComponentBase extends FlxSpriteGroup implements IComponentBase {
var tf:TextDisplay; // text
var input:TextInput;

var asComponent:Component = cast this;
var asComponent:Component;

public function new() {
super();

asComponent = cast this;

scrollFactor.set(0, 0); // ui doesn't scroll by default

surface = new FlxSprite();
Expand Down

0 comments on commit ef3ba89

Please sign in to comment.