forked from Tylas11/XivParty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.lua
123 lines (104 loc) · 4.11 KB
/
layout.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
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
--[[
Copyright © 2020, Tylas
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of XivParty nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <your name> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
]]
local layout = {}
layout.rowSpacingYMin = 42
layout.bg = {}
layout.bg.imgTopPath = windower.addon_path .. 'assets/BgTop.png'
layout.bg.imgMidPath = windower.addon_path .. 'assets/BgMid.png'
layout.bg.imgBottomPath = windower.addon_path .. 'assets/BgBottom.png'
layout.bg.imgWidth = 377 -- width of all background images in pixels
layout.bg.imgTopBottomHeight = 21 -- height of the top and bottom bg image in pixels
layout.bar = {}
layout.bar.imgBgPath = windower.addon_path .. 'assets/BarBG.png'
layout.bar.imgFgPath = windower.addon_path .. 'assets/BarFG.png'
layout.bar.imgBgWidth = 107
layout.bar.imgFgWidth = 103
layout.bar.imgBgHeight = 10
layout.bar.imgFgHeight = 6
layout.bar.offsetX = 0
layout.bar.offsetY = 20
layout.bar.spacingX = 24 -- distance between hp, mp and tp bars
layout.range = {}
layout.range.imgPath = windower.addon_path .. 'assets/RangeIndicator.png'
layout.range.imgWidth = 10
layout.range.imgHeight = 10
layout.range.offsetX = 0
layout.range.offsetY = 30
layout.cursor = {}
layout.cursor.imgPath = windower.addon_path .. 'assets/Cursor.png'
layout.cursor.imgWidth = 46 -- cursor is right aligned, this will be used to offset it to the left
layout.cursor.imgHeight = 36
layout.cursor.offsetX = 0
layout.cursor.offsetY = 0
layout.buffIcons = {}
layout.buffIcons.path = windower.addon_path .. 'assets/buffIcons/'
layout.buffIcons.width = 20
layout.buffIcons.height = 20
layout.buffIcons.offsetX = 1
layout.buffIcons.offsetY = 0
layout.buffIcons.spacingX = 0
layout.text = {}
layout.text.color = {}
layout.text.color.alpha = 255
layout.text.color.red = 240
layout.text.color.green = 255
layout.text.color.blue = 255
layout.text.stroke = {}
layout.text.stroke.width = 2
layout.text.stroke.alpha = 200
layout.text.stroke.red = 6
layout.text.stroke.green = 45
layout.text.stroke.blue = 84
layout.text.fullTpColor = {}
layout.text.fullTpColor.alpha = 255
layout.text.fullTpColor.red = 80
layout.text.fullTpColor.green = 180
layout.text.fullTpColor.blue = 250
layout.text.numbers = {}
layout.text.numbers.font = 'Grammara'
layout.text.numbers.size = 11
layout.text.numbers.offsetX = 2
layout.text.numbers.offsetY = 28
layout.text.name = {}
layout.text.name.font = 'Meiryo'
layout.text.name.size = 14
layout.text.name.offsetX = 65
layout.text.name.offsetY = -1
layout.text.zone = {}
layout.text.zone.font = 'Meiryo'
layout.text.zone.size = 12
layout.text.zone.offsetX = 0
layout.text.zone.offsetY = -1
layout.text.job = {}
layout.text.job.font = 'Arial'
layout.text.job.size = 8
layout.text.job.offsetX = 0
layout.text.job.offsetY = 0
layout.text.subJob = {}
layout.text.subJob.font = 'Arial'
layout.text.subJob.size = 8
layout.text.subJob.offsetX = 9
layout.text.subJob.offsetY = 9
return layout