public xcProfile(ImgProfile profile):base(0,0) { imageSize = new System.Drawing.Size(profile.ImgWid, profile.ImgHei); codec = profile.ImgType; expDesc = profile.Description; ext = profile.Extension; author = "Profile"; desc = profile.Description; if (profile.OpenSingle != "") singleFile = profile.OpenSingle; //fileOptions.BmpDialog = true; //fileOptions.OpenDialog = true; //since we are loading off of an already generic implementation //we should let that implementation determine how this format be saved //fileOptions.SaveDialog = false; //fileOptions.CustomDialog = false; fileOptions.Init(false, true, true, false); xConsole.AddLine("Profile created: " + desc); try { defPal = XCom.SharedSpace.Instance.GetPaletteTable()[profile.Palette]; } catch { defPal = XCom.Palette.TFTDBattle; } }
public bool this[IXCImageFile.Filter filter] { get { return filters[filter]; } }