(007519ad5) Higher-res submarine preview images
This commit is contained in:
@@ -22,6 +22,7 @@ namespace Barotrauma
|
|||||||
"CrewExperienceHigh"
|
"CrewExperienceHigh"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private readonly Point defaultPreviewImageSize = new Point(512, 368);
|
||||||
|
|
||||||
private Camera cam;
|
private Camera cam;
|
||||||
|
|
||||||
@@ -800,13 +801,8 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*foreach (var contentPackage in GameMain.Config.SelectedContentPackages)
|
|
||||||
{
|
|
||||||
Submarine.MainSub.RequiredContentPackages.Add(contentPackage.Name);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
MemoryStream imgStream = new MemoryStream();
|
MemoryStream imgStream = new MemoryStream();
|
||||||
CreateImage(256, 128, imgStream);
|
CreateImage(defaultPreviewImageSize.X, defaultPreviewImageSize.Y, imgStream);
|
||||||
|
|
||||||
Submarine.SaveCurrent(savePath, imgStream);
|
Submarine.SaveCurrent(savePath, imgStream);
|
||||||
Submarine.MainSub.CheckForErrors();
|
Submarine.MainSub.CheckForErrors();
|
||||||
|
|||||||
Reference in New Issue
Block a user