-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.lua
More file actions
52 lines (42 loc) · 1.62 KB
/
Copy pathmain.lua
File metadata and controls
52 lines (42 loc) · 1.62 KB
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
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: main.lua
-- brief: the entry point from LuaUI
-- author: jK
--
-- Copyright (C) 2011.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
LUA_NAME = Script.GetName()
LUAUI_DIRNAME = Script.GetName() .. "/"
LUAUI_VERSION = Script.GetName() .. " v1.0"
VFS.DEF_MODE = VFS.RAW_FIRST
if (VFS.FileExists("gamedata/lockluaui.txt")) then
VFS.DEF_MODE = VFS.ZIP_FIRST
end
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--
-- Load
--
VFS.Include(LUAUI_DIRNAME .. 'Utilities/utils.lua', nil, VFS.DEF_MODE)
--// Lua-based fonthandler (deprecated)
require "fonts.lua"
--// the addon handler
include "handler.lua"
--// print Lua & LuaUI version
Spring.Echo(LUAUI_VERSION .. " (" .. _VERSION .. ")")
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--
-- Update()
--
function Update()
fontHandler.Update() --FIXME move to handler or a widget?
handler:Update()
end
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------