Problem with reskinning the OrderHall "Troops" icons
I want to change the appearance of the troop icons on the OrderHallCommandBar:
Lua Code:
The only problem is that I have no clue when this "OrderHallCommandBar.TroopSummary" table fills up with data, nor when the troop icons appear on the bar. I've tried "GARRISON_UPDATE" but this doesn't work. It works when you reload the UI when you are already in the Class Hall but not when you log out, login, and then enter the Class Hall. I've tried hooking all functions inside "Blizzard_OrderHallCommandBar.lua" but in that file there is no code that mentions "TroopSummary" and it is inherited from "Blizzard_OrderHallCommandBar.xml": XML Code:
I've also tried running my troops reskinning code after "PLAYER_ENTERING_WORLD" and when the "Blizzard_OrderHallUI" AddOn is loaded but the TroopSummary table is always empty and then it shows. I just don't know what event/function to hook. Does anyone know anything about this? Thanks :) |
Hooking OrderHallCommandBarMixin:RefreshCategories seems to work.
|
1 Attachment(s)
Here is something that i wrote, that works very well!
Lua Code:
|
You are creating a frame every time the Order Hall UI is opened? Why not reuse the same frame?
|
Quote:
|
Quote:
|
Quote:
|
Try looking at my Broker_ClassHall addon.
|
Quote:
Lua Code:
(after checking for the orderhall ui to be loaded first, of course) |
i also had issues with satisfactorily skinning these, and eventually redrew the frames:
https://github.com/obble/iipui/blob/...commandbar.lua |
Thank you for the help! The problem was that I was using:
Lua Code:
instead of: Lua Code:
And I think needed to request the info first using: Lua Code:
I wanted to reposition the Blizzard Troop icons but this seems impossible because I have no clue when they get created. Instead, like what everyone else appears to be doing, I need to create my own troop icons and hide the Blizzard ones. I'm still unsure how to hide the Blizzard ones considering I can't seem to target them. Maybe just create an entirely new bar from scratch.. |
Calling this line just releases the pool of frames used for followers, so they will hide:
https://github.com/obble/iipui/blob/...andbar.lua#L79 The frames are being created on demand using this new frame pool stuff |
All times are GMT -6. The time now is 11:03 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI