23 lines
611 B
Python
23 lines
611 B
Python
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
|