View Single Post
07-20-23, 08:06 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,894
You can't "register" a faction. The game knows about the factions it knows about and is not interested in anything else.

Are you meaning you want to add some random not in-game identity to the reputation frame and generate your own reputation based on "stuff"? Although it looks like you've done that with the "my sub-faction" in the image.

Possibly you just want to update your personal reputation status bar etc when the reputation frame is displayed which you could do by hooking the ReputationFrame_OnShow function.
Lua Code:
  1. hooksecurefunc("ReputationFrame_OnShow", function(self)
  2.      -- update your widgets with the latest from information you've presumably stored in a table.
  3. end)

You could also use
Lua Code:
  1. ReputationFrame:HookScript("OnShow",function(self)
  2.      -- update your widgets with the latest from information you've presumably stored in a table.
  3. end)

Which is pretty much the same thing but works if the script doesn't call a separate function.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-20-23 at 08:16 PM.
  Reply With Quote