more comments and simplification of graphics sheet export

This commit is contained in:
2025-05-17 19:33:25 -05:00
parent a1adaa3e48
commit f394cfb411
2 changed files with 22 additions and 18 deletions

View File

@@ -565,8 +565,9 @@ static bool save_party_const(const cUniverse& univ, fs::path dest_file = "") {
}
if(spec_scen_g.party_sheet) {
extern void debug_show_texture(const sf::Texture& texture, float seconds = 2, std::string label = "");
// debug_show_texture(*spec_scen_g.party_sheet);
sf::Image party_pics = spec_scen_g.party_sheet->copyToImage();
party_pics.flipVertically();
fs::path tempPath = tempDir/"temp.png";
party_pics.saveToFile(tempPath.string());
std::ostream& pic_out = partyOut.newFile("save/export.png");