Advertisement
Guest User

Default

a guest
Nov 10th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.39 KB | None | 0 0
  1. -- Default.lua
  2. -- Written by Snail
  3.  
  4. Configuration.Themes.Default =
  5. {
  6.     ActionBars =
  7.     {
  8.         Player =
  9.         {
  10.             Anchor = "BOTTOM",
  11.             Buttons = 12,
  12.             Height = 24,
  13.             Width = 48,
  14.             X = 0,
  15.             Y = 5,
  16.  
  17.             TextureCoordinate =
  18.             {
  19.                 Bottom = 0.7,
  20.                 Left = 0.1,
  21.                 Right = 0.9,
  22.                 Top = 0.3
  23.             }
  24.         },
  25.  
  26.         Player2 =
  27.         {
  28.             Anchor = "BOTTOM",
  29.             Buttons = 12,
  30.             Height = 24,
  31.             Width = 48,
  32.             X = 0,
  33.             Y = 34,
  34.  
  35.             TextureCoordinate =
  36.             {
  37.                 Bottom = 0.7,
  38.                 Left = 0.1,
  39.                 Right = 0.9,
  40.                 Top = 0.3
  41.             }
  42.         },
  43.  
  44.         Player3 =
  45.         {
  46.             Anchor = "BOTTOM",
  47.             Buttons = 12,
  48.             Height = 24,
  49.             Width = 48,
  50.             X = 0,
  51.             Y = 29,
  52.  
  53.             TextureCoordinate =
  54.             {
  55.                 Bottom = 0.7,
  56.                 Left = 0.1,
  57.                 Right = 0.9,
  58.                 Top = 0.3
  59.             }
  60.         },
  61.     },
  62.  
  63.     Bag =
  64.     {
  65.         Anchor = "BOTTOMRIGHT",
  66.         Columns = 8,
  67.         Height = 24,
  68.         Width = 48,
  69.         X = -3,
  70.         Y = 107,
  71.  
  72.         TextureCoordinate =
  73.         {
  74.             Bottom = 0.7,
  75.             Left = 0.1,
  76.             Right = 0.9,
  77.             Top = 0.3
  78.         }
  79.     },
  80.  
  81.     Buffs =
  82.     {
  83.         Anchor = "TOPRIGHT",
  84.         Height = 32,
  85.         Width = 32,
  86.         X = -3,
  87.         Y = -155,
  88.  
  89.         TextureCoordinate =
  90.         {
  91.             Bottom = 0.9,
  92.             Left = 0.1,
  93.             Right = 0.9,
  94.             Top = 0.1
  95.         }
  96.     },
  97.  
  98.     Chat =
  99.     {
  100.         Anchor = "BOTTOMLEFT",
  101.         Height = 100,
  102.         Width = 300,
  103.         X = 10,
  104.         Y = 10
  105.     },
  106.  
  107.     ExperienceBar =
  108.     {
  109.         Anchor = "TOP",
  110.         Height = 8,
  111.         Width = 204,
  112.         X = 0,
  113.         Y = -28
  114.     },
  115.  
  116.     ExtraButton =
  117.     {
  118.         Anchor = "TOP",
  119.         Height = 24,
  120.         HoverToShow = false,
  121.         Width = 204,
  122.         X = 0,
  123.         Y = -6
  124.     },
  125.  
  126.     Initialize = function(Self)
  127.         Configuration.Themes.Default["DEATHKNIGHT"] = DefaultWithClassBar
  128.         Configuration.Themes.Default["DEATHKNIGHT"]["UNHOLY"] = DefaultWithClassBarWithPet
  129.         Configuration.Themes.Default["DRUID"] = Configuration.Themes.Default
  130.         Configuration.Themes.Default["DRUID"]["BALANCE"] = DefaultWithClassBar
  131.         Configuration.Themes.Default["DRUID"]["FERAL"] = DefaultWithClassBar
  132.         Configuration.Themes.Default["DRUID"]["RESTORATION"] = DefaultHealer
  133.         Configuration.Themes.Default["HUNTER"] = DefaultWithPet
  134.         Configuration.Themes.Default["MAGE"] = Configuration.Themes.Default
  135.         Configuration.Themes.Default["MAGE"]["FROST"] = DefaultWithPet
  136.         Configuration.Themes.Default["MONK"] = DefaultWithClassBar
  137.         Configuration.Themes.Default["MONK"]["MISTWEAVER"] = DefaultHealerWithClassBar
  138.         Configuration.Themes.Default["PALADIN"] = DefaultWithClassBar
  139.         Configuration.Themes.Default["PALADIN"]["HOLY"] = DefaultHealerWithClassBar
  140.         Configuration.Themes.Default["PRIEST"] = DefaultHealer
  141.         Configuration.Themes.Default["PRIEST"]["SHADOW"] = DefaultWithClassBar
  142.         Configuration.Themes.Default["ROGUE"] = DefaultWithClassBar
  143.         Configuration.Themes.Default["SHAMAN"] = Configuration.Themes.Default
  144.         Configuration.Themes.Default["SHAMAN"]["RESTORATION"] = DefaultHealer
  145.         Configuration.Themes.Default["WARLOCK"] = DefaultWithClassBarWithPet
  146.         Configuration.Themes.Default["WARRIOR"] = DefaultWithClassBar
  147.  
  148.         local Class = select(2, UnitClass("Player"))
  149.         local Specialization = GetSpecialization()
  150.  
  151.         if Specialization then
  152.             Specialization = select(2, GetSpecializationInfo(Specialization))
  153.             Specialization = Specialization:gsub("(.)", string.upper)
  154.         end
  155.  
  156.         local Timers = {}
  157.  
  158.         if GetConfiguration().Timers[Class] then
  159.             if GetConfiguration().Timers[Class][Specialization] then
  160.                 for I = 1, #GetConfiguration().Timers[Class][Specialization] do
  161.                     Timers[#Timers + 1] = GetConfiguration().Timers[Class][Specialization][I]
  162.                 end
  163.             end
  164.  
  165.             for I = 1, #GetConfiguration().Timers[Class] do
  166.                 Timers[#Timers + 1] = GetConfiguration().Timers[Class][I]
  167.             end
  168.         end
  169.  
  170.         local Go
  171.  
  172.         if (Class == "DEATHKNIGHT") and (Specialization == "UNHOLY") then
  173.             Go = true
  174.         elseif Class == "WARLOCK" then
  175.             local _, _, _, _, Selected = GetTalentInfo(15)
  176.  
  177.             if Selected == true then
  178.                 Configuration.Themes.Default["WARLOCK"] = DefaultWithClassBar
  179.             else
  180.                 Go = true
  181.             end
  182.         elseif (Class == "WARRIOR") or ((Class == "DRUID") and (Specialization == "GUARDIAN")) then
  183.             DefaultWithClassBar.Player.PowerBar.Border = true
  184.             DefaultWithClassBar.Player.PowerBar.Height = 24
  185.             DefaultWithClassBar.Player.PowerBar.Width = 256
  186.             DefaultWithClassBar.Player.PowerBar.Y = 25
  187.         end
  188.  
  189.         if Go and (#Timers > 0) then
  190.             for I = 1, #Timers do
  191.                 Timers[I].Y = Timers[I].Y + 28
  192.             end
  193.         end
  194.     end,
  195.  
  196.     Meter =
  197.     {
  198.         Anchor = "BOTTOMRIGHT",
  199.         Height = 100,
  200.         Width = 300,
  201.         X = -5,
  202.         Y = 5,
  203.  
  204.         [0] =
  205.         {
  206.             Anchor = "TOP",
  207.             Height = 24,
  208.             Width = 300,
  209.             X = 0,
  210.             Y = 0
  211.         },
  212.  
  213.         [1] =
  214.         {
  215.             Anchor = "TOP",
  216.             Height = 22,
  217.             Width = 300,
  218.             X = 0,
  219.             Y = -21
  220.         },
  221.  
  222.         [2] =
  223.         {
  224.             Anchor = "CENTER",
  225.             Height = 22,
  226.             Width = 300,
  227.             X = 0,
  228.             Y = -1
  229.         },
  230.  
  231.         [3] =
  232.         {
  233.             Anchor = "BOTTOM",
  234.             Height = 22,
  235.             Width = 300,
  236.             X = 0,
  237.             Y = 19
  238.         },
  239.  
  240.         [4] =
  241.         {
  242.             Anchor = "BOTTOM",
  243.             Height = 22,
  244.             Width = 300,
  245.             X = 0,
  246.             Y = 0
  247.         }
  248.     },
  249.  
  250.     Minimap =
  251.     {
  252.         Anchor = "TOPRIGHT",
  253.         Height = 150,
  254.         Width = 150,
  255.         X = -5,
  256.         Y = -5,
  257.  
  258.         Calender =
  259.         {
  260.             Anchor ="TOPRIGHT",
  261.             X = 0,
  262.             Y = 0
  263.         },
  264.  
  265.         Clock =
  266.         {
  267.             Anchor ="BOTTOM",
  268.             X = 2,
  269.             Y = 3
  270.         },
  271.  
  272.         Mail =
  273.         {
  274.             Anchor ="BOTTOMRIGHT",
  275.             X = -2,
  276.             Y = 1
  277.         },
  278.  
  279.         Tracking =
  280.         {
  281.             Anchor ="TOPLEFT",
  282.             X = -1,
  283.             Y = 0
  284.         },
  285.  
  286.         QueueStatus =
  287.         {
  288.             Anchor ="BOTTOMLEFT",
  289.             X = 0,
  290.             Y = 0
  291.         },
  292.     },
  293.    
  294.     Player =
  295.     {
  296.         Anchor = "BOTTOM",
  297.         Height = 24,
  298.         Width = 256,
  299.         X = -182,
  300.         Y = 120,
  301.  
  302.         CastingBar =
  303.         {
  304.             Anchor = "TOPLEFT",
  305.             Height = 24,
  306.             Orientation = "HORIZONTAL",
  307.             Width = 204,
  308.             X = 55,
  309.             Y = 25,
  310.  
  311.             Spell =
  312.             {
  313.                 Duration =
  314.                 {
  315.                     Anchor = "RIGHT",
  316.                     X = -4,
  317.                     Y = 0
  318.                 },
  319.  
  320.                 Name =
  321.                 {
  322.                     Anchor = "LEFT",
  323.                     X = 6,
  324.                     Y = 0
  325.                 },
  326.  
  327.                 Texture =
  328.                 {
  329.                     Anchor = "LEFT",
  330.                     Height = 24,
  331.                     Width = 48,
  332.                     X = -52,
  333.                     Y = 0,
  334.  
  335.                     TextureCoordinate =
  336.                     {
  337.                         Bottom = 0.7,
  338.                         Left = 0.1,
  339.                         Right = 0.9,
  340.                         Top = 0.3
  341.                     }
  342.                 }
  343.             }
  344.         },
  345.  
  346.         HealthBar =
  347.         {
  348.             Anchor = "TOP",
  349.             Height = 15,
  350.             Orientation = "HORIZONTAL",
  351.             Width = 252,
  352.             X = 0,
  353.             Y = -3,
  354.  
  355.             Health =
  356.             {
  357.                 Anchor ="CENTER",
  358.                 X = 1,
  359.                 Y = 0
  360.             }
  361.         },
  362.  
  363.         PowerBar =
  364.         {
  365.             Anchor = "BOTTOM",
  366.             Height = 4,
  367.             Orientation = "HORIZONTAL",
  368.             Width = 252,
  369.             X = 0,
  370.             Y = 3
  371.         }
  372.     },
  373.  
  374.     Raid =
  375.     {
  376.         Anchor = "TOPLEFT",
  377.         ColumnAnchor = "LEFT",
  378.         Columns = 8,
  379.         ColumnSpacing = 4,
  380.         ColumnX = 4,
  381.         ColumnY = -4,
  382.         GroupBY = "GROUP",
  383.         GroupOrder = "1, 2, 3, 4, 5, 6, 7, 8",
  384.         HealthThreshold = 100,
  385.         Height = 30,
  386.         Rows = 5,
  387.         ShowParty = true,
  388.         ShowPlayer = true,
  389.         ShowRaid = true,
  390.         ShowSolo = true,
  391.         Width = 100,
  392.         X = 3,
  393.         Y = -3,
  394.  
  395.         HealthBar =
  396.         {
  397.             Anchor = "CENTER",
  398.             Height = 28,
  399.             Orientation = "HORIZONTAL",
  400.             Width = 100,
  401.             X = 0,
  402.             Y = 0,
  403.  
  404.             Health =
  405.             {
  406.                 Anchor ="CENTER",
  407.                 SmallText = true,
  408.                 X = 1,
  409.                 Y = 0
  410.             }
  411.         }
  412.     },
  413.    
  414.     Target =
  415.     {
  416.         Anchor = "BOTTOM",
  417.         Height = 24,
  418.         Width = 256,
  419.         X = 182,
  420.         Y = 120,
  421.  
  422.         CastingBar =
  423.         {
  424.             Anchor = "TOPLEFT",
  425.             Height = 24,
  426.             Orientation = "HORIZONTAL",
  427.             Width = 204,
  428.             X = 55,
  429.             Y = -125,
  430.  
  431.             Spell =
  432.             {
  433.                 Duration =
  434.                 {
  435.                     Anchor = "RIGHT",
  436.                     X = -4,
  437.                     Y = 0
  438.                 },
  439.  
  440.                 Name =
  441.                 {
  442.                     Anchor = "LEFT",
  443.                     X = 6,
  444.                     Y = 0
  445.                 },
  446.  
  447.                 Texture =
  448.                 {
  449.                     Anchor = "LEFT",
  450.                     Height = 24,
  451.                     Width = 48,
  452.                     X = -52,
  453.                     Y = 0,
  454.  
  455.                     TextureCoordinate =
  456.                     {
  457.                         Bottom = 0.7,
  458.                         Left = 0.1,
  459.                         Right = 0.9,
  460.                         Top = 0.3
  461.                     }
  462.                 }
  463.             }
  464.         },
  465.  
  466.         HealthBar =
  467.         {
  468.             Anchor = "TOP",
  469.             Height = 15,
  470.             Orientation = "HORIZONTAL",
  471.             Width = 252,
  472.             X = 0,
  473.             Y = -3,
  474.  
  475.             Health =
  476.             {
  477.                 Anchor ="CENTER",
  478.                 X = 1,
  479.                 Y = 0
  480.             }
  481.         },
  482.  
  483.         PowerBar =
  484.         {
  485.             Anchor = "BOTTOM",
  486.             Height = 4,
  487.             Orientation = "HORIZONTAL",
  488.             Width = 252,
  489.             X = 0,
  490.             Y = 3
  491.         }
  492.     }
  493. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement