PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/Tukui/core/constants.lua

http://github.com/Asphyxia/Tukui
Lua | 26 lines | 24 code | 2 blank | 0 comment | 1 complexity | 28822143f5324b6cce153458ce018c3f MD5 | raw file
 1local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 2
 3T.dummy = function() return end
 4T.myname = select(1, UnitName("player"))
 5T.myclass = select(2, UnitClass("player"))
 6T.myrace = select(2, UnitRace("player"))
 7T.client = GetLocale() 
 8T.resolution = GetCVar("gxResolution")
 9T.getscreenheight = tonumber(string.match(T.resolution, "%d+x(%d+)"))
10T.getscreenwidth = tonumber(string.match(T.resolution, "(%d+)x+%d"))
11T.version = GetAddOnMetadata("Tukui", "Version")
12T.versionnumber = tonumber(T.version)
13T.incombat = UnitAffectingCombat("player")
14T.patch, T.build, T.releasedate, T.toc = GetBuildInfo()
15T.level = UnitLevel("player")
16T.myrealm = GetRealmName()
17T.InfoLeftRightWidth = 370
18
19if not TukuiSaved then
20	TukuiSaved = {	
21		["bottomrows"] = 1,
22		["rightbars"] = 1,
23		["splitbars"] = false,
24		["actionbarsLocked"] = false,
25	}
26end