-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConstants.lua
More file actions
283 lines (250 loc) · 13.4 KB
/
Constants.lua
File metadata and controls
283 lines (250 loc) · 13.4 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
--=================================================================================================
--= Constants
--= ===============================================================================================
--= definitions for globaly used constants
--=================================================================================================
---------------------------------------------------------------------------------------------------
Language = {}
-- used language
Language.Local = 1
-- determine used language by checking for existence of commands
if Turbine.Shell.IsCommand("hilfe") then
Language.Local = 2
elseif Turbine.Shell.IsCommand("aide") then
Language.Local = 3
end
-- language constants
Language.English = 1
Language.German = 2
Language.French = 3
Language[ Language.English ] = "en"
Language[ Language.German ] = "de"
Language[ Language.French ] = "fr"
-- localisation table
L = {}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- option defaults
Options.Defaults = {}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- trigger action times
Action = {}
Action.Add = 1
Action.Remove = 2
Action.Subtract = 3
Action.Reset = 4
Action.Clear = 5
Action.Enable = 6
Action.Disable = 7
Action.SetTo = 8
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- animation types
AnimationType = {}
AnimationType.Flashing = 1
AnimationType.Dotted_Border = 2
AnimationType.Activation_Border = 3
AnimationType.New_Activation_Border = 4
AnimationType.New_Dotted_Border = 5
AnimationType.Zoom = 6
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- direction
Direction = {}
Direction.Ascending = true
Direction.Descending = false
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- number format
NumberFormat = {}
NumberFormat.Seconds = 1
NumberFormat.Minutes = 2
NumberFormat.OneDecimal = 3
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- orientation
Orientation = {}
Orientation.Horizontal = true
Orientation.Vertical = false
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- trigger source
Source = {}
Source.Any = 0
Source.CombatStart = 1
Source.CombatEnd = 2
Source.Buff = 3
Source.Debuff = 4
Source.Dispellable = 5
Source.NotDispellable= 6
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- trigger source
Stacking = {}
Stacking.Single = 0
Stacking.Multi = 1
Stacking.PerTarget = 2
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- trigger source
ImportType = {}
ImportType.Window = 1
ImportType.Timer = 2
ImportType.Trigger = 3
ImportType.Folder = 4
ImportType.WindowList = 5
ImportType.TimerList = 6
ImportType.TriggerList= 7
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- timer text options
TimerTextOptions = {}
TimerTextOptions.NoText = 1
TimerTextOptions.Token = 2
TimerTextOptions.CustomText = 3
TimerTextOptions.Target = 4
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- Alignment
Alignment = {}
Alignment.TopLeft = Turbine.UI.ContentAlignment.TopLeft
Alignment.TopCenter = Turbine.UI.ContentAlignment.TopCenter
Alignment.TopRight = Turbine.UI.ContentAlignment.TopRight
Alignment.MiddleLeft = Turbine.UI.ContentAlignment.MiddleLeft
Alignment.MiddleCenter = Turbine.UI.ContentAlignment.MiddleCenter
Alignment.MiddleRight = Turbine.UI.ContentAlignment.MiddleRight
Alignment.BottomLeft = Turbine.UI.ContentAlignment.BottomLeft
Alignment.BottomCenter = Turbine.UI.ContentAlignment.BottomCenter
Alignment.BottomRight = Turbine.UI.ContentAlignment.BottomRight
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- Alignment
EffectCategory = {}
EffectCategory.Corruption = Turbine.Gameplay.EffectCategory.Corruption
EffectCategory.Cry = Turbine.Gameplay.EffectCategory.Cry
EffectCategory.Disease = Turbine.Gameplay.EffectCategory.Disease
EffectCategory.Dispellable= Turbine.Gameplay.EffectCategory.Dispellable
EffectCategory.Elemental = Turbine.Gameplay.EffectCategory.Elemental
EffectCategory.Fear = Turbine.Gameplay.EffectCategory.Fear
EffectCategory.Physical = Turbine.Gameplay.EffectCategory.Physical
EffectCategory.Poison = Turbine.Gameplay.EffectCategory.Poison
EffectCategory.Song = Turbine.Gameplay.EffectCategory.Song
EffectCategory.Wound = Turbine.Gameplay.EffectCategory.Wound
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- ChatChannel
ChatChannel = {}
-- ChatChannel.Admin = Turbine.ChatType.Admin
ChatChannel.Advancement = Turbine.ChatType.Advancement
ChatChannel.Death = Turbine.ChatType.Death
ChatChannel.Emote = Turbine.ChatType.Emote
ChatChannel.EnemyCombat = Turbine.ChatType.EnemyCombat
ChatChannel.Error = Turbine.ChatType.Error
ChatChannel.FellowLoot = Turbine.ChatType.FellowLoot
ChatChannel.Fellowship = Turbine.ChatType.Fellowship
ChatChannel.Kinship = Turbine.ChatType.Kinship
ChatChannel.LFF = Turbine.ChatType.LFF
-- ChatChannel.Localized1 = Turbine.ChatType.Localized1
-- ChatChannel.Localized2 = Turbine.ChatType.Localized2
-- ChatChannel.Narration = Turbine.ChatType.Narration
ChatChannel.Officer = Turbine.ChatType.Officer
ChatChannel.OOC = Turbine.ChatType.OOC
ChatChannel.PlayerCombat= Turbine.ChatType.PlayerCombat
ChatChannel.Quests = Turbine.ChatType.Quests
ChatChannel.Raid = Turbine.ChatType.Raid
ChatChannel.Regional = Turbine.ChatType.Regional
-- ChatChannel.Roleplay = Turbine.ChatType.Roleplay
ChatChannel.Say = Turbine.ChatType.Say
ChatChannel.SelfLoot = Turbine.ChatType.SelfLoot
ChatChannel.Standard = Turbine.ChatType.Standard
ChatChannel.Tell = Turbine.ChatType.Tell
ChatChannel.Trade = Turbine.ChatType.Trade
ChatChannel.Tribe = Turbine.ChatType.Tribe
-- ChatChannel.Undef = Turbine.ChatType.Undef
ChatChannel.Unfiltered = Turbine.ChatType.Unfiltered
ChatChannel.UserChat1 = Turbine.ChatType.UserChat1
ChatChannel.UserChat2 = Turbine.ChatType.UserChat2
ChatChannel.UserChat3 = Turbine.ChatType.UserChat3
ChatChannel.UserChat4 = Turbine.ChatType.UserChat4
ChatChannel.UserChat5 = Turbine.ChatType.UserChat5
ChatChannel.UserChat6 = Turbine.ChatType.UserChat6
ChatChannel.UserChat7 = Turbine.ChatType.UserChat7
ChatChannel.UserChat8 = Turbine.ChatType.UserChat8
ChatChannel.World = Turbine.ChatType.World
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- screen size
Options.ScreenWidth, Options.ScreenHeight = Turbine.UI.Display:GetSize()
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-- fonts
Font = {}
Font.Type = {}
Font.Type.Arial = 1
Font.Type.TrajanPro = 2
Font.Type.TrajanProBold = 3
Font.Type.Verdana = 4
Font.Type.VerdanaBold = 5
Font.Type.BookAntiqua = 6
Font.Type.BookAntiquaBold = 7
Font.Type.FixedSys = 8
Font.Type.LucidaConsole = 9
Font[Font.Type.Arial] = {}
Font[Font.Type.Arial][12] = Turbine.UI.Lotro.Font.Arial12
Font[Font.Type.TrajanPro] = {}
Font[Font.Type.TrajanPro][13] = Turbine.UI.Lotro.Font.TrajanPro13
Font[Font.Type.TrajanPro][14] = Turbine.UI.Lotro.Font.TrajanPro14
Font[Font.Type.TrajanPro][15] = Turbine.UI.Lotro.Font.TrajanPro15
Font[Font.Type.TrajanPro][16] = Turbine.UI.Lotro.Font.TrajanPro16
Font[Font.Type.TrajanPro][18] = Turbine.UI.Lotro.Font.TrajanPro18
Font[Font.Type.TrajanPro][19] = Turbine.UI.Lotro.Font.TrajanPro19
Font[Font.Type.TrajanPro][20] = Turbine.UI.Lotro.Font.TrajanPro20
Font[Font.Type.TrajanPro][21] = Turbine.UI.Lotro.Font.TrajanPro21
Font[Font.Type.TrajanPro][23] = Turbine.UI.Lotro.Font.TrajanPro23
Font[Font.Type.TrajanPro][24] = Turbine.UI.Lotro.Font.TrajanPro24
Font[Font.Type.TrajanPro][25] = Turbine.UI.Lotro.Font.TrajanPro25
Font[Font.Type.TrajanPro][26] = Turbine.UI.Lotro.Font.TrajanPro26
Font[Font.Type.TrajanPro][28] = Turbine.UI.Lotro.Font.TrajanPro28
Font[Font.Type.TrajanProBold] = {}
Font[Font.Type.TrajanProBold][16] = Turbine.UI.Lotro.Font.TrajanProBold16
Font[Font.Type.TrajanProBold][22] = Turbine.UI.Lotro.Font.TrajanProBold22
Font[Font.Type.TrajanProBold][24] = Turbine.UI.Lotro.Font.TrajanProBold24
Font[Font.Type.TrajanProBold][25] = Turbine.UI.Lotro.Font.TrajanProBold25
Font[Font.Type.TrajanProBold][30] = Turbine.UI.Lotro.Font.TrajanProBold30
Font[Font.Type.TrajanProBold][36] = Turbine.UI.Lotro.Font.TrajanProBold36
Font[Font.Type.Verdana] = {}
Font[Font.Type.Verdana][10] = Turbine.UI.Lotro.Font.Verdana10
Font[Font.Type.Verdana][12] = Turbine.UI.Lotro.Font.Verdana12
Font[Font.Type.Verdana][14] = Turbine.UI.Lotro.Font.Verdana14
Font[Font.Type.Verdana][16] = Turbine.UI.Lotro.Font.Verdana16
Font[Font.Type.Verdana][18] = Turbine.UI.Lotro.Font.Verdana18
Font[Font.Type.Verdana][20] = Turbine.UI.Lotro.Font.Verdana20
Font[Font.Type.Verdana][22] = Turbine.UI.Lotro.Font.Verdana22
Font[Font.Type.Verdana][23] = Turbine.UI.Lotro.Font.Verdana23
Font[Font.Type.VerdanaBold] = {}
Font[Font.Type.VerdanaBold][16] = Turbine.UI.Lotro.Font.VerdanaBold16
Font[Font.Type.BookAntiqua] = {}
Font[Font.Type.BookAntiqua][12] = Turbine.UI.Lotro.Font.BookAntiqua12
Font[Font.Type.BookAntiqua][14] = Turbine.UI.Lotro.Font.BookAntiqua14
Font[Font.Type.BookAntiqua][16] = Turbine.UI.Lotro.Font.BookAntiqua16
Font[Font.Type.BookAntiqua][18] = Turbine.UI.Lotro.Font.BookAntiqua18
Font[Font.Type.BookAntiqua][20] = Turbine.UI.Lotro.Font.BookAntiqua20
Font[Font.Type.BookAntiqua][22] = Turbine.UI.Lotro.Font.BookAntiqua22
Font[Font.Type.BookAntiqua][24] = Turbine.UI.Lotro.Font.BookAntiqua24
Font[Font.Type.BookAntiqua][26] = Turbine.UI.Lotro.Font.BookAntiqua26
Font[Font.Type.BookAntiqua][28] = Turbine.UI.Lotro.Font.BookAntiqua28
Font[Font.Type.BookAntiqua][32] = Turbine.UI.Lotro.Font.BookAntiqua32
Font[Font.Type.BookAntiqua][36] = Turbine.UI.Lotro.Font.BookAntiqua36
Font[Font.Type.BookAntiquaBold] = {}
Font[Font.Type.BookAntiquaBold][12] = Turbine.UI.Lotro.Font.BookAntiquaBold12
Font[Font.Type.BookAntiquaBold][14] = Turbine.UI.Lotro.Font.BookAntiquaBold14
Font[Font.Type.BookAntiquaBold][18] = Turbine.UI.Lotro.Font.BookAntiquaBold18
Font[Font.Type.BookAntiquaBold][19] = Turbine.UI.Lotro.Font.BookAntiquaBold19
Font[Font.Type.BookAntiquaBold][22] = Turbine.UI.Lotro.Font.BookAntiquaBold22
Font[Font.Type.BookAntiquaBold][24] = Turbine.UI.Lotro.Font.BookAntiquaBold24
Font[Font.Type.FixedSys] = {}
Font[Font.Type.FixedSys][15] = Turbine.UI.Lotro.Font.FixedSys15
Font[Font.Type.LucidaConsole] = {}
Font[Font.Type.LucidaConsole][12] = Turbine.UI.Lotro.Font.LucidaConsole12
---------------------------------------------------------------------------------------------------