Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for NME target #19

Closed
hoseyjoe opened this issue Apr 30, 2020 · 1 comment
Closed

Fix for NME target #19

hoseyjoe opened this issue Apr 30, 2020 · 1 comment

Comments

@hoseyjoe
Copy link
Contributor

hoseyjoe commented Apr 30, 2020

cant compile currently need to add return types. if you need a project:
HaxeUITest.zip

haxe/ui/backend/ScreenImpl.hx:67: lines 67-73 : Field addComponent overrides parent class with different or incomplete type

Fix is to add
return component;

...
public override function addComponent(component:Component) {
		component.scaleX = Toolkit.scaleX;
		component.scaleY = Toolkit.scaleY;
		_topLevelComponents.push(component);
		container.addChild(component);
		onContainerResize(null);
		return component;
	}

	public override function removeComponent(component:Component) {
		_topLevelComponents.remove(component);
		container.removeChild(component);
		return component;
	}
...
@hoseyjoe
Copy link
Contributor Author

hoseyjoe commented Sep 3, 2024

This is working now

@hoseyjoe hoseyjoe closed this as completed Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant