Skip to content

[BUG] Power text not working #2

@Caaethil

Description

@Caaethil

See lua error and images.

I imagine this is a more general issue with texts, but for the example I've tested: I am trying to add a simple number to my power bar to show my Runic Power total. No matter what I seem to do, the text doesn't appear, and I get lua errors like the one below.

Configuring the text and then reloading my UI seems to also sometimes mess up the appearance of my personal resource display (see last image, where the bar scale/position is off - I think it's just ignoring some of the scale and offset configuration I've done to the bar in the addon settings). This can be fixed by disabling texts and reloading my UI.

Love the addon, thanks!

375x bad argument #4 to '?' (Usage: local result = UnitPowerPercent(unitToken [, powerType, unmodified, curve]))
[tail call]: ?
[C]: in function 'UnitPowerPercent'
[PonyBetterResourceManager/Modules/PersonalResource/Style.lua]:447: in function 'formatFunc'
[PonyBetterResourceManager/Modules/PersonalResource/Style.lua]:739: in function <...erResourceManager/Modules/PersonalResource/Style.lua:648>
[PonyBetterResourceManager/Modules/PersonalResource/Style.lua]:816: in function 'UpdatePowerText'
[PonyBetterResourceManager/Modules/PersonalResource/Style.lua]:1057: in function 'ApplyAll'
[PonyBetterResourceManager/Modules/PersonalResource/PersonalResource.lua]:156: in function <...anager/Modules/PersonalResource/PersonalResource.lua:142>
[tail call]: ?
[PonyBetterResourceManager/Core/Core.lua]:63: in function 'NotifyConfigChanged'
[PonyBetterResourceManager/Options/Options_Texts.lua]:217: in function <.../PonyBetterResourceManager/Options/Options_Texts.lua:131>
[C]: ?
[BetterBags/libs/AceConfig-3.0-3/AceConfigDialog-3.0-92/AceConfigDialog-3.0.lua]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[BetterBags/libs/AceConfig-3.0-3/AceConfigDialog-3.0-92/AceConfigDialog-3.0.lua]:839: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:661>
[C]: ?
[BetterBags/libs/AceGUI-3.0-41/AceGUI-3.0.lua]:66: in function <...aceBetterBags/libs/AceGUI-3.0/AceGUI-3.0.lua:64>
[BetterBags/libs/AceGUI-3.0-41/AceGUI-3.0.lua]:300: in function 'Fire'
[BetterBags/libs/AceGUI-3.0-41/widgets/AceGUIWidget-CheckBox.lua]:64: in function <...gs/libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua:53>

Locals:
(*temporary) = "LeftButton"
(*temporary) = true
Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions