-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathglobal_var.py
135 lines (117 loc) · 2.5 KB
/
global_var.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import os
from osr2mp4.osrparse.enums import Mod
defaultsettings = {
"Cursor size": 1,
"In-game interface": True,
"Show scoreboard": True,
"Background dim": 100,
"Rotate sliderball": False,
"Always show key overlay": True,
"Automatic cursor size": False,
"Show mods icon": True,
"Enable PP counter": False,
"Enable Strain Graph": False,
"Score meter size": 1,
"Show score meter": True,
"Song volume": 50,
"Effect volume": 50,
"Ignore beatmap hitsounds": False,
"Use skin's sound samples": False,
"Song delay": 0,
"Global leaderboard": False,
"Mods leaderboard": "*",
"Custom mods": "",
"api key": "lol",
"Use FFmpeg video writer": False,
"FFmpeg codec": "libx264",
"FFmpeg custom commands": "-preset ultrafast -crf 23",
"Audio bitrate": 500,
"Slider quality": 2
}
defaultppconfig = {
"x": 1320,
"y": 725,
"Size": 25,
"Rgb": [
255,
255,
255
],
"Alpha": 1,
"Font": "arial.ttf",
"Background": os.path.join(os.path.dirname(__file__), "res/pptemplate.png"),
"Center Text": False,
"Hitresult x": 50,
"Hitresult y": 150,
"Hitresult Size": 16,
"Hitresult Rgb": [
255,
255,
255
],
"Hitresult Alpha": 1,
"Hitresult Font": "arial.ttf",
"Hitresult Background": os.path.join(os.path.dirname(__file__), "res/hitresulttemplate.png"),
"Hitresult Gap": 3,
}
defaultstrainconfig = {
"x": 100,
"y": 150,
"Size": 8,
"AspectRatio": [8,4],
"Rgb": [255,255,255],
"Alpha": 1,
"Smoothing": 5,
"ProgressAlpha": 0.75,
"GraphDensity": 30,
}
# source: ggjjwp
sortedmods = [
Mod.NoFail,
Mod.Easy,
Mod.Hidden,
Mod.HardRock,
Mod.HardSoft, # dont ask
Mod.Relax,
Mod.SuddenDeath,
Mod.HalfTime,
Mod.Nightcore,
Mod.DoubleTime,
Mod.Flashlight,
Mod.Perfect,
Mod.Autopilot,
Mod.SpunOut,
Mod.Autoplay
]
videoextensions = ["mp4", "avi", "mkv", "mov"]
class Settings:
def __init__(self):
self.skin_path = None
self.default_path = None
self.skin_ini = None
self.default_skin_ini = None
self.format = ".png"
self.x2 = "@2x"
self.ffmpeg = None
self.output = None
self.beatmap = None
self.osu = None
self.path = None
self.temp = None
self.width = None
self.height = None
self.fps = None
self.scale = None
self.playfieldscale = None
self.playfieldwidth = None
self.playfieldheight = None
self.movedown = None
self.moveright = None
self.timeframe = None
self.strainsettings = defaultstrainconfig
self.settings = defaultsettings
self.ppsettings = defaultppconfig
self.codec = None
self.audiocodec = None
self.process = None
self.enablelog = False