--- HonorFu.lua 2006-05-21 00:08:56.000000000 +0200 +++ HonorFu.lua 2006-05-27 19:27:35.063625000 +0200 @@ -359,9 +359,9 @@ function HonorFu:OnGainHK(rank, name, honor, kills) if self:IsPrintingHonorGains() then - self.cmd:msg(format(self.loc.PATTERN_GAIN_HK, rank, name, honor, kills)) + self.cmd:msg(format(self.loc.PATTERN_GAIN_HK, name, rank, honor, kills)) end - if SCT_Display_Toggle then + if SCT_Display_Toggle and honor > 0 then SCT_Display_Toggle("SHOWHONOR", "+"..honor.." "..HONOR) end self:Update() @@ -479,21 +479,11 @@ end function HonorFu:OnUpdateMouseoverUnit() - self:ClearTooltipLine() if self:IsShowingEnemyTooltipLine() and UnitExists("mouseover") and UnitFactionGroup("mouseover") ~= UnitFactionGroup("player") and GetDifficultyColor(UnitLevel("mouseover")) ~= QuestDifficultyColor["trivial"] and UnitIsPlayer("mouseover") then local hks = glory:GetTodayHKs(UnitName("mouseover")) if GameTooltip:IsVisible() and GameTooltipTextLeft1:GetText() ~= nil and string.find(GameTooltipTextLeft1:GetText(), UnitName("mouseover")) then - local line = GameTooltip:NumLines() + 1 - self.tooltipLine = line - local left = getglobal("GameTooltipTextLeft" .. line) - if left ~= nil then - left:SetText(format("%d Kills - |cff%s%.0f%% %s|r", hks, FuBarUtils.GetThresholdHexColor((4 - hks) / 4), math.max((4 - hks) * 25, 0), HONOR_CONTRIBUTION_POINTS)) - left:Show() - GameTooltip:SetHeight(GameTooltip:GetHeight() + 18) - if GameTooltip:GetWidth() < left:GetWidth() + 20 then - GameTooltip:SetWidth(left:GetWidth() + 20) - end - end + GameTooltip:AddLine(format("%d Kills - |cff%s%.0f%% %s|r", hks, FuBarUtils.GetThresholdHexColor((4 - hks) / 4), math.max((4 - hks) * 25, 0), HONOR_CONTRIBUTION_POINTS)) + GameTooltip:Show(); end end end --- HonorFuLocals.lua 2006-05-21 00:08:56.000000000 +0200 +++ HonorFuLocals.lua 2006-05-26 17:47:18.688625000 +0200 @@ -52,8 +52,8 @@ TEXT_ON = "On", TEXT_OFF = "Off", - PATTERN_BONUS_HONOR = "Gained %d bonus honor", - PATTERN_GAIN_HK = "Kill: %s %s. %d honor gained. Killed %d times today.", + PATTERN_BONUS_HONOR = "Bonus: +%d honor", + PATTERN_GAIN_HK = "Kill: %s (%s), +%d honor, %d times today.", PATTERN_REPUTATION_GAIN = "Gained %d reputation with %s", PATTERN_HINT_WARSONG = "Click to target flag carrier (%s).", PATTERN_BATTLEGROUNDS_SCORE = "%s score",