changing hotkey color
hello,
i made a script to change the hotkey color of my bartender buttons the script is in kgpanels with "OnLoad", it works when i click on "Accept" in the KgPanels configuration menu, but when i reload my UI or relog, it doesnt work the script (shortened): Quote:
Thalyra |
Open up the kgPanels folder, and just append the code that you have to any .lua file.
|
Not related to your question but constants.lua has
Code:
RAID_CLASS_COLORS = { |
Quote:
Code:
_, class = UnitClass() |
thank you very much for the hint with the second value, but i tried what you said and BaudErrorFrame gives me this error:
Quote:
|
Your script is trying to run before BT4 is finished loading. This is why it works when clicking "Accept", but not when logging in or reloading. There is a Dependencies section for your kgPanels script. Put Bartender4 in there.
|
Add this line to kgPanels.toc:
Code:
##OptionalDeps: Bartender4 |
As I said, there is a Dependencies section right in the kgPanels scripts section. You don't need to go mucking around in another addon's .toc file.
|
Quote:
|
hello,
thank you very much for your help, the part with the dependencies works but when i switch stances for example, the color switches back i editet ActionButton.lua with following code: Quote:
Quote:
Quote:
this solution works, but a script in kgpanels would be a better solution, i think Thalyra Thalyra |
There are a total of 120 buttons. Did you only account for 71 of them?
|
no, with the changes of bartender, all colors are changed
with the script i only wanted 11 buttons of bar 1 and bar 6, because they are the only one with hotkeys Thalyra |
All times are GMT -6. The time now is 08:13 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI