-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.lua
58 lines (27 loc) · 1019 Bytes
/
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
local astro = Astro.Type
local isString = astro.isString
local getFiles = tapLua.FILEMAN.getFiles
local Config = {
showChildren = true, showTraces = false, showFading = true,
maxZoom = 2, timeOn = 8
}
local Theme = {
Font = { randomColor = false, Color = Color.White }
}
local WindowsPath = mindbox.Path .. "Assets/Graphics/Windows/"
local function setWindow(input)
if isString(input) then Theme.Window = WindowsPath .. input return end
local windows = getFiles( WindowsPath ) Theme.Window = windows[input]
end
local FontsPath = mindbox.Path .. "Assets/Fonts/"
local function setFont(input)
local font = Theme.Font
if isString(input) then font.File = FontsPath .. input return end
local fonts = getFiles( FontsPath, "%.ini", true )
font.File = fonts[input]
end
local merge = {
Config = Config, Theme = Theme,
setWindow = setWindow, setFont = setFont
}
Astro.Table.merge( mindbox, merge )