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.
[2026-6-09. : 5:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[2026-6-09. : 4:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[2026-6-09. : 4:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[2026-6-09. : 3:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[2026-6-09. : 3:58 pm]
lil-Inferno -- Nude why'd you delete my shout
[2026-6-09. : 3:35 pm]
NudeRaider -- never trust a statistic you haven't forged yourself
[2026-6-09. : 4:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[2026-6-08. : 8:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
Please log in to shout.


Members Online: O)FaRTy1billion[MM]