|
| 01 Apr 2017 12:44 PM |
im making an emoji thing for my chat, and i have multilining. i need to find the correct X axis of where the text is, as i have already found out how to find the Y axis of it. how shuld i do this? if you need more insight, go here and make a multiline message with :D somewhere in the 2nd line or higher
https://www.roblox.com/games/657305426/coregui2#!/game-instances
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 12:46 PM |
| you cant find the location of a set of ##### ### need to make separate text boxes for each thing behind and in front of emojis |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 12:55 PM |
how would i do that? i cant find the x axis of it
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 12:57 PM |
| you use text bounds and split up the text wherever an emoji is (by making new text labels, and when it hits an emoji, make a image label for the emoji, positioning it where the text bounds + position is, and then continue with another text label for other text or an emoji) |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 01:17 PM |
is there a way to do it with one textlabel?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Apr 2017 02:52 PM |
Do some math with this function:
wiki.roblox.com/index.php?title=API:Class/TextService/GetTextSize
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 02:58 PM |
im already using that function, but i dont see how i could do that
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:00 PM |
TextBounds, find size of one of the lines, manipulate position or whatever
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:13 PM |
gettextsize returns the textbounds of the given text, and ive tried that in my head but i still cant figure out how to get the correct x position
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 05:15 PM |
| Like I said before, you have to use multiple different text labels OR add spaces where emojis will fit and then get the size of the string before it and add it to the actual position |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 05:48 PM |
i still cant find the correct x position with that.
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 06:01 PM |
because you dont know how to script
https://www.roblox.com/catalog/720138998/u-bad |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 06:03 PM |
| theres an issue with text overflow though for some reason |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 08:46 PM |
this is almost exactly what im doing. i need it to work with a textwrapped textlabel because i cant find the x position when the text is multilined on line 2 or below
|
|
|
| Report Abuse |
|
|
| |
|