Mods
This commit is contained in:
parent
d0fe11a9ab
commit
3d14558d13
|
@ -122,13 +122,13 @@ Action: store_true
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### fast-minutes
|
### fast-seconds
|
||||||
|
|
||||||
The number of minutes between fast updates
|
The number of seconds between fast updates
|
||||||
|
|
||||||
Default: 0.0
|
Default: 0
|
||||||
|
|
||||||
Type: float
|
Type: int
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Args:
|
||||||
program: str = ""
|
program: str = ""
|
||||||
speed: str = ""
|
speed: str = ""
|
||||||
clean: bool = False
|
clean: bool = False
|
||||||
fast_minutes: float = 0.0
|
fast_seconds: int = 0
|
||||||
normal_minutes: float = 0.0
|
normal_minutes: float = 0.0
|
||||||
slow_minutes: float = 0.0
|
slow_minutes: float = 0.0
|
||||||
argdoc: bool = False
|
argdoc: bool = False
|
||||||
|
@ -54,7 +54,7 @@ class Args:
|
||||||
"program",
|
"program",
|
||||||
"speed",
|
"speed",
|
||||||
"clean",
|
"clean",
|
||||||
"fast_minutes",
|
"fast_seconds",
|
||||||
"normal_minutes",
|
"normal_minutes",
|
||||||
"slow_minutes",
|
"slow_minutes",
|
||||||
"argdoc",
|
"argdoc",
|
||||||
|
|
|
@ -144,9 +144,9 @@ class ArgSpec:
|
||||||
)
|
)
|
||||||
|
|
||||||
ArgSpec.add_argument(
|
ArgSpec.add_argument(
|
||||||
"fast_minutes",
|
"fast_seconds",
|
||||||
type=float,
|
type=int,
|
||||||
info="The number of minutes between fast updates",
|
info="The number of seconds between fast updates",
|
||||||
)
|
)
|
||||||
|
|
||||||
ArgSpec.add_argument(
|
ArgSpec.add_argument(
|
||||||
|
|
|
@ -24,7 +24,7 @@ class Config:
|
||||||
image_size: int = 80
|
image_size: int = 80
|
||||||
space_1: int = 18
|
space_1: int = 18
|
||||||
max_updates: int = 300
|
max_updates: int = 300
|
||||||
fast_minutes: float = 5 / 60
|
fast_seconds: int = 5
|
||||||
normal_minutes: float = 1
|
normal_minutes: float = 1
|
||||||
slow_minutes: float = 5
|
slow_minutes: float = 5
|
||||||
font_size: int = 20
|
font_size: int = 20
|
||||||
|
|
|
@ -349,7 +349,7 @@ class Game:
|
||||||
speed = Settings.speed
|
speed = Settings.speed
|
||||||
|
|
||||||
if speed == "fast":
|
if speed == "fast":
|
||||||
minutes = Args.fast_minutes or Config.fast_minutes
|
minutes = (Args.fast_seconds or Config.fast_seconds) / 60
|
||||||
elif speed == "normal":
|
elif speed == "normal":
|
||||||
minutes = Args.normal_minutes or Config.normal_minutes
|
minutes = Args.normal_minutes or Config.normal_minutes
|
||||||
elif speed == "slow":
|
elif speed == "slow":
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "3.0.0",
|
"version": "3.3.0",
|
||||||
"title": "Cromulant",
|
"title": "Cromulant",
|
||||||
"program": "cromulant",
|
"program": "cromulant",
|
||||||
"author": "madprops",
|
"author": "madprops",
|
||||||
|
|
|
@ -282,7 +282,7 @@ class Window:
|
||||||
Window.speed = SpecialComboBox()
|
Window.speed = SpecialComboBox()
|
||||||
tooltip = "The speed of the updates\n"
|
tooltip = "The speed of the updates\n"
|
||||||
|
|
||||||
fast = Args.fast_minutes or Config.fast_minutes
|
fast = (Args.fast_seconds or Config.fast_seconds) / 60
|
||||||
tooltip += f"Fast: {Utils.get_timeword(fast)}\n"
|
tooltip += f"Fast: {Utils.get_timeword(fast)}\n"
|
||||||
|
|
||||||
normal = Args.normal_minutes or Config.normal_minutes
|
normal = Args.normal_minutes or Config.normal_minutes
|
||||||
|
|
Loading…
Reference in New Issue