2015-07-03 00:12:02 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Drawing.Imaging;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Config
|
|
|
|
|
{
|
|
|
|
|
public class PlayerProfile
|
|
|
|
|
{
|
|
|
|
|
public string PlayerName = "NewPlayer";
|
2016-02-11 18:34:55 -05:00
|
|
|
|
|
|
|
|
|
[NonSerialized]
|
2015-07-03 00:12:02 -04:00
|
|
|
|
public byte[] PlayerAvatar;
|
|
|
|
|
|
|
|
|
|
public PlayerProfile()
|
|
|
|
|
{
|
2016-02-11 18:34:55 -05:00
|
|
|
|
//SetAvatar(Properties.Resources.MesenLogo);
|
2015-07-03 00:12:02 -04:00
|
|
|
|
}
|
2016-02-19 13:05:04 -05:00
|
|
|
|
/*
|
2015-07-03 00:12:02 -04:00
|
|
|
|
|
|
|
|
|
public void SetAvatar(Image image)
|
|
|
|
|
{
|
|
|
|
|
PlayerAvatar = image.ResizeImage(64, 64).ToByteArray(ImageFormat.Bmp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetAvatar(string filename)
|
|
|
|
|
{
|
|
|
|
|
PlayerAvatar = File.ReadAllBytes(filename);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Image GetAvatarImage()
|
|
|
|
|
{
|
|
|
|
|
return Image.FromStream(new MemoryStream(PlayerAvatar));
|
2016-02-19 13:05:04 -05:00
|
|
|
|
}*/
|
2015-07-03 00:12:02 -04:00
|
|
|
|
}
|
|
|
|
|
}
|