-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
130 lines (115 loc) · 3.1 KB
/
constants.ts
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
export const appSettings = {
versionString: "animystic version: 0.0.1 alpha",
versionStringColor: [255, 128],
versionStringTextSize: 8,
defaultFill: [255],
defaultFont: "Georgia",
// client settings
clientUsername: "user",
userColor: [255, 0, 255, 50],
// file settings
dataEndpoint: "data/dist.h",
imagesPath: "assets/image",
mainImagesPath: "assets/image/zarbalatrax/content",
specialImagesPath: "assets/image/zarbalatrax/special",
soundsPath: "assets/sound",
logo: "sound-transparent.png",
missingImage: "thonk.png",
playButton: "play-circle.png",
pauseButton: "pause-circle.png",
helpButton: "question-circle.png",
uploadButton: "cloud-upload.png",
downloadButton: "download.png",
playRemoteButton: "play-remote-circle.png",
filetypeIdLookup: [1, 14, 31, 44, 60, 71, 84, 97, 100, 101],
filetypes: [
"★ Fortune",
"★★ Fortune",
"★ Story",
"★★ Story",
"★★★ Sound Design",
"Idle",
"Introduction",
'"In a past life..."',
"★★★GOD MODE★★★",
"Music",
],
// menu and gui settings
bannerHeight: 0.15,
logoHeightToBannerHeightRatio: 0.75,
logoAspect: 512 / 107,
textSizeRatio: 64 / 1024,
filenameTextScale: 1.5,
menuTextSizeRatio: 0.2,
maxTextSize: 64,
minCanvasSize: 128,
horizontalMargin: 0.05,
verticalMargin: 0.015,
cellSize: 0.08,
cellPadding: 0.05,
// menu colors
backgroundColor: [31.4, 32.2, 34.9],
headerColor: [24, 25, 28],
contentColor: [55, 57, 62],
menuHoverColor: [255, 255, 255, 50],
menuTileColor: [0, 40],
menuBorderRadius: 0,
// loading settings
defaultLoadingMessage: "Loading...",
soundLoadingWeight: 0.9,
imageLoadingWeight: 0.1,
// audio widget settings
samplingResolution: 64,
maxWaveHeightProportion: 1 / 3,
innerPadding: 0.05,
controlsHeightProportion: 1 / 16,
audioButtonHeightProportion: 2 / 3,
// audio widget appearance
scrubberColor: [255, 0, 0],
markerColor: [0, 0, 255],
// signal widget settings
characters: {
zarbalatrax: {
angularRange: 50,
angularSpeed: 2 / 7, // degrees per millisecond
rangeInverted: true,
strokeColor: [255, 0, 255],
command: 2,
},
squambo: {
angularRange: 180,
angularSpeed: 18 / 125, // degrees per millisecond
rangeInverted: true,
strokeColor: [0, 255, 0],
command: 3,
},
},
signalWaveHeightScale: 0.4,
mouseTolerance: 0.008,
clipboardHistoryLength: 64,
minimumKeyframeLength: 10,
// signal widget appearance
strokeWeight: 3,
indicatorMargin: 0.9,
defaultSignalStrokeColor: [255, 0, 255],
badKeyframeColor: [0, 0, 255],
freeIndicatorColor: [255, 0, 0],
selectionIndicatorColor: [0, 0, 255],
signalNameTextScaleRatio: 0.25,
signalNameTextHeightScale: 1.25,
// command settings for servo widget
commands: {
delay: 1,
talk: 2,
},
// help box settings
helpBoxSelector: "#help",
// upload box settings
uploadBoxSelector: "#upload",
boxCloseTimeout: 1000,
// save box settings
saveBoxSelector: "#save",
downloadButtonPadding: 0.5,
// list box settings
listBoxSelector: "#list",
} as const;