diff --git a/Scripts/background.scpt b/Scripts/background.scpt index a1bf185..cd9a606 100644 --- a/Scripts/background.scpt +++ b/Scripts/background.scpt @@ -1,5 +1,5 @@ tell application "iTerm" tell current session of current window - set background image to "/Users/Laki/GitHub/Pokemon-Terminal-Themes/Images/Generation IV - Sinnoh/390.png" + set background image to "/Users/Laki/GitHub/Pokemon-Terminal-Themes/Images/Generation I - Kanto/151.png" end tell end tell \ No newline at end of file diff --git a/main.py b/main.py index 9a6ee71..a7fbf87 100755 --- a/main.py +++ b/main.py @@ -11,15 +11,15 @@ import sys import time -def debug(): +def debug(start, end): # Test each Pokemon in order, one by one. - for x in range(1, 494): - backchanger.change_background(x) - try: + try: + for x in range(start, end): + backchanger.change_background(x) time.sleep(0.25) - except KeyboardInterrupt: - print("Program was terminated.") - sys.exit() + except KeyboardInterrupt: + print("Program was terminated.") + sys.exit() if __name__ == "__main__": @@ -45,7 +45,15 @@ if __name__ == "__main__": elif arg == "all" or arg == "pokemon" or arg == "list": printer.print_all() elif arg == "slideshow": - debug() + debug(1, 494) + elif arg == "slideshow-kanto": + debug(1, 152) + elif arg == "slideshow-johto": + debug(152, 252) + elif arg == "slideshow-hoenn": + debug(252, 387) + elif arg == "slideshow-sinnoh": + debug(387, 494) elif arg == "rand" or arg == "random": backchanger.change_background(random.randint(1, 494)) elif arg == "?" or arg == "current": diff --git a/printer.py b/printer.py index 51829c1..528e3f1 100644 --- a/printer.py +++ b/printer.py @@ -17,11 +17,12 @@ Parameters: [letter] - List all Pokemon who's names begin with a particular letter. Other Parameters: - pokemon all - List all the Pokemon supported. - pokemon random - Pick a Pokemon at random. - pokemon regions - List all the available regions. - pokemon slideshow - Iterate through each pokemon. - pokemon help - Display this menu. + pokemon all - List all the Pokemon supported. + pokemon random - Pick a Pokemon at random. + pokemon regions - List all the available regions. + pokemon slideshow - Iterate through each Pokemon. + pokemon slideshow-kanto - Iterate through each Pokemon in the specified reigon. + pokemon help - Display this menu. ''')