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.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy