View Single Post
09/08/22, 02:45 AM   #7
Dahlia Nightshade
Join Date: Mar 2015
Posts: 7
No, after Baertram showed me how to do it, I could identify the addon causing the "issue", it's Group Loot Notifier, which is from Hoft, the same author of Info Panel.

Group Loot Notifier has an option to activate the bag space counter, just like Info Panel.

Now, I would like to apply the community fix that's been suggested in Info Panel comments, but the .LUA file is obviously different, since it's a different addon.

I identified the portion of the file related to the Bag Space Counter, but I don't really know what to modify/edit/adjust to fix it.

I attached the .LUA file should yoube interested in it, but here are the parts that I found to be related to this:

Lua Code:
  1. local function BagSpace_Init()
  2.     if SavedSettings.BagSpace then
  3.         if InfoPanel then
  4.             SavedSettings.BagSpace=false
  5.             if CHAT_SYSTEM.primaryContainer then CHAT_SYSTEM:Maximize() CHAT_SYSTEM.primaryContainer:FadeIn() end
  6.             d(Localisation[lang].BagSpaceAlert)
  7.             return
  8.         end
  9.         ZO_PerformanceMeters:SetWidth(215)
  10.         ZO_PerformanceMetersBg:SetWidth(345)
  11.         ZO_PerformanceMetersFramerateMeter:ClearAnchors()
  12.         ZO_PerformanceMetersFramerateMeter:SetAnchor(LEFT,ZO_PerformanceMeters,LEFT,10,0)
  13.         ZO_PerformanceMetersLatencyMeter:ClearAnchors()
  14.         ZO_PerformanceMetersLatencyMeter:SetAnchor(LEFT,ZO_PerformanceMetersFramerateMeter,RIGHT,-3,0)
  15.     else
  16.         if InfoPanel then return end
  17.         ZO_PerformanceMeters:SetWidth(173)
  18.         ZO_PerformanceMetersBg:SetWidth(256)
  19.         ZO_PerformanceMetersFramerateMeter:ClearAnchors()
  20.         ZO_PerformanceMetersFramerateMeter:SetAnchor(RIGHT,ZO_PerformanceMeters,CENTER,0,0)
  21.         ZO_PerformanceMetersLatencyMeter:ClearAnchors()
  22.         ZO_PerformanceMetersLatencyMeter:SetAnchor(LEFT,ZO_PerformanceMeters,CENTER,0,0)
  23.     end
  24.     GLN_BagSpace:SetHidden(not SavedSettings.BagSpace)
  25. end

Lua Code:
  1. --[[    --Bag Space
  2.     local label=WINDOW_MANAGER:CreateControl("GLN_BagSpace", ZO_ChatWindow, CT_LABEL)
  3.     label:SetDimensions(65,16)
  4.     label:ClearAnchors()
  5.     label:SetAnchor(RIGHT,GLN_ToogleButton,LEFT,-5,-3)
  6.     label:SetFont("/EsoUI/Common/Fonts/univers57.otf|16|soft-shadow-thick")
  7.     label:SetColor(1,1,1,1)
  8.     label:SetHorizontalAlignment(2)
  9.     label:SetVerticalAlignment(1)
  10.     label:SetText("")
  11.     label:SetHidden(not SavedSettings.BagSpace)
  12. --]]
  13.     --Bag Space
  14.     local label=WINDOW_MANAGER:CreateControl("GLN_BagSpace", ZO_PerformanceMeters, CT_LABEL)
  15.     label:SetDimensions(75,40)
  16.     label:ClearAnchors()
  17.     label:SetAnchor(LEFT,ZO_PerformanceMetersLatencyMeter,RIGHT,-10,0)
  18.     label:SetFont("ZoFontWinT2")
  19.     label:SetColor(1,1,1,1)
  20.     label:SetHorizontalAlignment(0)
  21.     label:SetVerticalAlignment(1)
  22.     label:SetText("")
  23.     label:SetHidden(true)
  24.     if SavedSettings.BagSpace then BagSpace_Init() end


I have no idea where to add the lines of code suggested in the Info Panel comments.


Thank you

Dahlia
Attached Files
File Type: lua GLN_Main.lua (30.5 KB, 110 views)
  Reply With Quote