Advertisement
Guest User

Untitled

a guest
May 17th, 2010
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. local config = EventHorizon.config
  2. local _,class = UnitClass('player') -- These locals make in-line conditions a little easier. See the color section for a few examples.
  3. local DK = class == "DEATHKNIGHT"
  4. local Druid = class == "DRUID"
  5. local Hunter = class == "HUNTER"
  6. local Mage = class == "MAGE"
  7. local Paladin = class == "PALADIN"
  8. local Priest = class == "PRIEST"
  9. local Rogue = class == "ROGUE"
  10. local Shaman = class == "SHAMAN"
  11. local Warlock = class == "WARLOCK"
  12. local Warrior = class == "WARRIOR"
  13.  
  14. config.showTrinketBars = false -- Show bars for your equipped trinkets? Default = true
  15. config.castLine = true -- Show a full-frame line at the end of casts/channels over 1.5 seconds? Default = true
  16. config.gcdStyle = 'bar' -- 'line' = show a thin line for the GCD. 'bar' = show a full-frame shrinking bar for the gcd (looks good at a dark color and low opacity, set within the color table). false = disable GCD handling.
  17.  
  18. config.enableRedshift = false -- Enable Redshift's show/hide functions? Default = false
  19. config.Redshift.showCombat = true -- Always show EH in combat. Default = true
  20. config.Redshift.showHarm = true -- Show EH if targeting an attackable unit, in or out of combat. Default = true
  21. config.Redshift.showHelp = false -- Show EH if targeting a friendly (unattackable) unit, in or out of combat. Default = false
  22. config.Redshift.showBoss = true -- Always show EH when targeting a boss-level unit, regardless of its attackable state. Default = true
  23. config.Redshift.showFocus = false -- Always show EH while a focus unit exists, in or out of combat. Default = false
  24. config.Redshift.hideVehicle = true -- Hide EH if using a vehicle with an actionbar of its own. Does not affect vehicles that do not change the actionbar. If you use Vitals, you may want to set this to false. Default = true
  25. config.Redshift.hideVitals = true -- Hide EventHorizon_Vitals as well when the main frame is hidden. Default = true
  26.  
  27. config.Lines = {3, 6, 9} -- This draws extra marker lines on EventHorizon. Examples: config.Lines = 2 (add a line at 2 seconds in the future); config.Lines = {2, 4, 6} (add lines at 2, 4 and 6 seconds). Decimals and math are permitted, of course. Any amount of lines is allowed. Default: Disabled.
  28. config.LinesColor = {1,1,1,0.5} -- Standard color syntax {R,G,B,A} (see below). No classcolor allowed quite yet. Embed more tables for more colors. {{1,0,0,1},{0,1,0,1},{0,0.5,1}} will do one red line, one green line, and the rest kinda-teal lines. Yeah, it's a bit of an advanced thing.
  29.  
  30. config.anchor = {"BOTTOMLEFT", "EventHorizonHandle", "TOPLEFT"} -- EventHorizon's position. Format: {'POINT', 'AnchorFrame', 'RELATIVE', Xoffset (optional), Yoffset (optional)}. Set the anchor to something other than EventHorizonHandle to root EH in place and remove the anchor. Default = {"TOPRIGHT", "EventHorizonHandle", "BOTTOMRIGHT"} (anchor the TOPRIGHT of EH to EventHorizonHandle's BOTTOMRIGHT with no offset)
  31. config.width = 150 -- Width of a single bar, not counting its icon. The actual width of the frame is (width+height+[padding*2]).
  32. config.height = 18 -- Height of a single bar. Also the size of the spell icons.
  33. config.spacing = 0 -- Vertical spacing between bars.
  34. config.scale = 1 -- The overall scale of the main frame.
  35. config.staticheight = false -- Changing this to a number will override config.height and tell EH to resize the bars instead of the frame. For example, 'config.staticheight = 150' will make EH 150 pixels tall. With 5 shown bars, each bar will be 30 pixels tall. Spacing is still used in this mode and will act the same as it does otherwise.
  36.  
  37. config.past = -3 -- Number of seconds to show in the past. Default = -3 (yes, it's a negative number)
  38. config.future = 18 -- Number of seconds to show in the future. Recommended to keep this between 12-18 unless you've got some crazy configuration. Default = 12
  39.  
  40. config.texturedbars = true -- You have the choice between textures and solid colors. Remove this or comment it out to see what the solids look like. Default = true
  41. config.bartexture = "Interface\\Addons\\EventHorizon\\Smooth" -- Full path, minus extension, of the bar texture to use. Default = "Interface\\Addons\\EventHorizon\\Smooth"
  42. config.texturealphamultiplier = 2 -- Most textures appear darker than a solid color because of the alpha value. To counteract this, the opacity of the color is multiplied by this number before it's applied to a texture.
  43. config.barbgcolor = {1,1,1,0} -- Background of any single bar. Format is {R,G,B,A}. Default = {1,1,1,0} (white, invisible) (this should be moved to the color table, but I'm lazy.)
  44. config.iconborder = false -- Use the default Blizzard icon border? Default = false (Add some spacing if you enable this, to make things look better)
  45.  
  46. config.backdrop = true -- Use the background and border frame? Default = true
  47. config.padding = 3 -- Extra space between the bar edges and the backdrop/border.
  48. config.bg = "Interface\\ChatFrame\\ChatFrameBackground" -- Frame background texture. Full path, no extension. Default = "Interface\\ChatFrame\\ChatFrameBackground"
  49. config.border = "Interface\\Tooltips\\UI-Tooltip-Border" -- Border texture, same thing all over. Default = "Interface\\Tooltips\\UI-Tooltip-Border"
  50. config.edgesize = 8 -- Thickness of the frame's border. Default = 8
  51. config.inset = {top = 2, bottom = 2, left = 2, right = 2} -- Backdrop insets move the edges of the background, but leave the border untouched. Long story short, start at 1/4 your edgesize and adjust by 1 until it looks right. Default = {top = 2, bottom = 2, left = 2, right = 2}
  52.  
  53. -- The format for the color section is {Red, Green, Blue, Opacity/Alpha}. To color a bar or indicator by class, use {true, <burn>, <alpha>}.
  54. -- <burn> means color intensity - 0.5 burn darkens a color by 50%. 1.2 lightens it by 20%. 1 is baseline.
  55. local c = EventHorizon.colors
  56. c.sent = {true,Priest and 0.7 or 1,1} -- Marker line when a spellcast is sent to the server. Default = {true,Priest and 0.7 or 1,1} (class colored, dimmed a bit if you're a Priest, opaque)
  57. c.tick = {true,Priest and 0.7 or 1,1} -- Tick markers. Default = {true,Priest and 0.7 or 1,1} (class colored, dimmed a bit if you're a Priest, opaque)
  58. c.casting = {0,1,0,0.3} -- Casting bars. Default = {0,1,0,0.3} (green, 0.3 unmodified alpha)
  59. c.cooldown = {1,1,1,0.25} -- Cooldown bars. Default = {1,1,1,0.25} (white, 0.3 unmodified alpha)
  60. c.debuffmine = {true,Priest and 0.7 or 1,0.3} -- YOUR debuff bars. Default = {true,Priest and 0.7 or 1,0.3} (class colored, dimmed a bit if you're a Priest, 0.3 unmodified alpha)
  61. c.debuff = {true,0.5,0.3} -- OTHER PLAYERS' debuff bars. Default = {true,0.5,0.3} (class colored, darkened by 50%, 0.3 unmodified alpha)
  62. c.playerbuff = {true,Priest and 0.7 or 1,0.3} -- Buff bars. Default = {true,Priest and 0.7 or 1,0.3} (class colored, dimmed a bit if you're a Priest, 0.3 unmodified alpha)
  63. c.nowLine = {255,0,0,0.3} -- The "Now" line.
  64. c.bgcolor = {0,0,0,0.6} -- Color of the frame's background. Default = {0,0,0,0.6} (black, 60% opacity)
  65. c.bordercolor = {1,1,1,1} -- Color of the frame's border. Default = {1,1,1,1} (white, fully opaque)
  66. c.gcdColor = {1,1,1,0.5} -- Color of the GCD indicator. Default = {1,1,1,0.5}
  67.  
  68. -- This little table judges the thickness and positioning of each bar element.
  69. -- It's all done by percentages, from the top of the bar. 0 is the absolute top, 0.35 is 35% down from there, 0.5 is halfway down the bar, etc. 1 is the bottom of the bar. Yes, you can use numbers greater than 1, but it will probably look odd.
  70. EventHorizon.layouts = { -- You can actually add anything from the table above here, segments just inherit off 'default' if they're not included. Just tinker with the numbers if you want to see how it works.
  71. tick = { -- Tick markers.
  72. top = 0,
  73. bottom = 0.2,
  74. },
  75. smalldebuff = { -- The recast line for spells like Vampiric Touch and Immolate.
  76. top = 0.2,
  77. bottom = 0.35,
  78. },
  79. cantcast = { -- The blank section below the recast line.
  80. top = 0.35,
  81. bottom = 1,
  82. },
  83. default = { -- Just about everything else.
  84. top = 0.2,
  85. bottom = 1,
  86. },
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement