-
Notifications
You must be signed in to change notification settings - Fork 1
/
gamersheet.lua
57 lines (46 loc) · 860 Bytes
/
gamersheet.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
local SheetInfo = {}
SheetInfo.sheet =
{
frames = {
{
-- gamer0
x=1,
y=1,
width=200,
height=221,
},
{
-- gamer1
x=1,
y=447,
width=184,
height=199,
sourceX = 8,
sourceY = 0,
sourceWidth = 200,
sourceHeight = 221
},
{
-- gamer2
x=1,
y=224,
width=200,
height=221,
},
},
sheetContentWidth = 202,
sheetContentHeight = 647
}
SheetInfo.frameIndex =
{
["gamer0"] = 1,
["gamer1"] = 2,
["gamer2"] = 3,
}
function SheetInfo:getSheet()
return self.sheet;
end
function SheetInfo:getFrameIndex(name)
return self.frameIndex[name];
end
return SheetInfo