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

Using center_x produces a crash #205

Open
ivodopiviz opened this issue Jun 7, 2017 · 0 comments
Open

Using center_x produces a crash #205

ivodopiviz opened this issue Jun 7, 2017 · 0 comments

Comments

@ivodopiviz
Copy link
Contributor

Setting center_x to "true" in an XML layout produces the following crash:

Invalid call
Called from flixel.ui.FlxTypedButton::set_x line 585
Called from flixel.addons.ui.FlxUITypedButton::set_x line 1147
Called from flixel.addons.ui.FlxUI::_loadPosition line 4970
Called from flixel.addons.ui.FlxUI::_loadSub line 989
Called from flixel.addons.ui.FlxUI::load line 886
Called from flixel.addons.ui.FlxUIState::loadUIFromData line 388
Called from flixel.addons.ui.FlxUIState::create line 190
Called from states.CreditsState::create line 26
Called from flixel.FlxGame::switchState line 649
Called from flixel.FlxGame::update line 739
Called from flixel.FlxGame::step line 689
Called from flixel.FlxGame::onEnterFrame line 554
Called from openfl._legacy.events.EventDispatcher::dispatchEvent line 98
Called from openfl._legacy.display.DisplayObject::__dispatchEvent line 182
Called from openfl._legacy.display.DisplayObject::__broadcast line 161
Called from openfl._legacy.display.DisplayObjectContainer::__broadcast line 286
Called from openfl._legacy.display.Stage::__render line 1103
Called from openfl._legacy.display.Stage::__checkRender line 351
Called from openfl._legacy.display.Stage::__pollTimers line 1084
Called from openfl._legacy.display.Stage::__doProcessStageEvent line 430

Version info:
Haxe: 3.4.2
HaxeFlixel: 4.2.1
Flixel-UI: 2.2.0

Possible workaround: Using

center_on_x="screen"

does the trick.

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