Commit d6f2d545 authored by nanahira's avatar nanahira

format

parent a17d6963
......@@ -124,15 +124,15 @@ public class MyCardHelper {
}
private static void DownloadFaceFromUrl(string nameFace, string url)
{
string face = "textures/face/" + nameFace + ".png";
HttpDldFile df = new HttpDldFile();
df.Download(url, face);
if (File.Exists(face))
{
Texture2D Face = UIHelper.getTexture2D(face);
UIHelper.faces.Remove(nameFace);
UIHelper.faces.Add(nameFace, Face);
}
}
{
string face = "textures/face/" + nameFace + ".png";
HttpDldFile df = new HttpDldFile();
df.Download(url, face);
if (File.Exists(face))
{
Texture2D Face = UIHelper.getTexture2D(face);
UIHelper.faces.Remove(nameFace);
UIHelper.faces.Add(nameFace, Face);
}
}
}
......@@ -164,17 +164,17 @@ public class Room : WindowServantSP
RoomPlayer player = new RoomPlayer();
player.name = name;
player.prep = false;
if (Program.I().mycard.isMatching && name != "********") //athletic match name mask
{
(new Thread(() =>
{
MyCardHelper.DownloadFace(name);
if (Program.I().mycard.isMatching && name != "********") //athletic match name mask
{
(new Thread(() =>
{
MyCardHelper.DownloadFace(name);
if(isShowed)
realize();
else if(Program.I().ocgcore.isShowed && Program.I().ocgcore.gameInfo)
Program.I().ocgcore.gameInfo.realize();
})).Start();
}
})).Start();
}
roomPlayers[pos] = player;
realize();
UIHelper.Flash();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment