menu tree mockup

This commit is contained in:
Maxime Réaux 2025-12-19 12:18:35 +01:00
parent 57543e139a
commit 02e7221149
7 changed files with 145 additions and 23 deletions

23
cli/campaign_menu.py Normal file
View file

@ -0,0 +1,23 @@
from cli.round_menu import round_menu
def campaign_menu(data, war, campaign):
while True:
print(f"\n=== Campaign: {campaign['name']} ===")
print("1. Select round")
print("2. Append round")
print("3. Finish campaign")
print("4. Edit/Delete campaign")
print("0. Back")
choice = input("> ").strip()
if choice == "1":
rnd = select_round(campaign)
if rnd:
round_menu(data, war, campaign, rnd)
elif choice == "2":
append_round(campaign)
elif choice == "0":
return