Mercurial > wow > devian
diff Devian.lua @ 45:5341e4d84622
Removed dock manager from the TOC for now
Parts of the config dialog in, needs finishing
author | Nenue |
---|---|
date | Wed, 30 Dec 2015 07:05:38 -0500 |
parents | e95cccfcfeb7 |
children | dcc57a7cabc9 |
line wrap: on
line diff
--- a/Devian.lua Tue Dec 29 20:22:18 2015 -0500 +++ b/Devian.lua Wed Dec 30 07:05:38 2015 -0500 @@ -6,6 +6,7 @@ print('Something has happened...') end Devian = LibStub("AceAddon-3.0"):NewAddon("Devian", "AceConsole-3.0", "AceEvent-3.0") +Devian:SetDefaultModuleState(false) local MAJOR, MINOR = 'Devian-1.3', 'r@project-revision@' local D = _G.Devian local MSG_NEED_DEV_MODE = 'Must be in development mode to use this function.' @@ -17,6 +18,12 @@ ['global'] = {{}, {}}, ['tags'] = {}, ['channels'] = {[1] = {signature = 'Main', index = 1, x = 100, y = 800, height = 500, width = 600, enabled = true}}, + ['profiles'] = { + {'Main', false}, + {'Devian', true}, + {'Turok', true}, + {'Bam', true} + }, primary_channel = 1, -- the channel to which default output is sent current_channel = 1, -- the front channel max_channel = 1, -- the highest created channel id @@ -25,20 +32,27 @@ font = [[Interface\Addons\Devian\font\SourceCodePro-Regular.ttf]], -- font info fontsize = 13, fontoutline = 'NONE', - headergrad = {'VERTICAL', 0, 0, 0, 0.5, 0.1, 0.1, 0.1, 0.3}, -- header info + + headergrad = {'VERTICAL', 0, 0, 0, 1, + 1, 0.1, 0.1, 1}, -- header info headerdrop = {1,1,1,1}, + headerblend = 'BLEND', headeralpha = 1, - headerfontcolor = {1,0.2,0.2,1}, - backdrop = {1,1,1,1}, -- background frame info - backgrad = {'VERTICAL', 0.1, 0.1, 0.1, 0.3, 0, 0, 0, 0.5}, + headerfontcolor = {1,1,1,1}, + + backdrop = {1,1,1,1}, -- background frame info + backgrad = {'VERTICAL', 0.1, 0.1, 0.1, 1, 0, 0, 0, 1}, backblend = 'MOD', - backalpha = 0.7, - backborder = {0,0,1,0.75}, - frontdrop = {1,1,1,1}, -- foreground frame info - frontgrad = {'VERTICAL', 0.1, 0.1, 0.1, 0.8, 0, 0, 0, 0.6}, + backalpha = 1, + backborder = {.5,.5,.5,1}, + backheader = {.25,.25,.25,1}, + + frontdrop = {1,1,1,1}, -- foreground frame info + frontgrad = {'VERTICAL', 0.1, 0.1, 0.1, 1, 0, 0, 0, 1}, frontblend = 'MOD', frontalpha = 1, - frontborder = {1,0,0,1}, + frontborder = {.07,.47,1,1}, + frontheader = {1,1,1,1}, tagcolor = {}, -- tag color repository workspace = 2, -- current profile last_workspace = 2 -- default workspace to alternate with when just "/dvn" is issued @@ -255,7 +269,7 @@ -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel. -- @param ... Output contents. local function Message(prefix, ...) - if not db.enabled then + if db.workspace == 1 then return D.oldprint(prefix, ...) end @@ -336,6 +350,8 @@ D:Print("|cFFFFFF00/cleandvn|r", "- Fully resets SavedVariables, profiles and all.") end + + function D:OnEnable() print(MAJOR, MINOR) @@ -350,6 +366,14 @@ D:Print('Development mode active (list #'..db.workspace..'). Print handling |cFF00FF00ON|r.') end + self:RegisterChatCommand("dvg", function(input) + if not self.config then + self.config = DevCon + self:EnableModule("Config") + end + self.modules.Config:ChatCommand(input) + end) + end function D:OnInitialize()