Cross-platform 2D framework written in Haxe that can export natively to desktop (windows, mac, linux), mobile (ios, android), web (js + webgl) and to unity projects
MIT License
263
stars
22
forks
source link
`Text` changes to allow for a `Password` component #140
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