forked from skennedysocal/WoW_Hardcore
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathTextureInfo.lua
More file actions
38 lines (34 loc) · 1.16 KB
/
TextureInfo.lua
File metadata and controls
38 lines (34 loc) · 1.16 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
local _G = _G
_G.HCTextureInfo = {}
HCTextureInfo = _G.HCTextureInfo
-- [ Add dictionaries below to add texture metadata ] --
-- @param Str Path to texture
-- @param OffsetX_0 How many pts to offset left side of texture
-- @param OffsetX_1 How many pts to offset right side of texture
-- @param OffsetY_0 How many pts to offset top side of texture
-- @param OffsetY_1 How many pts to offset bottom side of texture
-- @param LevelOffsetX How many pts to offset the level text horizontally
-- @param LevelOffsetY How many pts to offset the level text vertically
-- @param TexCoords Coordinates of texture
-- @param AnimationInfo Metadata for spritemaps
HCTextureInfo.TestFrame = {}
HCTextureInfo.TestFrame.test_sprite = {
Str = "Interface\\AddOns\\Hardcore\\Media\\test_sprite.blp",
OffsetX_0 = 16,
OffsetX_1 = 50,
OffsetY_0 = 30,
OffsetY_1 = -4,
LevelOffsetX = -31,
LevelOffsetY = -11,
RestIconOffsetX = 1.5,
RestIconOffsetY = 3,
TexCoords = { 0, 1, 0, 1 },
AnimationInfo = {
TextureWidth = 1024,
TextureHeight = 1024,
SpriteWidth = 1024 / 3.0,
SpriteHeight = 1024 / 3.0,
NumFrames = 9,
Throttle = 0.5,
},
}