This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
config.lua
66 lines (55 loc) · 2.45 KB
/
config.lua
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
Config = {}
Config.From = 0 -- Starting progress percentage
Config.To = 100 -- Ending progress percentage
Config.Async = true -- Whether to run the progress bar asyncronously
Config.Duration = 5000
Config.Label = "Loading..."
Config.LabelPosition = "bottom"
Config.Color = "rgba(255, 255, 255, 1.0)" -- Progress bar colour
Config.BGColor = "rgba(0, 0, 0, 0.4)" -- Progress background colour
Config.ZoneColor = "rgba(51, 105, 30, 1)" -- Minigame Zone colour
Config.x = 0.5 -- Horizontal position
Config.y = 0.5 -- Vertical position
Config.Rotation = 0 -- Rotation angle of dial
Config.MaxAngle = 360 -- Max arc in degrees - 360 will be a full circle, 90 will be a quarter of a circle, etc
Config.Radius = 60 -- Radius of the radial dial
Config.Stroke = 10 -- stroke width of the radial dial
Config.Width = 300 -- Width of the linear bar
Config.Height = 40 -- Height of the linear bar
Config.Cap = 'butt' -- or 'round'
Config.Padding = 0 -- Backgound bar padding
Config.CancelKey = 178 -- Key used for cancelling progress
Config.ShowTimer = true -- Shows the timer countdown withing the dial
Config.ShowProgress = false -- Shows the progress within the dial
Config.Easing = "easeLinear" -- The easing used for the dial animation - see rprogress/ui/js/easings.js
Config.DisableControls = {
Mouse = false, -- Disable mouse controls until progress is complete
Player = false, -- Disable player movement until progress is complete
Vehicle = false -- Disable vehicle control until progress is complete
}
Config.onStart = function()end
Config.onComplete = function()end
Config.MiniGameOptions = {
MaxAngle = 240,
Rotation = -120,
Radius = 100,
Stroke = 30,
Difficulty = {
Custom = {
Zone = 40, -- The percentage of the dial that is the trigger zone (lower = harder)
Duration = 1000 -- Time in milliseconds for the dial to fill in one direction (lower = harder)
},
Easy = {
Zone = 30,
Duration = 500
},
Medium = {
Zone = 20,
Duration = 500
},
Hard = {
Zone = 10,
Duration = 500
}
}
}