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 constraints #553
Comments
Are you talking about in the editor or while playing? Which boxes? in 1.4 I am changing the editor text boxes to grow/shrink to fit the text size. |
In play. I'm sure with the next roll out it won't be a problem. |
I am not aware of any issues in play, if you can reproduce one please tell me where, and and what resolution you are running. |
Can you provide the scenario? I don't have a monitor that big so I will do what I can do find out what is going on. |
I just want the event text to reproduce the problem... though it may be tricky if it doesn't occur at lower resolutions. |
Just the event.ini? |
Or the actual text from the event |
Doesn't matter, I will pull it from you scenario. |
I've been able to eliminate it by adding a leading blank line, but noticed it happen on other events. I'll check the next alpha to see how that affects things before doing some over hauling |
The development branch has no changes in this area. |
You can change the ... ... and have to change: |
@NPBruce I think that this has been resolved with any current iterations. I feel at this point this thread could be closed unless there are other issues floating around out there. |
@LordPyrex I haven't changed anything here since 1.3, so I am not sure how/why this is fixed. Are you no longer able to produce the issue shown in the screen shot above? |
Well, as quickly as I said that I noticed another box with this issue.... never mind for now... |
@NPBruce |
In this case that is the maximum size available. The scenario could be reworked to split this into two. |
Can't we just show scrollbars on demand? |
No because of the black text unity bug. In general though, I'm not sure that such a wall of text in a single event is a great idea. If someone wants this add as a feature request (this is not related to this issue). |
OK! nevermind, in the future i'll ensure to the translated text fill the box... even if i have to cut a little the original idea! |
I've had the same issues with my scenario, The Experiment. I was had not looked it up and was hoping it was a known issues that would be fixed in 2.0, but I'm still able to reproduce it. I've tested it on different resolutions on Mac, PC, and Android, all able to reproduce. Start scenario, two token in middle of room, dagger -> stab -> triggers EventInvestigatorAwakes, takes less than a minute to reproduce. If I open the event, add and remove a space in the text box, then save and test, it fixes it, but doesn't fix it for the exported package. It will stay fixed if I go play in the app right after using the editor, but if I quit the app an then reopen, the text has problems again. I think there were at least a few instances of this when I was testing, but didn't write them down at the time. I know it happens again when you threaten the first NPC. The text boxes are smaller than other text boxes in the scenario, so they should fit. Not sure why they are getting cropped. |
Hi all...i had the same problem about the boxes text fit...i investigated why happens and i discover that it fix changing the languaje in quest.ini file.... |
Hi @Bakajao, I have the same issue and I tried to change the default language but it did not fix the issue. Can you give more details on your fix ? |
GameObject needs to be new for Unity to provide a proper height. Apply to width too just in case.
@NPBruce @redwolf2 I have a fix to propose on this one. It seems that Unity may not provide a correct height when using GetPreferredHeight in some cases. It does work fine when using the UIElement that you are going to display though. Tell me if you are happy with this fix, I will pull this to development. |
You can always make a pull request. Seems fine by me. |
This reverts commit 9d13257.
This reverts commit 9d13257.
GameObject needs to be new for Unity to provide a proper height. Apply to width too just in case.
Pull request #866 |
NPBruce#553 Fix issue with text box height
* NPBruce#553 Fix issue with text box height GameObject needs to be new for Unity to provide a proper height. Apply to width too just in case.
Beta test version is now available with implementation of this issue: Please close if you are happy with the fix |
* #553 Fix issue with text box height GameObject needs to be new for Unity to provide a proper height. Apply to width too just in case.
* #553 Fix issue with text box height GameObject needs to be new for Unity to provide a proper height. Apply to width too just in case.
I've noticed that some of the text box constraints are causing fit issues. Is this still ongoing or is this just something that is on my end. Using v1.3
The text was updated successfully, but these errors were encountered: