MphRead icon indicating copy to clipboard operation
MphRead copied to clipboard

HUD & menu texture export

Open esertu opened this issue 11 months ago • 4 comments

I couldn't find a way to export or even view HUD textures such as the assortment of screens meant for the lower screen or the scan point objects that are visible in the map when using the scan viewer. Would be grateful for a way to export those!

esertu avatar Jan 05 '25 16:01 esertu

It's not accessible without running from source, but there is already image export code for HUD layers and objects. So I can add a command line option for that, although it would probably just dump everything into folders instead of letting you pick something specific to export.

I don't think I'll make a viewer, since simply exporting images gives you everything you need.

NoneGiven avatar Jan 06 '25 16:01 NoneGiven

Added in 0.27.0.0. You can use -export layer2d and -export object2d on the command line.

NoneGiven avatar Jan 06 '25 19:01 NoneGiven

Awesome, thank you so much for the speedy implementation! Some images don't get exported with those command line options - I realize now I should've said UI, not HUD. For example, here's two images I couldn't find, and the background image used in the ship menu doesn't get exported either. Would love an option to export those too if possible. Screenshot 2025-01-07

esertu avatar Jan 07 '25 20:01 esertu

The things being exported with the current commands are only those that are part of gameplay, not the game's menus (besides the pause menu). MphRead has very little support for anything menu-related, as it's been focused so far on gameplay reimplementation, not menus, which are handled by a separate code overlay.

I'll reopen the issue to track exporting models/images from menus when such support eventually becomes available.

NoneGiven avatar Jan 08 '25 04:01 NoneGiven