Makes sense, for me I can’t figure it out on how to have automatic line breaks…
It would be nice if you could kind of explain how beccause in the Fundamentals section, I can only find the “manual” way of doing it… Sorry for the hassle though ;-;.
If you want the font’s properties you can tell me.
My code for getting the text (client-sided):
local invLabel = textplus.Create(
script.Parent.Inventory.ItemName,
-- "Energy Flavored Zesty\nBar", testing
"Very Long Text Very Long Text Very Long Text Very Long Text Very Long Text Very Long Text",
{
Font = textplus.CustomFonts.MyFont,
Size = 25,
Dynamic = true,
XAlignment = "Right",
YAlignment = "Top",
Color = Color3.fromRGB(255, 255, 255),
WordSorting = true,
LineSorting = true,
}
)
It clearly states that the frame you provide serves as the bounding box. If the text exceeds the frame boundaries, it will automatically create line breaks.
Please let me know if you still can’t get it to work!
Alexander, I found another bug where you can’t overwrite/update the text.
Let’s say I have my main script with the customization and everything,
but when I want to overwrite it or update it, it won’t.
Example:
textplus.Create(
script.Parent.EventFrame,
"Nothing to see here.",
{
Font = textplus.CustomFonts.MyFont,
Size = 25,
Dynamic = true,
XAlignment = "Center",
YAlignment = "Center",
Color = Color3.fromRGB(255, 255, 255),
WordSorting = true,
LineSorting = true,
}
)
task.wait(5) -- Or you can do it instantly it doesn't matter
textplus.Create(
script.Parent.EventFrame,
"Changed!" -- Didn't work..
)
Alexander, sadly sadly I found a bug already, it’s something to do with the positions. So let’s say I have my text rendered on a screen, and then I resize my screen to another size, well the positions would get messed up.
(Also it would also be nice if had an option/boolean for the text size to be the same for every device because you can see the difference between the two screens being different sizes. This isn’t really needed but it was just to have an idea.)
They won’t get messed up, they just won’t update.
It’s simply caused by the fact that Dynamic doesn’t detect screen size change, and only size change from GUI elements.
This will be updated and fixed soon. Thanks for reporting this.
I have an idea for this, and it will be in the next update. Thanks for mentioning.
Alexander I got an error code in line 1030, I’m assuming you’re checking when the property “Size” changes in a ScreenGui although that property doesn’t exist.
Code:
if instance:IsA("ScreenGui") then
if not camera then break end
local viewportSize = camera.ViewportSize
if instance.IgnoreGuiInset then
rootSizeX = viewportSize.X
rootSizeY = viewportSize.Y
else
local inset = GuiService:GetGuiInset()
rootSizeX = viewportSize.X - inset.X
rootSizeY = viewportSize.Y - inset.Y
end
table.insert(instance:GetPropertyChangedSignal("Size"):Connect(update)) -- Error occures
break