Closed RooflOmg closed 1 year ago
Good idea, can you add the following code to your Icon module at line 755:
-- Localization support
instances.iconLabel:GetPropertyChangedSignal("Text"):Connect(function()
local labelText = instances.iconLabel.Text
local iconState = self:getIconState()
local settingsText = self:get("iconText", iconState)
if labelText ~= settingsText then
self:setLabel(labelText)
end
end)
If this works without causing any issues, can you then confirm please and I'll officially deploy an update for this. Thanks!
Good idea, can you add the following code to your Icon module at line 755:
-- Localization support instances.iconLabel:GetPropertyChangedSignal("Text"):Connect(function() local labelText = instances.iconLabel.Text local iconState = self:getIconState() local settingsText = self:get("iconText", iconState) if labelText ~= settingsText then self:setLabel(labelText) end end)
If this works without causing any issues, can you then confirm please and I'll officially deploy an update for this. Thanks!
still doesnt work
(i removed the notify from the code tho)
Okay thanks for the report, it appears the labels aren't detecting as changed with localized text (therefore not expanding). I will provide a fix for this and complete support for localization in the next update (although I can't guarantee when as Nanoblox is currently our top priority).
Resolved in v.2.8.0!
When the game is using localised text
its not gonna display properly, when theres more width than the source one.
heres the preview of what will happen
![image](https://user-images.githubusercontent.com/52837330/132850791-ed595c11-f310-4f20-9919-ba5c893c3eae.png)