Download
(1 Kb)
Download
Updated: 11/01/23 02:36 PM
Pictures
File Info
Compatibility:
Endless Archive (9.2.5)
Updated:11/01/23 02:36 PM
Created:06/29/21 04:08 AM
Monthly downloads:152
Total downloads:7,346
Favorites:24
MD5:
Categories:Character Advancement, Utility Mods
Companion Rapport Numbers  Popular! (More than 5000 hits)
Version: 1.2
by: Smaxx [More]
This is a very minimalistic addon that will allow you to see rapport changes as numbers as well as your absolute rapport value so you can get a better grasp of how significant changes actually are.
Version 1.2
  • Fixed the rapport change icons no longer showing in the loot log.

Version 1.1
  • Added the absolute Rapport value to the Companion Menu.
Archived Files (2)
File Name
Version
Size
Uploader
Date
1.1
1kB
Smaxx
07/04/21 06:07 AM
1.0
1kB
06/29/21 04:08 AM


Post A Reply Comment Options
Unread 10/07/22, 04:25 PM  
Maxxermax
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 74
Uploads: 2
Re: Rapport Increase / Decrease Icon is missing

Originally Posted by Maxxermax
I've installed this addon yesterday.
It works, but the Rapport Increase / Decrease Icon is missing / is a white square.

There is a change in function ZO_LootHistory_Shared:AddCompanionRapportEntry .

With this code it works for me:
Lua Code:
  1. local COMPANION_NAME_COLOR = ZO_ColorDef:New(GetInterfaceColor(INTERFACE_COLOR_TYPE_UNIT_REACTION_COLOR, UNIT_REACTION_COLOR_COMPANION))
  2. local RAPPORT_INCREASE_BACKGROUND_COLOR = ZO_ColorDef:New("102d0b")
  3. local RAPPORT_DECREASE_BACKGROUND_COLOR = ZO_ColorDef:New("3f0a0a")
  4.  
  5. function ZO_LootHistory_Shared:AddCompanionRapportEntry(companionId, isIncrease, adjustmentAmountType, currentRapport, previousRapport)
  6.     local rapportFormatter = isIncrease and SI_LOOT_HISTORY_COMPANION_RAPPORT_GAIN_FORMATTER or SI_LOOT_HISTORY_COMPANION_RAPPORT_LOSS_FORMATTER
  7.     local colorizedCompanionName = COMPANION_NAME_COLOR:Colorize(GetCompanionName(companionId))
  8.     local iconFormatter = isIncrease and LOOT_RAPPORT_INCREASE_ICON_FORMATTER or LOOT_RAPPORT_DECREASE_ICON_FORMATTER
  9.     local change = currentRapport - previousRapport
  10.     local lootData =
  11.     {
  12.         text = zo_strformat(rapportFormatter, colorizedCompanionName),
  13.         icon = string.format(iconFormatter, adjustmentAmountType),
  14.         color = ZO_SELECTED_TEXT,
  15.         backgroundColor = isIncrease and RAPPORT_INCREASE_BACKGROUND_COLOR or RAPPORT_DECREASE_BACKGROUND_COLOR,
  16.         companionId = companionId,
  17.         companionName = colorizedCompanionName,
  18.         entryType = LOOT_ENTRY_TYPE_COMPANION_RAPPORT,
  19.         showIconOverlayText = true,
  20.         iconOverlayText = zo_strformat('<<F:1>>', change)
  21.     }
  22.     local lootEntry = self:CreateLootEntry(lootData)
  23.     lootEntry.isPersistent = true
  24.     self:InsertOrQueue(lootEntry)
  25. end
  26.  
  27. function ZO_LootHistory_Shared:OnCompanionRapportUpdate(companionId, previousRapport, currentRapport, adjustmentAmountType)
  28.     if currentRapport ~= previousRapport then
  29.         self:AddCompanionRapportEntry(companionId, currentRapport > previousRapport, adjustmentAmountType, currentRapport, previousRapport)
  30.     end
  31. end
  32.  
  33. function ZO_CompanionOverview_Keyboard:RefreshCompanionRapport()
  34.     if HasActiveCompanion() and COMPANION_OVERVIEW_KEYBOARD_FRAGMENT:IsShowing() then
  35.         --Grab the rapport value, level, and description for the active companion
  36.         local rapportValue = GetActiveCompanionRapport()
  37.         local rapportLevel = GetActiveCompanionRapportLevel()
  38.         local rapportDescription = GetActiveCompanionRapportLevelDescription(rapportLevel)
  39.  
  40.         self.rapportBar:SetValue(rapportValue)
  41.         self.rapportStatusLabel:SetText(GetString("SI_COMPANIONRAPPORTLEVEL", rapportLevel) .. zo_strformat(' (<<F:1>>)', rapportValue))
  42.         self.rapportDescriptionLabel:SetText(rapportDescription)
  43.     end
  44. end
Report comment to moderator  
Reply With Quote
Unread 10/07/22, 08:51 AM  
Maxxermax
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 74
Uploads: 2
Rapport Increase / Decrease Icon is missing

I've installed this addon yesterday.
It works, but the Rapport Increase / Decrease Icon is missing / is a white square.

Report comment to moderator  
Reply With Quote
Unread 07/14/21, 11:33 PM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 36
Uploads: 1
Thank you!
Report comment to moderator  
Reply With Quote
Unread 06/29/21, 09:43 AM  
SkOODaT
 
SkOODaT's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 169
Uploads: 11
very nice addon, good work... will complement mine nicely lol
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: