mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 07:59:58 -04:00
Carry the button art in releases and draw the button prompts during the game build.
make_launcher.py and make_kit.py take --prompt-art (folders holding XGamepad, P5Gamepad and Keyboard_Mouse, or those folders) and copy only the pictures pad_prompts.py reads into the release's prompt-art folder; tools/prompt_art.py holds the art tables and that list, with no imaging packages. make_game.py's new last step, prompts, runs pad_prompts.py on that art into the game folder's romfs-patches-* folders. Its key names everything it reads (the RomFS, the art, the tools, the bind_ lines of nx2navi.ini, the folders being there), so it runs again only when one of those changed, and it makes no other step run. A kit without art skips it. The launcher's Python gets fonttools and pillow, and its jobs show a Draw the Button Prompts row when the version has art. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,12 @@ def command(layout, args):
|
||||
'--events']
|
||||
|
||||
|
||||
def has_prompt_art(layout):
|
||||
"""True when this version holds button art (app/<version>/prompt-art, tools/prompt_art.py FOLDER): make_game.py
|
||||
then draws the button prompts in a step of its own, and the jobs show a row for it."""
|
||||
return (layout.app / 'prompt-art').is_dir()
|
||||
|
||||
|
||||
def install_args(layout, dump, game_dir):
|
||||
dump = str(dump)
|
||||
if os.path.isdir(dump):
|
||||
|
||||
Reference in New Issue
Block a user