mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-23 12:23:04 +00:00
Added region specific slideshow
This commit is contained in:
parent
d4161f77d2
commit
ad7cf2dce9
3 changed files with 23 additions and 14 deletions
|
@ -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
|
24
main.py
24
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":
|
||||
|
|
11
printer.py
11
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.
|
||||
''')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue