Skip to content

RexUI InputText: Trying to adjust InputText object when resizing the window/screen #220

Answered by jcoppage
jcoppage asked this question in Q&A
Discussion options

You must be logged in to vote

SOLUTION: Had the alphas set to 0 while I was doing the resizing. Changed to make sure alphas were set back to 1 before the resizing calculations and it resizes/re-positions perfectly now. EDIT: Still somewhat acting up: I need to be able to resize/re-position the TextInput object while its invisible on the screen (when the player is not using it). Not working well switching from setAlpha(0) to setAlpha(1).
SOLUTION #2: instead of setting the alpha, type: this.inputText.node.style.visibility = “hidden"; // or “visible”
With this you can resize/re-position the InputText object all you want, it doesn't matter if it's "hidden" or "visible"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jcoppage
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jcoppage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants