-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text box still shows up white after changing properties #71
Comments
I have a similar problem regarding the change in the width of the input. |
I found a fix for this issue. Just needed to add more attributes var nameInput = game.add.inputField(500, 498, {
font: "30px 'Press Start 2P'",
fill: '#ffffff',
fillAlpha: 0,
fontWeight: 'bold',
width: 400,
max: 20,
padding: 2,
borderWidth: 1,
borderColor: '#000',
borderRadius: 6,
placeHolder: 'Anonymous',
textAlign: 'left',
zoom: true,
cursorColor : '#ffffff'
});
nameInput.startFocus(); The last line is pretty important by the way. |
@MajorKuprich |
Hi! I'm trying to make a transparent text input box (or one with the same colour as the background image) in my game and I've been changing the properties to suit my needs, but the box still shows up white. Can't really find much help elsewhere online...
Here's my code:
I'm using Phaser v2.3.0
@AleBles
The text was updated successfully, but these errors were encountered: