Skip to content

Commit

Permalink
v4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxiereal authored Mar 30, 2024
1 parent c4b8b69 commit e5db77f
Showing 1 changed file with 41 additions and 22 deletions.
63 changes: 41 additions & 22 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def sys(clr, text):
if clr == 1:
c.print(f'[green][✓] {text}[/green]')
elif clr == 2:
c.print(f'[yellow][] {text}[/yellow]')
c.print(f'[yellow][?] {text}[/yellow]')
else:
c.print(f'[red][✗] {text}[/red]')
def zpr(text):
Expand Down Expand Up @@ -126,7 +126,7 @@ def updater():

# function to reduce code when using interpreter() page 97
def yn(prompt=""):
prompt += f"([green]Y[/green]/[red]N[/red]): "
prompt += f"([green]Y[/green]/[red]n[/red]): "
goodInput, YNvalue = False, False
while not goodInput:
goodInput, YNvalue = interpreter(97, prompt)
Expand Down Expand Up @@ -265,25 +265,25 @@ def dwnTool(tool):

def helpe():
cls()
c.print(f"┌─────────────────────────────────────────────────────────────\n"
f"│ Keybind │ Command │\n"
f"│ H │ Help Page (this page) │\n"
f"│ N │ Next Page │\n"
f"│ B │ Previous Page (back) │\n"
f"│ 99 │ Exit │\n"
f"├─────────────────────────────────────────────────────────────\n"
f"│ Color │ Meaning \n"
f"│ {cl(2, 'YELLOW')} │ Advanced Option \n"
f"├─────────────────────────────────────────────────────────────\n"
f"│ Error code │ Explanation \n"
f"│ 1 │ File already exists \n"
f"│ 2 │ Can't check for file overwrite \n"
f"│ 3 │ Can't download file from the server \n"
f"├─────────────────────────────────────────────────────────────\n"
f"│ If scripts won't execute, press P \n"
f"├─────────────────────────────────────────────────────────────\n"
f"│ Press ENTER/B to go back. \n"
f"└─────────────────────────────────────────────────────────────\n")
c.print(f"┌───────────────────────────────────────────────────────┐\n"
f"│ Key │ Command │\n"
f"│ H │ Help Page (this page) │\n"
f"│ N │ Next Page │\n"
f"│ B │ Previous Page (back) │\n"
f"│ 99 │ Exit │\n"
f"├───────────────────────────────────────────────────────┤\n"
f"│ Color │ Meaning │\n"
f"│ {cl(2, 'YELLOW')} │ Advanced Option │\n"
f"├───────────────────────────────────────────────────────┤\n"
f"│ Error │ Explanation │\n"
f"│ 1 │ File already exists │\n"
f"│ 2 │ Can't check for file overwrite │\n"
f"│ 3 │ Can't download file from the server │\n"
f"├───────────────────────────────────────────────────────┤\n"
f"│ If scripts won't execute, press P\n"
f"├───────────────────────────────────────────────────────┤\n"
f"│ Press ENTER/B to go back. │\n"
f"└───────────────────────────────────────────────────────┘\n")
return interpreter(0)

# function that interprets user input
Expand All @@ -296,6 +296,25 @@ def interpreter(page, prompt="> "):
# if user inputs 99, exit the program
if choose == "99":
exit()

if choose == "peggle":
download('http://xemu.top/files/peggle.7z', 'peggle.7z', 'Peggle Deluxe')

if choose == "fast":
cls()
c.print(" .-;':':'-.")
c.print(" {'.'.'.'.'.}")
c.print(" ) '`.")
c.print(" '-. ._ ,_.-='")
c.print(" `). ( `);(")
c.print(" ('. .)(,'.)")
c.print(" ) ( ,').(")
c.print(" ( .').'(').")
c.print(" .) (' ).('")
c.print(" ' ) ( ).")
c.print(" .'( .)'")
c.print(" .).'")
input('jelelfisg')

# if user inputs h, open help
if choose == "h" and page != 0 :
Expand Down Expand Up @@ -423,4 +442,4 @@ def pageDisplay(page):
pageDisplay(1)
except KeyboardInterrupt: # NICE
print('bye!')
exit()
exit()

0 comments on commit e5db77f

Please sign in to comment.