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.
[03:48 am]
O)FaRTy1billion[MM] -- :wob:
[03:14 am]
Symmetry -- :wob:
[01:03 am]
IskatuMesk -- that's a loaded sentence if I ever snorted one
[2026-7-09. : 2:31 am]
Symmetry -- lot of 0s in them boxes, someone better hit it big
[2026-7-05. : 1:14 am]
l)ark_ssj9kevin -- Rectal!!!
[2026-7-05. : 12:13 am]
IskatuMesk -- u guys ever look at the "Backend performance improvements" line and kinda you know 👀
[2026-7-03. : 4:25 pm]
l)ark_ssj9kevin -- oh wow it's kind of like archipeligo but solo
[2026-7-03. : 9:43 am]
Oh_Man -- makes me wonder tho, a brood war achievement project culd be quite something, following the design methodology of SC2 achieves
[2026-7-03. : 9:43 am]
Oh_Man -- intresting concept, i see starcraft N64 is on there, most of the achieves seen bare bones though
[2026-7-03. : 9:43 am]
Oh_Man -- https://retroachievements.org/ i stumbled across this website
Please log in to shout.


Members Online: RIVE