Skip to content

Commit

Permalink
Fix AutoLobbyConnectionMatrixDot
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 25, 2024
1 parent d5a3edc commit bea1ba0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/ui/lobby/autolobby/AutolobbyConnectionMatrixDot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
--** SOFTWARE.
--******************************************************************************************************

local EnumColors = import("/lua/shared/color.lua").EnumColors

local Bitmap = import("/lua/maui/bitmap.lua").Bitmap

--- A small dot that represents the connection status between players.
Expand Down Expand Up @@ -79,13 +77,13 @@ local AutolobbyConnectionMatrixDot = Class(Bitmap) {
---@param status UIPeerLaunchStatus
SetStatus = function(self, status)
if status == 'Unknown' then
self:SetSolidColor(EnumColors.Blue)
self:SetSolidColor("Blue")
elseif status == 'Rejoining' then
self:SetSolidColor(EnumColors.HotPink)
self:SetSolidColor("HotPink")
elseif status == 'Missing local peers' then
self:SetSolidColor(EnumColors.Orange)
self:SetSolidColor("Orange")
elseif status == 'Ready' then
self:SetSolidColor(EnumColors.Green)
self:SetSolidColor("Green")
end
end,

Expand Down

0 comments on commit bea1ba0

Please sign in to comment.