Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextField textfieldStyle = new TextField.TextFieldStyle();
- textfieldStyle.font = registrationFont25;
- textfieldStyle.fontColor = Color.WHITE;
- cursorSprite = new Sprite(new Texture("sprites/cursor9.png"));
- textfieldStyle.cursor = new SpriteDrawable(cursorSprite);
- private TextField makeTextField(final Sprite fillUp_sprite, float padding, String messageText, boolean passwordMode){
- TextField textField = new TextField("", textfieldStyle);
- textField.setMessageText(messageText);
- textField.setAlignment(Align.left);
- textField.setPasswordCharacter('*');
- textField.setPasswordMode(passwordMode);
- textField.setPosition(fillUp_sprite.getX() + padding, fillUp_sprite.getY());
- textField.setSize(fillUp_sprite.getWidth(), fillUp_sprite.getHeight());
- return textField;
- }
Add Comment
Please, Sign In to add comment