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

Checkbox/RadioButtons don't seem to be supported fully #172

Open
tankorsmash opened this issue May 20, 2018 · 0 comments
Open

Checkbox/RadioButtons don't seem to be supported fully #172

tankorsmash opened this issue May 20, 2018 · 0 comments

Comments

@tankorsmash
Copy link
Contributor

tankorsmash commented May 20, 2018

Creator must have changed the internal names for them at one point, cc.RadioGroup is used for the C++ plugin, but cc.RadioContainer is what Creator exports.

After the Layout PR I haven't finished, I'm hoping someone else can pick up my slack.

The replacements I made were in parser/ToggleGroup.js, parser/Utils.js, and parser/ToggleContainer.js. Changing references from cc.RadioGroup to cc.RadioContainer in the plugin mostly works but the positioning is off, so something else is missing.

Seems like without changing the type names, the background and positions are correct, and CreatorReader::createToggle is called correctly, but the events aren't handling selecting them properly. If you do change the types to cc.RadioContainer, CreatorReader::createToggleGroup is called instead, and manually makes the RadioButtons and the individual nodes don't get parsed.

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