Mods
This commit is contained in:
parent
9a2c1bdcc5
commit
0ea97aa03d
|
@ -231,10 +231,12 @@ class Game:
|
||||||
|
|
||||||
if speed == "fast":
|
if speed == "fast":
|
||||||
delay = Config.loop_delay_fast
|
delay = Config.loop_delay_fast
|
||||||
|
elif speed == "normal":
|
||||||
|
delay = Config.loop_delay_normal
|
||||||
elif speed == "slow":
|
elif speed == "slow":
|
||||||
delay = Config.loop_delay_slow
|
delay = Config.loop_delay_slow
|
||||||
else:
|
else:
|
||||||
delay = Config.loop_delay_normal
|
return
|
||||||
|
|
||||||
Game.timer = QTimer()
|
Game.timer = QTimer()
|
||||||
Game.timer.timeout.connect(Game.get_status)
|
Game.timer.timeout.connect(Game.get_status)
|
||||||
|
|
|
@ -227,7 +227,7 @@ class Window:
|
||||||
tooltip += f"Normal: {Utils.get_seconds(Config.loop_delay_normal)}\n"
|
tooltip += f"Normal: {Utils.get_seconds(Config.loop_delay_normal)}\n"
|
||||||
tooltip += f"Slow: {Utils.get_seconds(Config.loop_delay_slow)}"
|
tooltip += f"Slow: {Utils.get_seconds(Config.loop_delay_slow)}"
|
||||||
Window.speed.setToolTip(tooltip)
|
Window.speed.setToolTip(tooltip)
|
||||||
Window.speed.addItems(["Fast", "Normal", "Slow"])
|
Window.speed.addItems(["Fast", "Normal", "Slow", "Paused"])
|
||||||
Window.speed.setCurrentIndex(1)
|
Window.speed.setCurrentIndex(1)
|
||||||
Window.speed.currentIndexChanged.connect(Game.update_speed)
|
Window.speed.currentIndexChanged.connect(Game.update_speed)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
# This is used to create a tag in the git repo
|
||||||
|
# You probably don't want to run this
|
||||||
|
|
||||||
|
# pacman: python-gitpython
|
||||||
|
import os
|
||||||
|
import git
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
here = Path(__file__).resolve()
|
||||||
|
parent = here.parent.parent
|
||||||
|
os.chdir(parent)
|
||||||
|
|
||||||
|
with open("cromulant/manifest.json") as f:
|
||||||
|
manifest = json.loads(f.read())
|
||||||
|
|
||||||
|
version = manifest["version"]
|
||||||
|
repo = git.Repo(".")
|
||||||
|
repo.create_tag(version)
|
||||||
|
repo.remotes.origin.push(version)
|
||||||
|
print(f"Created tag: {version}")
|
Loading…
Reference in New Issue