Closed yuanboz closed 4 years ago
So I have added username to these two page but I still not figure out how to make prompt run in the update. I don't know why if I wait until the prompt comes from the update, the username won't be updated and it will show the username I entered last time. So I leave that part in the constructor.
I think I have solved the length of username. So the new feature is user can only see the first 7 characters followed by “..." if the input are more than 7 characters. And I apply this to every page.
Not completely finish this part but players can at least see their name that they've entered at the beginning at every page(not include accountEqn and accountEqnAct).
I put prompt function which will let the player enter the name in the constructor() since I tried to put it in the update() but the result is the same, always prompt users to enter their name before load the background. Still working on this part but I think it's not a big deal.