Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
隱藏空白變更
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
文字樣式
變更外觀
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
7 年前
差異永不過期
清除
匯出
分享
解釋
2 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
13 行
全部複製
23 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
34 行
全部複製
pfUI.tooltipStatusBar:SetScript("OnUpdate", function()
pfUI.tooltipStatusBar:SetScript("OnUpdate", function()
複製
已複製
複製
已複製
local hp = GameTooltipStatusBar:GetValue()
-- EM-Addons
local _, hpm = GameTooltipStatusBar:GetMinMaxValues()
local hp, hpm, _;
local hpm;
if (MobHealthFrame) then
local name = UnitName("mouseover");
local level = UnitLevel("mouseover");
local index = name .. ":" .. level;
local ppp = MobHealth_PPP(index);
local perc = UnitHealth("mouseover");
hp = math.floor(perc * ppp + 0.5);
hpm = math.floor(100 * ppp + 0.5);
複製
已複製
複製
已複製
if (hp == nil or hpm == nil) then
hp = GameTooltipStatusBar:GetValue()
_, hpm = GameTooltipStatusBar:GetMinMaxValues()
end
else
hp = GameTooltipStatusBar:GetValue()
_, hpm = GameTooltipStatusBar:GetMinMaxValues()
end
-- EM-Addons
if hp and hpm then
if hp and hpm then
if hp >= 1000 then hp = round(hp / 1000, 1) .. "k" end
if hp >= 1000 then hp = round(hp / 1000, 1) .. "k" end
if hpm >= 1000 then hpm = round(hpm / 1000, 1) .. "k" end
if hpm >= 1000 then hpm = round(hpm / 1000, 1) .. "k" end
if pfUI.tooltipStatusBar and pfUI.tooltipStatusBar.HP then
if pfUI.tooltipStatusBar and pfUI.tooltipStatusBar.HP then
pfUI.tooltipStatusBar.HP:SetText(hp .. " / " .. hpm)
pfUI.tooltipStatusBar.HP:SetText(hp .. " / " .. hpm)
end
end
end
end
end)
end)
已保存差異
原始文本
開啟檔案
pfUI.tooltipStatusBar:SetScript("OnUpdate", function() local hp = GameTooltipStatusBar:GetValue() local _, hpm = GameTooltipStatusBar:GetMinMaxValues() if hp and hpm then if hp >= 1000 then hp = round(hp / 1000, 1) .. "k" end if hpm >= 1000 then hpm = round(hpm / 1000, 1) .. "k" end if pfUI.tooltipStatusBar and pfUI.tooltipStatusBar.HP then pfUI.tooltipStatusBar.HP:SetText(hp .. " / " .. hpm) end end end)
更改後文本
開啟檔案
pfUI.tooltipStatusBar:SetScript("OnUpdate", function() -- EM-Addons local hp, hpm, _; local hpm; if (MobHealthFrame) then local name = UnitName("mouseover"); local level = UnitLevel("mouseover"); local index = name .. ":" .. level; local ppp = MobHealth_PPP(index); local perc = UnitHealth("mouseover"); hp = math.floor(perc * ppp + 0.5); hpm = math.floor(100 * ppp + 0.5); if (hp == nil or hpm == nil) then hp = GameTooltipStatusBar:GetValue() _, hpm = GameTooltipStatusBar:GetMinMaxValues() end else hp = GameTooltipStatusBar:GetValue() _, hpm = GameTooltipStatusBar:GetMinMaxValues() end -- EM-Addons if hp and hpm then if hp >= 1000 then hp = round(hp / 1000, 1) .. "k" end if hpm >= 1000 then hpm = round(hpm / 1000, 1) .. "k" end if pfUI.tooltipStatusBar and pfUI.tooltipStatusBar.HP then pfUI.tooltipStatusBar.HP:SetText(hp .. " / " .. hpm) end end end)
尋找差異