-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
44 lines (40 loc) · 679 Bytes
/
init.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
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
---CS Client API
cs_client = {
hud = {},
menu = {},
utils = {},
}
---HUD Text colors
cs_client.text = {
normal = 0xFFFFFF,
warning = 0xFF3B3B,
}
local modules = {
utils = {
"player_callbacks",
"controls",
"player",
},
api = {
"api",
"data",
},
hud = {
"health",
"center_msg",
--"enemy_indicator",
"kill_history",
"menu_home",
"menu_inventory",
"hud_bar",
"flash",
"minimap",
},
}
for cat,mod in pairs(modules) do
for _,name in ipairs(mod) do
dofile(modpath.."/"..cat.."/"..name..".lua")
end
end