Skip to content

Text changes to allow for a Password component #140

@Jarrio

Description

@Jarrio
text = new Text();
text.resolveGlyph = (c:Int, pos:Int) -> {
    return '*'.code;
};
text.content = "blah";
// displays ****

The only change needed to support that would be to let the Text class call the provided resolveGlyph() method for each chararacter, if provided. If the method is not provided, default (current) behaviour still happen

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