Custom unit panel

Started by exostum, January 24, 2015, 07:48:35 AM

Previous topic - Next topic

exostum

Hello Everyone.

For my new colonial space map I added a custom player unit and now I want to add a select panel with option like the one with normal player unit:

(the activate ressuply destroy button and  checkbox for example)

But I am at my limits of my CRPL.

Here is what is already done

Moveable by user CRPL interface
Selectable by user CRPL interface
Main CRPL script for unit

So any idea how to start it ? Anyone willing to help me ?

Edit : Attached a screenshot of what i am referring to




My Work in progress Maps (On hold for now)

stewbasic

This might help for the background at least
http://knucklecracker.com/forums/index.php?topic=16722

However as far as I know, you can't put something over the vanilla HUD without disabling normal controls (because the vanilla HUD consumes all clicks on it, so CRPL can't see them, and is also drawn in front of any cores).

exostum

#2
Thanks, I  will include you in the credits of my map if I use it.

For now i need more help

Here where i am at test phase

So far the panel activate when the unit is selected, but i can see it when normal control are activated.

My Work in progress Maps (On hold for now)

stewbasic

Yeah the vanilla HUD is drawn on top but partially transparent, so you'll have to hide the custom one when it shouldn't be seen. Easiest way would be to move it off screen (including any other cores you use to make up the HUD, such as text labels). See attached example.