-
Notifications
You must be signed in to change notification settings - Fork 1
/
LAFix.lua
51 lines (43 loc) · 1.17 KB
/
LAFix.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
-- LAFix
--
-- @author Grisu118 - VertexDezign.net
-- @history v1.0 - 2014-11-11 - Initial implementation
-- v1.1 - Improvements from Xentro
-- v1.2 - isSelectable
-- v2.0 - FS17
-- @Descripion: Fix for Helptexts of LightAddon
-- @web: http://grisu118.ch or http://vertexdezign.net
-- Copyright (C) Grisu118, All Rights Reserved.
LAFix = {};
function LAFix.prerequisitesPresent(specializations)
return true;
end;
function LAFix:load(savegame)
local i = 0;
while true do
local key = string.format("vehicle.LightAddon.strobe(%d)", i);
if not hasXMLProperty(self.xmlFile, key) then
break;
end;
local n = getXMLString(self.xmlFile, key .. "#name");
if n ~= nil then
--local x,_ = Utils.getModNameAndBaseDirectory(self.configFileName);
g_i18n.globalI18N.texts[self.configFileName..n] = g_i18n:getText(n);
end;
i = i + 1;
end;
--self.isSelectable = true;
self.LAFixVersion = 2.0;
end;
function LAFix:delete()
end;
function LAFix:mouseEvent(posX, posY, isDown, isUp, button)
end;
function LAFix:keyEvent(unicode, sym, modifier, isDown)
end;
function LAFix:update(dt)
end;
function LAFix:updateTick(dt)
end;
function LAFix:draw()
end;