inputPassword.ts 475 B

12345678910111213141516
  1. import { InputText } from "./inputText";
  2. import { _TypeStore } from 'babylonjs/Misc/typeStore';
  3. /**
  4. * Class used to create a password control
  5. */
  6. export class InputPassword extends InputText {
  7. protected _beforeRenderText(text: string): string {
  8. let txt = "";
  9. for (let i = 0; i < text.length; i++) {
  10. txt += "\u2022";
  11. }
  12. return txt;
  13. }
  14. }
  15. _TypeStore.RegisteredTypes["BABYLON.GUI.InputPassword"] = InputPassword;