reverted
This commit is contained in:
parent
b641829561
commit
bb2e21b5bd
|
|
@ -698,7 +698,7 @@ if UserSettings and LoadLibrary then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getIconForPlayer(membershipType,name)
|
local function getMembershipTypeIcon(membershipType,name)
|
||||||
for i,v in ipairs(adminUserNames) do
|
for i,v in ipairs(adminUserNames) do
|
||||||
if v == name then
|
if v == name then
|
||||||
return "rbxasset://textures/ui/TinyAdminIcon.png"
|
return "rbxasset://textures/ui/TinyAdminIcon.png"
|
||||||
|
|
@ -722,11 +722,11 @@ if UserSettings and LoadLibrary then
|
||||||
local fontHeight = 20
|
local fontHeight = 20
|
||||||
|
|
||||||
local friendIconImage = getFriendStatusIcon(friendStatus)
|
local friendIconImage = getFriendStatusIcon(friendStatus)
|
||||||
nameObject.UserIconLabel.FriendStatusLabel.Visible = (friendIconImage ~= nil)
|
nameObject.MembershipTypeLabel.FriendStatusLabel.Visible = (friendIconImage ~= nil)
|
||||||
|
|
||||||
if friendIconImage ~= nil then
|
if friendIconImage ~= nil then
|
||||||
--Show friend icon
|
--Show friend icon
|
||||||
nameObject.UserIconLabel.FriendStatusLabel.Image = friendIconImage
|
nameObject.MembershipTypeLabel.FriendStatusLabel.Image = friendIconImage
|
||||||
nameObject.NameLabel.Position =UDim2.new(0,2*fontHeight,0,1)
|
nameObject.NameLabel.Position =UDim2.new(0,2*fontHeight,0,1)
|
||||||
nameObject.NameLabel.Size = UDim2.new(1,-2*fontHeight,1,-2)
|
nameObject.NameLabel.Size = UDim2.new(1,-2*fontHeight,1,-2)
|
||||||
else
|
else
|
||||||
|
|
@ -739,7 +739,7 @@ if UserSettings and LoadLibrary then
|
||||||
local fontHeight = 20
|
local fontHeight = 20
|
||||||
|
|
||||||
nameObject.Size = UDim2.new(1,0,0,fontHeight)
|
nameObject.Size = UDim2.new(1,0,0,fontHeight)
|
||||||
nameObject.UserIconLabel.Image = getIconForPlayer(membershipStatus,nameObject.NameLabel.Text)
|
nameObject.MembershipTypeLabel.Image = getMembershipTypeIcon(membershipStatus,nameObject.NameLabel.Text)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -770,13 +770,13 @@ if UserSettings and LoadLibrary then
|
||||||
frame.BackgroundTransparency = 0.5
|
frame.BackgroundTransparency = 0.5
|
||||||
frame.BorderSizePixel = 0
|
frame.BorderSizePixel = 0
|
||||||
|
|
||||||
local UserIconStatusLabel = Instance.new("ImageLabel")
|
local membershipStatusLabel = Instance.new("ImageLabel")
|
||||||
UserIconStatusLabel.Name = "UserIconLabel"
|
membershipStatusLabel.Name = "MembershipTypeLabel"
|
||||||
UserIconStatusLabel.BackgroundTransparency = 1
|
membershipStatusLabel.BackgroundTransparency = 1
|
||||||
UserIconStatusLabel.Size = UDim2.new(1,0,1,0)
|
membershipStatusLabel.Size = UDim2.new(1,0,1,0)
|
||||||
UserIconStatusLabel.Position = UDim2.new(0,0,0,0)
|
membershipStatusLabel.Position = UDim2.new(0,0,0,0)
|
||||||
UserIconStatusLabel.SizeConstraint = Enum.SizeConstraint.RelativeYY
|
membershipStatusLabel.SizeConstraint = Enum.SizeConstraint.RelativeYY
|
||||||
UserIconStatusLabel.Parent = frame
|
membershipStatusLabel.Parent = frame
|
||||||
|
|
||||||
local friendStatusLabel = Instance.new("ImageLabel")
|
local friendStatusLabel = Instance.new("ImageLabel")
|
||||||
friendStatusLabel.Name = "FriendStatusLabel"
|
friendStatusLabel.Name = "FriendStatusLabel"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue