Repository navigation
Expand file tree
/
Copy pathGR_Constants.lua
More file actions
80 lines (66 loc) · 2.74 KB
/
Copy pathGR_Constants.lua
File metadata and controls
80 lines (66 loc) · 2.74 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
local addonName, ns = ... -- Namespace (myAddon, namespace)
ns.classic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC or false
ns.cata = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC or false
ns.retail = not ns.classic and not ns.cata
ns.ICON_PATH = 'Interface\\AddOns\\'..addonName..'\\Images\\'
GR.commPrefix = 'GRSync'
GR.dbVersion = 4
GR.debug = false -- Enable debug messages
GR.isPreRelease = false -- Is this a pre-release version (alpha/beta/rc)
GR.isTesting = UnitName('player') == 'Holycynic' or false -- Used for testing purposes (invite)
GR.enableFilter = UnitName('player') == 'Holycynic' or false -- Enable filter system (for testing)
GR.preReleaseType = 'Beta'
GR.testingPlayerName = 'Monkstrife'
GR.versionOut = '(v'..GR.version..(GR.isPreRelease and ' '..GR.preReleaseType or '')..')'
C_ChatInfo.RegisterAddonMessagePrefix(GR.commPrefix)
-- Default Colors
ns.COLOR_GM = 'FFAF640C'
ns.COLOR_DEBUG = 'FFD845D8'
ns.COLOR_ERROR = 'FFFF0000'
ns.COLOR_SYSTEM = 'FFFFFF40'
ns.COLOR_DEFAULT = 'FF3EB9D8' -- Guild Recruiter Color
-- Icons
ns.GR_ICON = ns.ICON_PATH..'GR_Icon'
ns.BUTTON_LOCKED = ns.ICON_PATH..'GR_Locked'
ns.BUTTON_UNLOCKED = ns.ICON_PATH..'GR_Unlocked'
ns.BUTTON_ABOUT = ns.ICON_PATH..'GR_About'
ns.BUTTON_BACK = ns.ICON_PATH..'GR_Back'
ns.BUTTON_BLACKLIST = ns.ICON_PATH..'GR_Blacklist'
ns.BUTTON_FILTER = ns.ICON_PATH..'GR_Filter'
ns.BUTTON_FILTER_COLOR = ns.ICON_PATH..'GR_FilterColor'
ns.BUTTON_COMPACT = ns.ICON_PATH..'GR_Compact'
ns.BUTTON_EXPAND = ns.ICON_PATH..'GR_Expand'
ns.BUTTON_EXIT = ns.ICON_PATH..'GR_Exit'
ns.BUTTON_EXIT_EMPTY = ns.ICON_PATH..'GR_ExitEmpty'
ns.BUTTON_NEW = ns.ICON_PATH..'GR_New'
ns.BUTTON_RESET = ns.ICON_PATH..'GR_Reset'
ns.BUTTON_STATS = ns.ICON_PATH..'GR_Stats'
ns.BUTTON_SYNC_ON = ns.ICON_PATH..'GR_SyncOn'
ns.BUTTON_SYNC = ns.ICON_PATH..'GR_Sync'
ns.BUTTON_SETTINGS = ns.ICON_PATH..'GR_Settings'
-- Global Variables
ns.PLAYER_PROFILE = UnitName('player')..'-'..GetRealmName()
ns.SECONDS_IN_A_DAY = 86400
ns.MAX_CHARACTER_LEVEL = GetMaxPlayerLevel()
-- Highlight Images
ns.BLUE_HIGHLIGHT = 'bags-glow-heirloom'
ns.BLUE_LONG_HIGHLIGHT = 'communitiesfinder_card_highlight'
-- Font Globals
ns.ARIAL_FONT = 'Fonts\\ARIAN.ttf'
ns.SKURRI_FONT = 'Fonts\\SKURRI.ttf'
ns.DEFAULT_FONT = 'Fonts\\FRIZQT__.ttf'
ns.MORPHEUS_FONT = 'Fonts\\MORPHEUS.ttf'
ns.DEFAULT_FONT_SIZE = 12
-- Enumerations
ns.InviteFormat = {
MESSAGE_ONLY = 1,
GUILD_INVITE_ONLY = 2,
GUILD_INVITE_AND_MESSAGE = 3,
MESSAGE_ONLY_IF_INVITE_DECLINED = 4
}
--* Link Constants
ns.GITHUB = 'https://github.com/zaldor30/GuildRecruiter'
ns.DISCORD = 'https://discord.gg/ZtS6Q2sKRH'
ns.CURSE_FORGE = 'https://www.curseforge.com/wow/addons/guild-recruiter'
ns.PATREON = 'https://www.patreon.com/AlwaysBeConvoking'
ns.BUY_ME_COFFEE = 'https://bmc.link/alwaysbeconvoking'