Advertisement
Guest User

Untitled

a guest
Jul 11th, 2019
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.66 KB | None | 0 0
  1. ----------------------
  2. -- Dont touch this! --
  3. ----------------------
  4.  
  5. local EKPlates, ns = ...
  6.  
  7.     ns[1] = {} -- C, config
  8.     ns[2] = {} -- G, globals (Optionnal)
  9.  
  10. local C, G = unpack(select(2, ...))
  11. local MediaFolder = "Interface\\AddOns\\EKPlates\\media\\"
  12.  
  13.     G.myClass = select(2, UnitClass("player"))
  14.  
  15. ------------
  16. -- Golbal --
  17. ------------
  18.  
  19.     -- 啟用/enable = true
  20.     -- 停用/disable = false
  21.  
  22.     -- 啟用數字樣式,如果想要條形的血條就關閉這項
  23.     -- Number style, if you want a bar-style nameplates, change to false.
  24.     C.numberstyle = true
  25.  
  26. -------------
  27. -- Texture --
  28. -------------
  29.  
  30.     G.raidIcon = MediaFolder.."raidicons"       -- raid icon
  31.     G.redArrow = "Interface\\AddOns\\SharedMedia_MyMedia\\statusbar\\empty" -- Vertical arrow
  32.     G.hlGlow = MediaFolder.."hlglow"            -- highlight glow
  33.     G.ufbar = MediaFolder.."ufbar"              -- health bar
  34.     G.blank = "Interface\\Buttons\\WHITE8x8"    -- background
  35.     G.glow = MediaFolder.."glow"                -- shadow border
  36.  
  37. -----------
  38. -- Media --
  39. -----------
  40.  
  41.     -- use custom font or use STANDARD_TEXT_FONT / GameFontHighlight:GetFont() to get default game font
  42.  
  43.     G.percFont = "Interface\\AddOns\\SharedMedia_MyMedia\\fonts\\Pixel.ttf"         -- 數字樣式的數字字體 / Number style's number font
  44.     G.numFont = "Interface\\AddOns\\SharedMedia_MyMedia\\fonts\\Pixel.ttf"                  -- 數字字體 / Number font
  45.     G.norFont = "Interface\\AddOns\\SharedMedia_MyMedia\\fonts\\Pixel.ttf"                          -- 名字字體 / Name font
  46.    
  47.     G.fontSize = 5                      -- 名字字體大小 / Name font size
  48.     G.auraFontSize = 5                  -- 光環字體大小 / Aura font size
  49.     G.fontFlag = "MONOCHROMEOUTLINE"                -- 描邊 / "OUTLINE" or none
  50.  
  51. -------------
  52. -- FOR XML --
  53. -------------
  54.  
  55.     -- 用迂迴的方式使xml調用的字型可以被控制 / make font config-able when use in xml
  56.  
  57.     -- 數字模式名字 / number style name font
  58.     local NormalFont = CreateFont("EKPlates_NormalFont")
  59.     NormalFont:CopyFontObject("GameFontHighlightSmall")
  60.     NormalFont:SetFont(G.norFont, G.fontSize, G.fontFlag)
  61.    
  62.     -- 數字模式血量 / number style health font
  63.     local NumberFont = CreateFont("EKPlates_NumberFont")
  64.     NumberFont:CopyFontObject("GameFontHighlightSmall")
  65.     NumberFont:SetFont(G.percFont, G.fontSize*2, G.fontFlag)
  66.     -- 數字模式能量 / number style power font
  67.     local PowerFont = CreateFont("EKPlates_PowerFont")
  68.     PowerFont:CopyFontObject("GameFontHighlightSmall")
  69.     PowerFont:SetFont(G.percFont, G.fontSize, G.fontFlag)
  70.  
  71.     -- 條形模式數值 / bar style number font
  72.     local BarnumFont = CreateFont("EKPlates_BarnumFont")
  73.     BarnumFont:CopyFontObject("GameFontHighlightSmall")
  74.     BarnumFont:SetFont(G.numFont, G.fontSize-2, G.fontFlag)
  75.     -- 條形模式文字 / bar style name font
  76.     local BarFont = CreateFont("EKPlates_BarFont")
  77.     BarFont:CopyFontObject("GameFontHighlightSmall")
  78.     BarFont:SetFont(G.norFont, G.fontSize-2, G.fontFlag)
  79.    
  80.     -- 秒數 / aura text
  81.     local AuraFont = CreateFont("EKPlates_AuraFont")
  82.     AuraFont:CopyFontObject("GameFontHighlightSmall")
  83.     AuraFont:SetFont(G.numFont, G.auraFontSize, G.fontFlag)
  84.    
  85.     -- 層數 / count text
  86.     local CountFont = CreateFont("EKPlates_CountFont")
  87.     CountFont:CopyFontObject("GameFontHighlightSmall")
  88.     CountFont:SetFont(G.numFont, G.auraFontSize-2, G.fontFlag)
  89.  
  90. ---------------------
  91. -- General Options --
  92. ---------------------
  93.  
  94.     -- [[ cvars ]] --
  95.  
  96.     C.Inset = true                      -- 名條貼齊畫面邊緣 / Let Nameplates don't go off screen
  97.     C.MaxDistance = 45                  -- 名條顯示的最大距離 / Max distance for nameplate show on
  98.     C.SelectedScale = 1                 -- 縮放當前目標的名條大小 / Scale select target nameplate
  99.     C.MinAlpha = 0.5                    -- 非當前目標與遠距離名條的透明度 / Set fadeout for out of range and non-target
  100.  
  101.     C.FriendlyClickThrough = true       -- 友方名條點擊穿透 / Friendly nameplate click through
  102.     C.EnemyClickThrough = false         -- 敵方名條點擊穿透 / Enemy nameplate click through
  103.  
  104.     -- [[ colors / 染色 ]] --
  105.  
  106.     C.nameOnly = true                   -- 友方玩家只顯示名字不顯示血量 / Show only name on friendy player nameplates
  107.     C.friendlyCR = true                 -- 友方職業顏色 / Friendly class color
  108.     C.enemyCR = true                    -- 敵方職業顏色 / Enemy class color
  109.     C.threatColor = true                -- 名字仇恨染色 / Change name color by threat
  110.  
  111.     C.castStart = {.6, .6, .6}          -- 一般施法條顏色 / normal castbar color
  112.     C.castFailed = {.5, .2, .2}         -- 施法失敗顏色 / cast failed color
  113.     C.castShield = {.9, 0, 1}           -- 不可打斷施法條顏色 / non-InterruptibleColor castbar color
  114.  
  115.     -- [[ highlight / 高亮 ]] --
  116.  
  117.     C.HighlightFocus = false                -- 高亮焦點 / Highlight focus
  118.     C.HighlightMouseover = false            -- 高亮游標指向目標 / Highlight mouseover target
  119.     C.HighlightTarget = false           -- 高亮目標 / Highlight target
  120.     C.HighlightMode = "Vertical"        -- "Vertical", "Horizontal" 二種目標高亮模式 / two highlight way for target
  121.    
  122.     -- "Vertical" = 直向箭頭 / vertical arrow
  123.     -- "Horizontal" = 橫向箭頭 / horizontal arrow
  124.  
  125.     -- [[ other / 其他 ]] --
  126.  
  127.     C.cbShield = false                  -- 施法條不可打斷圖示 / Show castbar un-interrupt shield icon
  128.     C.level = false                     -- 顯示等級和菁英 / Show level and elite
  129.    
  130.     -- [[ number style additional config / 數字模式額外選項 ]] --
  131.    
  132.     C.cbText = false                    -- 施法條法術名稱 / Show castbar text
  133.     C.castBar = false                   -- 條形施法條 / Show castbar as a "bar"
  134.  
  135. ------------------
  136. -- Player Plate --
  137. ------------------
  138.  
  139.     C.playerPlate = false               -- 玩家名條 /Player self nameplate
  140.     C.classResourceShow = false         -- 玩家資源 /Player resource
  141.     C.classResourceOn = "player"        -- "player", "target": 玩家資源顯示在何處 / where to how player resource
  142.     C.PlayerClickThrough = false        -- 個人資源點擊穿透 / Player resource click through
  143.  
  144. -----------
  145. -- Auras --
  146. -----------
  147.  
  148.     C.auraNum = 5                       -- 圖示數量 / The number of auras
  149.     C.auraIconSize = 16                 -- 圖示大小 / Aura icon size
  150.     C.showMyAuras = false               -- 自身施放 / Show aura cast by player
  151.     C.showOtherAuras = false                -- 他人施放 / Show aura cast by other
  152.    
  153.     C.WhiteList = {
  154.         -- [[ 補足暴雪的白名單裡缺少的控場法術 / just need blizzard's missing spell ]] --
  155.        
  156.         -- Buffs
  157.         --[281744]  = true,     -- 罰站披風 test
  158.         [642]       = true,     -- 聖盾術
  159.         [1022]      = true,     -- 保護祝福
  160.         [23920]     = true,     -- 法術反射
  161.         [45438]     = true,     -- 寒冰屏障
  162.         [186265]    = true,     -- 灵龟守护
  163.        
  164.         -- Debuffs
  165.         [2094]      = true,     -- 致盲
  166.         [117405]    = true,     -- 束缚射击
  167.         [127797]    = true,     -- 厄索爾之旋
  168.         [20549]     = true,     -- 戰爭踐踏
  169.         [107079]    = true,     -- 震山掌
  170.         [272295]    = true,     -- 悬赏
  171.        
  172.         -- [[ 副本 ]] --
  173.        
  174.         -- Dungeons
  175.         [257899]    = true,     -- 痛苦激励,自由镇
  176.         [268008]    = true,     -- 毒蛇诱惑,神庙
  177.         [260792]    = true,     -- 尘土云,神庙
  178.         [260416]    = true,     -- 蜕变,孢林
  179.        
  180.         [267981]    = true,     -- 防护光环,风暴神殿
  181.         [274631]    = true,     -- 次级铁墙祝福,风暴神殿
  182.         [267901]    = true,     -- 铁墙祝福,风暴神殿
  183.         [276767]    = true,     -- 吞噬虚空,风暴神殿
  184.         [268212]    = true,     -- 小型强化结界,风暴神殿
  185.         [268186]    = true,     -- 强化结界,风暴神殿
  186.         [263246]    = true,     -- 闪电之盾,风暴神殿
  187.        
  188.         [257597]    = true,     -- 艾泽里特的灌注,矿区
  189.         [260805]    = true,     -- 聚焦之虹,庄园
  190.         [264027]    = true,     -- 结界蜡烛,庄园
  191.         [255960]    = true,     -- 强效巫毒,阿塔达萨
  192.         [255967]    = true,
  193.         [255968]    = true,
  194.         [255970]    = true,
  195.         [255972]    = true,
  196.        
  197.         -- 詞綴
  198.         [228318]    = true,     -- 狂怒
  199.         [226510]    = true,     -- 膿血
  200.  
  201.     }
  202.  
  203.     C.BlackList = {
  204.         -- [[ 幹掉那些太煩人的常駐dot / let dot debuff gone ]] --
  205.        
  206.         --[166646]  = true,     -- 御風而行/Windwalking
  207.         [15407]     = true,     -- 精神鞭笞
  208.         [51714]     = true,     -- 锋锐之霜
  209.         [199721]    = true,     -- 腐烂光环
  210.         [214968]    = true,     -- 死灵光环
  211.         [214975]    = true,     -- 抑心光环
  212.         [273977]    = true,     -- 亡者之握
  213.         [206930]    = true,     -- 心脏打击
  214.     }
  215.  
  216. ------------
  217. -- Custom --
  218. ------------
  219.  
  220.     -- [[ Custom colored plates / 特定目標染色 ]] --
  221.  
  222.     C.CustomUnit = {
  223.         --[[
  224.         example:
  225.         [index] = {id = NPC ID , color = {r, g, b}, },
  226.         ]]--
  227.         [1] = {id = 120651, color = {.7, .95, 1}, },    -- 炸藥 火爆詞綴
  228.         [2] = {id = 135764, color = {.8, 1, .1}, },     -- 爆裂圖騰 諸王之眠
  229.         [3] = {id = 137591, color = {.8, 1, .1},},      -- 療癒之潮圖騰 諸王之眠
  230.         [4] = {id = 130896, color = {.8, 1, .1},},      -- 昏厥酒桶 自由港
  231.     }
  232.  
  233.     -- [[ Show Power / 特定目標顯示能量 ]] --
  234.  
  235.     C.ShowPower = true
  236.     C.ShowPowerList = {
  237.         -- Temple of Sethraliss
  238.         [133944] = true,    -- 艾斯匹 神廟
  239.         [133379] = true,    -- 阿德利斯 神廟 
  240.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement