ETH官方钱包

前往
大廳
主題

RECOUNT 變更詳細資料下部欄位位置

死鬥 | 2016-01-31 01:50:44 | 巴幣 0 | 人氣 631

好吧,RECOUNT還是不肯修正傷害數字互相覆蓋問題

乾脆做成UI監控修改好了,省得每次改版都要改一次

RecountFix.toc

---------------------------------

## Interface: 70000

## LoadOnDemand: 0

## RequiredDeps: Recount

## Title: RecountFix

## Notes: Fix Recount's Detail window bottom row show

## DefaultState: Enabled

## Author: 巨龍之喉 - 死鬥

## X-Category: FIX

## X-Date: 09-22-2016

## SavedVariables: SAVE

## Version: 0.01

RecountFix.lua

---------------------------------

RecountFix.lua
---------------------------------
local arg1,arg2 = ...
print(arg1.." Loaded")
--local f=CreateFrame("FRAME")
local f=_G.Recount_DetailWindow
f:RegisterEvent("OnUpdate")
f:SetScript("OnUpdate", function(self,event,...)
if self:IsShown() then

local rd =_G.Recount_DetailWindow
local rdp=_G.Recount_DetailWindow_PieDetails
local origin_width = 560
local new_width = 650
local new_offset = new_width-origin_width

local newoffsetx = {
   ["Min"]        = -220,    
   ["Avg"]        = -150,
   ["Max"]        = -80,
   ["Count"]    = -40,
   ["Percent"]    = 20,
}
local attacktype = {
   ["Hit"]            =    "命中",
   ["Hit (被格擋)"]            =    "命中(被格擋)",
   ["Crit"]        =    "致命",
   ["Crit (被格擋)"]        =    "致命(被格擋)",
   ["Absorb"]        =    "吸收",
   ["Multistrike"]    =    "雙擊",
   ["Multistrike (Crit)"]    =    "雙擊(致命)",
   ["Multistrike (被格擋)"]    =    "雙擊(被格擋)",
   ["Deflect"]        =    "偏斜",
   ["Reflect"]        =    "反射",
   ["Immune"]        =    "免疫",
   ["Parry"]        =    "格檔",
   ["Dodge"]        =    "招架",
   ["Miss"]        =    "閃避",   
   
}


rd:SetWidth(new_width)
rdp:SetPoint("TOPLEFT",rd,0,-2*rd.Title:GetHeight())


for k,v in pairs(newoffsetx) do
   local f=rdp.BotRowLabels[k]
   f:SetPoint("RIGHT",v+new_offset+30,0)   
end

for i,t in ipairs(rdp.BotRows) do
   local n = t.Name:GetText()
  
   if attacktype[n] then
      t.Name:SetText(attacktype[n])
   end  
   
   for k,v in pairs(newoffsetx) do
      local f=t[k]      
      f:SetPoint("RIGHT",v+new_offset,0)
   end
end


end

end)
---------------------------------


創作回應

更多創作