Skip to content

Commit

Permalink
Add these fixes to the Teams UI too
Browse files Browse the repository at this point in the history
  • Loading branch information
WalkerOfBacon authored Jun 10, 2024
1 parent 2f5d490 commit ccc3a9e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MainModule/Client/UI/Default/Teams.luau
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ return function(data, env)
self.Active = false
self.AutoButtonColor = false
self.Text = "..."
client.Remote.Send("ProcessCommand", string.format("%snewteam%s%s%s%s", data.CmdPrefix, data.CmdSplitKey, teamName.Text, data.CmdSplitKey, teamColor.Text));
client.Remote.Send("ProcessCommand", string.format("%snewteam%s%s%s%s", data.CmdPrefix, data.CmdSplitKey, `"{teamName.Text}"`, data.CmdSplitKey, teamColor.Text));
teamName.Text = ""
teamColor.Text = ""
wait(1.2)
Expand All @@ -97,10 +97,12 @@ return function(data, env)
end
end;
})


--[[
teamName:GetPropertyChangedSignal("Text"):Connect(function()
teamName.Text = string.gsub(teamName.Text, data.CmdSplitKey, "")
end)
end)]]

teamColor:GetPropertyChangedSignal("Text"):Connect(function()
teamColor.TextColor3 = BrickColor.new(teamColor.Text).Color
--teamColor.TextColor3 = `{BrickColor.new(teamColor.Text:sub(1, 1):upper()}{teamColor.Text:sub(2):lower()).Color}` -- unfortunately we have BrickColors with names like "New Yeller"
Expand Down

0 comments on commit ccc3a9e

Please # to comment.