-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathBindings.lua
32 lines (26 loc) · 1.47 KB
/
Bindings.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
-----------------------------------------
-- LOCALIZED GLOBAL VARIABLES
-----------------------------------------
local ZGV = _G.ZGV
local L = ZGV.L
local getGameTimeMS, ZO_CreateStringId = _G.GetGameTimeMilliseconds, _G.ZO_CreateStringId
-----------------------------------------
-- LOCAL FUNCTIONS
-----------------------------------------
-- What appears in the ESO > CONTROLS > Keybindings window
function ZGV:RegisterKeyBindings()
ZO_CreateStringId("SI_BINDING_NAME_ZYGOR_TOGGLE_GUIDE_VIEWER", L["bind_tog"])
ZO_CreateStringId("SI_BINDING_NAME_ZYGOR_NEXT_STEP", L["bind_next"])
ZO_CreateStringId("SI_BINDING_NAME_ZYGOR_PREV_STEP", L["bind_prev"])
ZO_CreateStringId("SI_BINDING_NAME_ZYGOR_WAYPOINT_NEXT", L["bind_waypointcycle_next"])
ZO_CreateStringId("SI_BINDING_NAME_ZYGOR_WAYPOINT_PREV", L["bind_waypointcycle_prev"])
end
-----------------------------------------
-- STARTUP
-----------------------------------------
-- Since this is the final file that loads... I'm very sorry for this being crammed here. It ties off the memory/timing of file loading, started in ZGESO.lua startup area.
collectgarbage("collect")
ZGV.startup_log.load_memory_final = collectgarbage("count")
ZGV.startup_log.load_memory_total = ZGV.startup_log.load_memory_final - ZGV.startup_log.load_memory_initial
ZGV.startup_log.load_time_final = getGameTimeMS() / 1000
ZGV.startup_log.load_time_total = ZGV.startup_log.load_time_final - ZGV.startup_log.load_time_initial