Permalink
Browse files

控制台设置

  • Loading branch information...
1 parent 0c7aa89 commit 0980a996b88caa95c3c4fcff3a24e45f1a8fd0d6 @Paojy committed Nov 23, 2012
Showing with 68 additions and 60 deletions.
  1. +5 −0 db.lua
  2. +63 −60 gui.lua
View
5 db.lua
@@ -338,8 +338,11 @@ local default_Settings = {
fontfile = "Interface\\AddOns\\oUF_Mlight\\media\\font.TTF",
fontsize = 13,
fontflag = "OUTLINE",
+ tenthousand = false,
-- health/power
+ alwayshp = false,
+ alwayspp = false,
classcolormode = true,
transparentmode = true,
nameclasscolormode = true,
@@ -386,6 +389,7 @@ local default_Settings = {
enableraid = true,
showraidpet = false,
raidfontsize = 10,
+ namelength = 4,
showsolo = true,
autoswitch = false,
raidonlyhealer = false,
@@ -403,6 +407,7 @@ local default_Settings = {
anchor = "TOP", -- dropdown
partyanchor = "LEFT", -- dropdown
showgcd = true,
+ showmisshp = true,
healprediction = true,
--[[ dps/tank mode ]]--
View
123 gui.lua
@@ -1,7 +1,6 @@
local F = {}
-local C = {}
if IsAddOnLoaded("Aurora") then
- F, C = unpack(Aurora)
+ F = unpack(Aurora)
else
F.Reskin = function() end
F.ReskinCheck = function() end
@@ -316,76 +315,78 @@ local fontfilebox = createeditbox(scrollFrame.Anchor, 5, L["fontfile"], "fontfil
fontfilebox:SetWidth(300)
local fontsizebox = createeditbox(scrollFrame.Anchor, 6, L["fontsize"], "fontsize", L["fontsize2"])
local fontflagbu = creatfontflagbu(scrollFrame.Anchor, 7, L["fontflag"], "fontflag")
+local tenthousandbu = createcheckbutton(scrollFrame.Anchor, 8, L["tenthousand"], "tenthousand")
+local alwayshpbu = createcheckbutton(scrollFrame.Anchor, 9, L["alwayshp"], "alwayshp", L["alwayshp2"])
+local alwaysppbu = createcheckbutton(scrollFrame.Anchor, 10, L["alwayspp"], "alwayspp", L["alwayspp2"])
local colormodtext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-colormodtext:SetPoint("TOPLEFT", 16, 3-8*30)
+colormodtext:SetPoint("TOPLEFT", 16, 3-11*30)
colormodtext:SetText(L["colormode"])
-
-local classcolormodebu = createcheckbutton(scrollFrame.Anchor, 9, L["classcolormode"], "classcolormode", L["classcolormode2"])
-local transparentmodebu = createcheckbutton(scrollFrame.Anchor, 10, L["transparentmode"], "transparentmode", L["transparentmode2"])
-local startcolorpicker = createcolorpickerbu(scrollFrame.Anchor, 11, L["startcolor"], "startcolor", L["onlywhentransparent"])
-local endcolorpicker = createcolorpickerbu(scrollFrame.Anchor, 12, L["endcolor"], "endcolor", L["onlywhentransparent"])
-local nameclasscolormodebu = createcheckbutton(scrollFrame.Anchor, 13, L["nameclasscolormode"], "nameclasscolormode", L["nameclasscolormode2"])
+local classcolormodebu = createcheckbutton(scrollFrame.Anchor, 12, L["classcolormode"], "classcolormode", L["classcolormode2"])
+local transparentmodebu = createcheckbutton(scrollFrame.Anchor, 13, L["transparentmode"], "transparentmode", L["transparentmode2"])
+local startcolorpicker = createcolorpickerbu(scrollFrame.Anchor, 14, L["startcolor"], "startcolor", L["onlywhentransparent"])
+local endcolorpicker = createcolorpickerbu(scrollFrame.Anchor, 15, L["endcolor"], "endcolor", L["onlywhentransparent"])
+local nameclasscolormodebu = createcheckbutton(scrollFrame.Anchor, 16, L["nameclasscolormode"], "nameclasscolormode", L["nameclasscolormode2"])
local portraittext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-portraittext:SetPoint("TOPLEFT", 14, 3-14*30)
+portraittext:SetPoint("TOPLEFT", 14, 3-17*30)
portraittext:SetText(L["portrait"])
-local portraitbu = createcheckbutton(scrollFrame.Anchor, 15, L["enableportrait"], "portrait")
-local portraitalphaslider = createslider(scrollFrame.Anchor, 16, L["portraitalpha"], "portraitalpha", 0.1, 1, 0.05, L["portraitalpha2"])
+local portraitbu = createcheckbutton(scrollFrame.Anchor, 18, L["enableportrait"], "portrait")
+local portraitalphaslider = createslider(scrollFrame.Anchor, 19, L["portraitalpha"], "portraitalpha", 0.1, 1, 0.05, L["portraitalpha2"])
createDR(portraitbu, portraitalphaslider)
local sizetext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-sizetext:SetPoint("TOPLEFT", 14, 3-17*30)
+sizetext:SetPoint("TOPLEFT", 14, 3-20*30)
sizetext:SetText(L["framesize"])
-local heightbox = createeditbox(scrollFrame.Anchor, 18, L["height"], "height", L["height2"])
-local widthbox = createeditbox(scrollFrame.Anchor, 19, L["width"], "width", L["width2"])
-local widthpetbox = createeditbox(scrollFrame.Anchor, 20, L["widthpet"], "widthpet", L["widthpet2"])
-local widthbossbox = createeditbox(scrollFrame.Anchor, 21, L["widthboss"], "widthboss", L["widthboss2"])
-local scaleslider = createslider(scrollFrame.Anchor, 22, L["scale"], "scale", 0.5, 3, 0.05, L["scale2"])
-local hpheightslider = createslider(scrollFrame.Anchor, 23, L["hpheight"], "hpheight", 0.2, 0.95, 0.05, L["hpheight2"])
+local heightbox = createeditbox(scrollFrame.Anchor, 21, L["height"], "height", L["height2"])
+local widthbox = createeditbox(scrollFrame.Anchor, 22, L["width"], "width", L["width2"])
+local widthpetbox = createeditbox(scrollFrame.Anchor, 23, L["widthpet"], "widthpet", L["widthpet2"])
+local widthbossbox = createeditbox(scrollFrame.Anchor, 24, L["widthboss"], "widthboss", L["widthboss2"])
+local scaleslider = createslider(scrollFrame.Anchor, 25, L["scale"], "scale", 0.5, 3, 0.05, L["scale2"])
+local hpheightslider = createslider(scrollFrame.Anchor, 26, L["hpheight"], "hpheight", 0.2, 0.95, 0.05, L["hpheight2"])
local castbartext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-castbartext:SetPoint("TOPLEFT", 16, 3-24*30)
+castbartext:SetPoint("TOPLEFT", 16, 3-27*30)
castbartext:SetText(L["castbar"])
-local castbarsbu = createcheckbutton(scrollFrame.Anchor, 25, L["enablecastbars"], "castbars", L["enablecastbars2"])
-local cbIconsizebox = createeditbox(scrollFrame.Anchor, 26, L["cbIconsize"], "cbIconsize", L["cbIconsize2"])
+local castbarsbu = createcheckbutton(scrollFrame.Anchor, 28, L["enablecastbars"], "castbars", L["enablecastbars2"])
+local cbIconsizebox = createeditbox(scrollFrame.Anchor, 29, L["cbIconsize"], "cbIconsize", L["cbIconsize2"])
createDR(castbarsbu, cbIconsizebox)
local auratext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-auratext:SetPoint("TOPLEFT", 16, 3-27*30)
+auratext:SetPoint("TOPLEFT", 16, 3-30*30)
auratext:SetText(L["aura"])
-local aurasbu = createcheckbutton(scrollFrame.Anchor, 28, L["enableauras"], "auras", L["enableauras2"])
-local aurabordersbu = createcheckbutton(scrollFrame.Anchor, 29, L["auraborders"], "auraborders", L["auraborders2"])
-local auraperrowslider = createslider(scrollFrame.Anchor, 30, L["aurasperrow"], "auraperrow", 4, 20, 1, L["aurasperrow2"])
-local playerdebuffbu = createcheckbutton(scrollFrame.Anchor, 31, L["enableplayerdebuff"], "playerdebuffenable", L["enableplayerdebuff2"])
-local playerdebuffperrowslider = createslider(scrollFrame.Anchor, 32, L["playerdebuffsperrow"], "playerdebuffnum", 4, 20, 1, L["playerdebuffsperrow2"])
-local AuraFilterignoreBuffbu = createcheckbutton(scrollFrame.Anchor, 33, L["AuraFilterignoreBuff"], "AuraFilterignoreBuff", L["AuraFilterignoreBuff2"])
-local AuraFilterignoreDebuffbu = createcheckbutton(scrollFrame.Anchor, 34, L["AuraFilterignoreDebuff"], "AuraFilterignoreDebuff", L["AuraFilterignoreDebuff2"])
+local aurasbu = createcheckbutton(scrollFrame.Anchor, 31, L["enableauras"], "auras", L["enableauras2"])
+local aurabordersbu = createcheckbutton(scrollFrame.Anchor, 32, L["auraborders"], "auraborders", L["auraborders2"])
+local auraperrowslider = createslider(scrollFrame.Anchor, 33, L["aurasperrow"], "auraperrow", 4, 20, 1, L["aurasperrow2"])
+local playerdebuffbu = createcheckbutton(scrollFrame.Anchor, 34, L["enableplayerdebuff"], "playerdebuffenable", L["enableplayerdebuff2"])
+local playerdebuffperrowslider = createslider(scrollFrame.Anchor, 35, L["playerdebuffsperrow"], "playerdebuffnum", 4, 20, 1, L["playerdebuffsperrow2"])
+local AuraFilterignoreBuffbu = createcheckbutton(scrollFrame.Anchor, 36, L["AuraFilterignoreBuff"], "AuraFilterignoreBuff", L["AuraFilterignoreBuff2"])
+local AuraFilterignoreDebuffbu = createcheckbutton(scrollFrame.Anchor, 37, L["AuraFilterignoreDebuff"], "AuraFilterignoreDebuff", L["AuraFilterignoreDebuff2"])
local AuraFiltertext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLeftYellow")
-AuraFiltertext:SetPoint("TOPLEFT", 16, 3-35*30)
+AuraFiltertext:SetPoint("TOPLEFT", 16, 3-38*30)
AuraFiltertext:SetText(L["aurafilterinfo"])
createDR(aurasbu, auraperrowslider, aurabordersbu, playerdebuffbu, playerdebuffperrowslider, AuraFilterignoreBuffbu, AuraFilterignoreDebuffbu)
createDR(playerdebuffbu, playerdebuffperrowslider)
local threatbartext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-threatbartext:SetPoint("TOPLEFT", 16, 3-36*30)
+threatbartext:SetPoint("TOPLEFT", 16, 3-39*30)
threatbartext:SetText(L["threatbar"])
-local showthreatbarbu = createcheckbutton(scrollFrame.Anchor, 37, L["showthreatbar"], "showthreatbar", L["showthreatbar2"])
-local tbvergradientbu = createcheckbutton(scrollFrame.Anchor, 38, L["tbvergradient"], "tbvergradient", L["tbvergradient2"])
+local showthreatbarbu = createcheckbutton(scrollFrame.Anchor, 40, L["showthreatbar"], "showthreatbar", L["showthreatbar2"])
+local tbvergradientbu = createcheckbutton(scrollFrame.Anchor, 41, L["tbvergradient"], "tbvergradient", L["tbvergradient2"])
createDR(showthreatbarbu, tbvergradientbu)
-local pvpiconbu = createcheckbutton(scrollFrame.Anchor, 39, L["pvpicon"], "pvpicon", L["pvpicon2"])
+local pvpiconbu = createcheckbutton(scrollFrame.Anchor, 42, L["pvpicon"], "pvpicon", L["pvpicon2"])
local bosstext = scrollFrame.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-bosstext:SetPoint("TOPLEFT", 16, 3-40*30)
+bosstext:SetPoint("TOPLEFT", 16, 3-43*30)
bosstext:SetText(L["bossframe"])
-local bossframesbu = createcheckbutton(scrollFrame.Anchor, 41, L["bossframes"], "bossframes", L["bossframes2"])
+local bossframesbu = createcheckbutton(scrollFrame.Anchor, 44, L["bossframes"], "bossframes", L["bossframes2"])
--====================================================--
--[[ -- Raid -- ]]--
--====================================================--
@@ -428,43 +429,45 @@ sharetext:SetText(L["raidshare"])
local enableraidbu = createcheckbutton(scrollFrame2.Anchor, 2, L["enableraid"], "enableraid", L["enableraid2"])
local showraidpetbu = createcheckbutton(scrollFrame2.Anchor, 3, L["showraidpet"], "showraidpet", L["showraidpet2"])
local raidfontsizebox = createeditbox(scrollFrame2.Anchor, 4, L["raidfontsize"], "raidfontsize", L["raidfontsize2"])
-local showsolobu = createcheckbutton(scrollFrame2.Anchor, 5, L["showsolo"], "showsolo", L["showsolo2"])
-local autoswitchbu = createcheckbutton(scrollFrame2.Anchor, 6, L["autoswitch"], "autoswitch", L["autoswitch2"])
-local raidonlyhealerbu = createcheckbutton(scrollFrame2.Anchor, 7, L["raidonlyhealer"], "raidonlyhealer", L["raidonlyhealer2"])
-local raidonlydpsbu = createcheckbutton(scrollFrame2.Anchor, 8, L["raidonlydps"], "raidonlydps", L["raidonlydps2"])
+local namelengthslider = createslider(scrollFrame2.Anchor, 5, L["namelength"], "namelength", 2, 10, 1, L["namelength2"])
+local showsolobu = createcheckbutton(scrollFrame2.Anchor, 6, L["showsolo"], "showsolo", L["showsolo2"])
+local autoswitchbu = createcheckbutton(scrollFrame2.Anchor, 7, L["autoswitch"], "autoswitch", L["autoswitch2"])
+local raidonlyhealerbu = createcheckbutton(scrollFrame2.Anchor, 8, L["raidonlyhealer"], "raidonlyhealer", L["raidonlyhealer2"])
+local raidonlydpsbu = createcheckbutton(scrollFrame2.Anchor, 9, L["raidonlydps"], "raidonlydps", L["raidonlydps2"])
createDR(autoswitchbu, raidonlyhealerbu, raidonlydpsbu)
local raidtoggletext = scrollFrame2.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLeftYellow")
-raidtoggletext:SetPoint("TOPLEFT", 16, 3-9*30)
+raidtoggletext:SetPoint("TOPLEFT", 16, 3-10*30)
raidtoggletext:SetText(L["toggleinfo"])
-local enablearrowbu = createcheckbutton(scrollFrame2.Anchor, 11, L["enablearrow"], "enablearrow", L["enablearrow2"])
-local arrowsacleslider = createslider(scrollFrame2.Anchor, 12, L["arrowsacle"], "arrowsacle", 0.5, 2, 0.05, L["arrowsacle2"])
+local enablearrowbu = createcheckbutton(scrollFrame2.Anchor, 12, L["enablearrow"], "enablearrow", L["enablearrow2"])
+local arrowsacleslider = createslider(scrollFrame2.Anchor, 13, L["arrowsacle"], "arrowsacle", 0.5, 2, 0.05, L["arrowsacle2"])
createDR(enablearrowbu, arrowsacleslider)
local healerraidtext = scrollFrame2.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-healerraidtext:SetPoint("TOPLEFT", 16, 3-13*30)
+healerraidtext:SetPoint("TOPLEFT", 16, 3-14*30)
healerraidtext:SetText(L["healerraidtext"])
-local healergroupfilterbox = createraidsizebox(scrollFrame2.Anchor, 14, L["groupsize"], "healergroupfilter")
-local healerraidheightbox = createeditbox(scrollFrame2.Anchor, 15, L["healerraidheight"], "healerraidheight", L["healerraidheight2"])
-local healerraidwidthbox = createeditbox(scrollFrame2.Anchor, 16, L["healerraidwidth"], "healerraidwidth", L["healerraidwidth2"])
-local raidmanabarsbox = createcheckbutton(scrollFrame2.Anchor, 17, L["raidmanabars"], "raidmanabars", L["raidmanabars2"])
-local raidhpheightslider = createslider(scrollFrame2.Anchor, 18, L["hpheight"], "raidhpheight", 0.2, 0.95, 0.05, L["hpheight2"])
+local healergroupfilterbox = createraidsizebox(scrollFrame2.Anchor, 15, L["groupsize"], "healergroupfilter")
+local healerraidheightbox = createeditbox(scrollFrame2.Anchor, 16, L["healerraidheight"], "healerraidheight", L["healerraidheight2"])
+local healerraidwidthbox = createeditbox(scrollFrame2.Anchor, 17, L["healerraidwidth"], "healerraidwidth", L["healerraidwidth2"])
+local raidmanabarsbox = createcheckbutton(scrollFrame2.Anchor, 18, L["raidmanabars"], "raidmanabars", L["raidmanabars2"])
+local raidhpheightslider = createslider(scrollFrame2.Anchor, 19, L["hpheight"], "raidhpheight", 0.2, 0.95, 0.05, L["hpheight2"])
createDR(raidmanabarsbox, raidhpheightslider)
-local healerraidanchorddm = createanchorbox(scrollFrame2.Anchor, 19, L["anchor"], "anchor")
-local healerraidpartyanchorddm = createanchorbox(scrollFrame2.Anchor, 20, L["partyanchor"], "partyanchor")
-local showgcdbu = createcheckbutton(scrollFrame2.Anchor, 21, L["showgcd"], "showgcd", L["showgcd2"])
-local healpredictionbu = createcheckbutton(scrollFrame2.Anchor, 22, L["healprediction"], "healprediction", L["healprediction2"])
+local healerraidanchorddm = createanchorbox(scrollFrame2.Anchor, 20, L["anchor"], "anchor")
+local healerraidpartyanchorddm = createanchorbox(scrollFrame2.Anchor, 21, L["partyanchor"], "partyanchor")
+local showgcdbu = createcheckbutton(scrollFrame2.Anchor, 22, L["showgcd"], "showgcd", L["showgcd2"])
+local showmisshpbu = createcheckbutton(scrollFrame2.Anchor, 23, L["showmisshp"], "showmisshp", L["showmisshp2"])
+local healpredictionbu = createcheckbutton(scrollFrame2.Anchor, 24, L["healprediction"], "healprediction", L["healprediction2"])
local dpstankraidtext = scrollFrame2.Anchor:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
-dpstankraidtext:SetPoint("TOPLEFT", 18, 3-23*30)
+dpstankraidtext:SetPoint("TOPLEFT", 18, 3-25*30)
dpstankraidtext:SetText(L["dpstankraidtext"])
-local dpsgroupfilterbox = createraidsizebox(scrollFrame2.Anchor, 24, L["groupsize"], "dpsgroupfilter")
-local dpsraidheightbox = createeditbox(scrollFrame2.Anchor, 25, L["dpsraidheight"], "dpsraidheight", L["dpsraidheight2"])
-local dpsraidwidthbox = createeditbox(scrollFrame2.Anchor, 26, L["dpsraidwidth"], "dpsraidwidth", L["dpsraidwidth2"])
-local dpsraidgroupbyclassbu = createcheckbutton(scrollFrame2.Anchor, 27, L["dpsraidgroupbyclass"], "dpsraidgroupbyclass", L["dpsraidgroupbyclass2"])
-local unitnumperlinebox = createeditbox(scrollFrame2.Anchor, 28, L["unitnumperline"], "unitnumperline", L["unitnumperline2"])
+local dpsgroupfilterbox = createraidsizebox(scrollFrame2.Anchor, 26, L["groupsize"], "dpsgroupfilter")
+local dpsraidheightbox = createeditbox(scrollFrame2.Anchor, 27, L["dpsraidheight"], "dpsraidheight", L["dpsraidheight2"])
+local dpsraidwidthbox = createeditbox(scrollFrame2.Anchor, 28, L["dpsraidwidth"], "dpsraidwidth", L["dpsraidwidth2"])
+local dpsraidgroupbyclassbu = createcheckbutton(scrollFrame2.Anchor, 29, L["dpsraidgroupbyclass"], "dpsraidgroupbyclass", L["dpsraidgroupbyclass2"])
+local unitnumperlinebox = createeditbox(scrollFrame2.Anchor, 30, L["unitnumperline"], "unitnumperline", L["unitnumperline2"])
--====================================================--
--[[ -- Aura White List -- ]]--

0 comments on commit 0980a99

Please sign in to comment.