mirror of
https://gitlab.com/4w/mtimer.git
synced 2024-11-28 10:13:50 +01:00
f1214ba398
This commit also implements a button getting function to automatically create icon buttons.
35 lines
958 B
Lua
35 lines
958 B
Lua
local modpath = minetest.get_modpath('mtimer')..DIR_DELIM
|
|
local syspath = modpath..'system'..DIR_DELIM
|
|
|
|
|
|
-- Set initial global `mtimer` table
|
|
--
|
|
-- @see ./system/formspec/formspec_creation.lua
|
|
-- @see ./system/load_configuration.lua
|
|
mtimer = {
|
|
translator = minetest.get_translator('mtimer'),
|
|
dialog = {},
|
|
meta = {}
|
|
}
|
|
|
|
|
|
-- Load configuration
|
|
dofile(syspath..'load_configuration.lua')
|
|
|
|
|
|
-- Load formspec functionality
|
|
dofile(syspath..'formspec'..DIR_DELIM..'formspec_helpers.lua')
|
|
dofile(syspath..'formspec'..DIR_DELIM..'main_menu.lua')
|
|
dofile(syspath..'formspec'..DIR_DELIM..'real_time_universal.lua')
|
|
dofile(syspath..'formspec'..DIR_DELIM..'formspec_creation.lua')
|
|
|
|
|
|
-- Load system
|
|
dofile(syspath..'chat_command.lua')
|
|
dofile(syspath..'update_timer.lua')
|
|
dofile(syspath..'on_receive_fields.lua')
|
|
dofile(syspath..'on_joinplayer.lua')
|
|
dofile(syspath..'get_times.lua')
|
|
dofile(syspath..'get_timer_data.lua')
|
|
dofile(syspath..'register_globalstep.lua')
|