11-28-15, 06:10 AM | #1 |
C_Garrison.GetFollowers(2)
Hello,
i want to track all my Ships with classNames. Everytime i go the Shipyard i want a print in chat like: # Transporter: 1 # Destroyer: 2 # Total: 3/10 Lua Code:
Ship Builder is working. Shipyard Table not: Error: Code:
Message: Interface\AddOns\Endzeit\modules\ships.lua:26: attempt to index global 'GarrisonShipyardFrame' (a nil value) Time: 11/28/15 15:09:11 Count: 1 Stack: Interface\AddOns\Endzeit\modules\ships.lua:26: in main chunk Locals: (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = "attempt to index global 'GarrisonShipyardFrame' (a nil value)" Lua Code:
Last edited by Endzeit : 11-28-15 at 08:10 AM. |
|
11-28-15, 12:44 PM | #2 |
The GarrisonShipyardFrame doesn't exist until the Blizzard_GarrisonUI is loaded, so your AddOn should have this in its ToC file:
Code:
## LoadOnDemand: 1 ## LoadsWith: Blizzard_GarrisonUI lua Code:
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Author of NPCScan and many other AddOns. |
|
11-28-15, 04:46 PM | #3 |
i change some code and try to formate better.. this is working so far. There is no event for Opening Garrison Table or?
Lua Code:
my color table is not perfekt.. but i dont know how it makes better. With 0 ships = red With 1 ships = yellow with 2+ ships = green |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » C_Garrison.GetFollowers(2) |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|