Skip to content

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

Open
@tankorsmash

Description

@tankorsmash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions