Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Masquer les espaces
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Styles de texte
Modifier l’apparence
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 7 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
2 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
13 lignes
Copier tout
23 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
34 lignes
Copier tout
pfUI.tooltipStatusBar:SetScript("OnUpdate", function()
pfUI.tooltipStatusBar:SetScript("OnUpdate", function()
Copier
Copié
Copier
Copié
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);
Copier
Copié
Copier
Copié
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)
Différences enregistrées
Texte d'origine
Ouvrir un fichier
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)
Texte modifié
Ouvrir un fichier
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)
Trouver la différence