# Mac checks of SYSTEM > NETWORK's text (0.17.7). Not part of the IDF build.
#   make -C components/osd/system/host test    play_help.c is what the generator makes,
#                                             and every line on the page fits the panel
#   make -C components/osd/system/host shots   PNGs of the help, the question and the hints
FONT = ../../../fonts/fingfai.c
SHOT = ../../../cwl/host/osd_phone.py
BG ?= ../../../../../shots/ble1/phone2.png
OUT ?= shots

test:
	python3 -I make_play_help.py $(FONT) play_help_check.c > /dev/null
	cmp play_help_check.c ../play_help.c && echo "play_help.c: up to date"
	python3 -I check_lines.py $(FONT) ../network.c

shots:
	mkdir -p $(OUT)
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/help_index.png "! HOW  TO  PLAY  ONLINE" "!>BEFORE  YOU  START" " WAY  1:  INVITE" " WAY  2:  ROOM  CODE" " LINK-CABLE  GAMES" " NOT  CONNECTING" "! A:  OPEN   B:  BACK"
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/public_match.png "!PUBLIC  MATCH" "YOUR  NAME  WILL" "BE  VISIBLE" "!A:  OK" "!SELECT:" "!GENERIC  NAME" "!B:  BACK"
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/toggle_hint.png "B:  HOW  TO  PLAY"
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/room_view.png "!NOT  IN  A  ROOM" "" "" "GAME  ROOM" "" "!A:  HOST  OR  JOIN" "B:  HOW  TO  PLAY"
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/room_saving.png "!SAVING..." "" "" "GAME  ROOM" "" "!A:  HOST  OR  JOIN" "B:  HOW  TO  PLAY"
	python3 -I $(SHOT) $(FONT) $(BG) $(OUT)/room_failed.png "!NO  ROOM" "TRY  AGAIN  LATER" "" "GAME  ROOM" "" "!A:  HOST  OR  JOIN" "B:  HOW  TO  PLAY"

.PHONY: test shots
