I've created the code to edit the default leaderpanel a while ago. But now someone asked me about something wich led me to finally complete the last missing parts and publish it for everyone.
The code contains every aspect of the original leaderpanel with a few small changes. For example, I've added code which lets you control the space between the unit buttons in the leaderpanel. You just need to edit two constants to change it:
- "UnitIconOffsetReduction" controls the amount of space that is reduced. 10 means that there will be 10 pixels less between the buttons.
- "UnitIconWidth" controls the width of the button. This value + "UnitIconOffsetReduction" should result in 69.
In case you've digged through my gameheart interface, you will find similarities in the code. This code was the first milestone for the creation of gameheart's leaderpanel.
There is another method to create leaderpanels which adds new elements into the contained frames and moving the original content offscreen. That method is not discussed here.
So, happy LeaderPanel editing. :)
~ Ahli
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've created the code to edit the default leaderpanel a while ago. But now someone asked me about something wich led me to finally complete the last missing parts and publish it for everyone.
I've put the code into an interface file:
The code contains every aspect of the original leaderpanel with a few small changes. For example, I've added code which lets you control the space between the unit buttons in the leaderpanel. You just need to edit two constants to change it:
- "UnitIconOffsetReduction" controls the amount of space that is reduced. 10 means that there will be 10 pixels less between the buttons.
- "UnitIconWidth" controls the width of the button. This value + "UnitIconOffsetReduction" should result in 69.
In case you've digged through my gameheart interface, you will find similarities in the code. This code was the first milestone for the creation of gameheart's leaderpanel.
There is another method to create leaderpanels which adds new elements into the contained frames and moving the original content offscreen. That method is not discussed here.
So, happy LeaderPanel editing. :)
~ Ahli