Skip to content

Commit

Permalink
NOW its fixed LOL
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmental committed Aug 22, 2023
1 parent 6330b41 commit ff867f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ function Channel:Message(Message : string, Metadata : table?, IsPrivateMessage :
ImageLabel.BackgroundTransparency = 1
ImageLabel.Image = "rbxthumb://type=Asset&id="..(Metadata.Tag.Icon).."&w=420&h=420"
ImageLabel.Name = "TAG_ICON"

ImageLabel.AnchorPoint = Vector2.new(0, 1);
ImageLabel.Position = UDim2.fromScale(0, 1);

StringRenderer:AddGroup("TagIcon", {ImageLabel}, Settings.MessageFont);
ImageLabel.Parent = MainFrame
elseif (Settings.DisplayRobloxIcons) then
Expand All @@ -435,6 +437,8 @@ function Channel:Message(Message : string, Metadata : table?, IsPrivateMessage :
ImageLabel.BackgroundTransparency = 1
ImageLabel.Image = RobloxIcon
ImageLabel.Name = "ROBLOX_ICON"
ImageLabel.AnchorPoint = Vector2.new(0, 1);
ImageLabel.Position = UDim2.fromScale(0, 1);

StringRenderer:AddGroup("RobloxIcon", {ImageLabel}, Settings.MessageFont);
ImageLabel.Parent = MainFrame
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ function SmartStringObject:Update()

if ((not Object:IsA("TextLabel")) and (not Object:IsA("TextButton")) and (not Object:IsA("TextBox")) or (Object:GetAttribute("_smImg"))) then
Object.Size = UDim2.fromOffset(GroupFontSize - 2, GroupFontSize - 2);
Object.Position = UDim2.fromOffset(TotalSizeX, TotalSizeY);

if (TotalSizeX > 0 or TotalSizeY > 0) then
Object.Position = UDim2.fromOffset(TotalSizeX, TotalSizeY);
end

TotalSizeX += GroupFontSize

continue;
Expand Down

0 comments on commit ff867f2

Please sign in to comment.