Hook up the HSL sliders

This commit is contained in:
Paul Chote
2010-07-16 22:34:30 +12:00
parent 44e1b8311f
commit 4fb3f67a9d
2 changed files with 57 additions and 22 deletions

View File

@@ -320,29 +320,13 @@ namespace OpenRA.Server
SyncLobbyInfo();
return true;
}},
{ "pal",
{ "color",
s =>
{
var c = s.Split(',').Select(cc => int.Parse(cc)).ToArray();
GetClient(conn).Color = System.Drawing.Color.FromArgb(c[0],c[1],c[2]);
SyncLobbyInfo();
return true;
/*
int pali;
if (!int.TryParse(s, out pali))
{
Console.WriteLine("Invalid palette: {0}", s);
return false;
}
if (lobbyInfo.Clients.Where( c => c != GetClient(conn) ).Any( c => c.PaletteIndex == pali ))
{
SendChatTo( conn, "You can't be the same color as another player" );
return true;
}
GetClient(conn).PaletteIndex = pali;
SyncLobbyInfo();
return true;
*/
}},
{ "map",
s =>