Staredit Network > Forums > SC2 Assistance > Topic: [Template] Default LeaderPanel editing code
[Template] Default LeaderPanel editing code
Nov 6 2013, 7:48 pm
By: Ahli  

Nov 6 2013, 7:48 pm Ahli Post #1

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

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. :)

Post has been edited 1 time(s), last time on Nov 6 2013, 7:57 pm by Ahli.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: eksxo, MetalGear