Author Topic: Adding to the HUD  (Read 152 times)

TheDerf010

  • Newbie
  • *
  • Posts: 8
  • I do maps and stuff
Adding to the HUD
« on: November 04, 2017, 05:23:48 pm »
Hey there, I am in the process of making a map using CRPL and im trying to push my limits.
My main idea is to take 2 of the units i have programmed previously, make 2 more and add them onto the HUD under their respective tabs (2 of them under weapons, 2 under structure).
The issue is that I have never done anything to modify the HUD before and would like some help relating to how i would change the HUD

Here are the main steps I would like to take:
  • Upon click display a preview, much like the other units from the HUD
  • Be able to place that unit
Attatched is a basic image (my apologies for the poor editing) of how I would ideally have the HUD in my mind.

Thanks for any help!
I'm a dude who makes maps, i use CRPL too.

GoodMorning

  • Map Maker
  • *****
  • Posts: 2992
  • (Pusillanimous)
Re: Adding to the HUD
« Reply #1 on: November 04, 2017, 06:15:24 pm »
Well, I have to deliver bad news...

It can't be done.

Specifically, the build menu is either present or absent. For the case of four additional units, you will do best to add their buttons somewhere nearby, probably to the left of the HUD. Further, you can't tell (I seem to recall) whether the player is looking at "structures" or "weapons" or one of the other tabs, or has a unit selected...

Actual construction is easier, as you can detect a click on the appropriate screen area, and create a build-ghost Core to follow the mouse, and either place copies of your unit on click or vanish on cancel.
A narrative is a lightly-marked path to another reality.

TheDerf010

  • Newbie
  • *
  • Posts: 8
  • I do maps and stuff
Re: Adding to the HUD
« Reply #2 on: November 05, 2017, 05:38:26 am »
Quote
you will do best to add their buttons somewhere nearby, probably to the left of the HUD.

Are you suggesting something like this?

Thanks for your advice
I'm a dude who makes maps, i use CRPL too.

GoodMorning

  • Map Maker
  • *****
  • Posts: 2992
  • (Pusillanimous)
Re: Adding to the HUD
« Reply #3 on: November 05, 2017, 05:41:45 am »
Precisely.
A narrative is a lightly-marked path to another reality.

TheDerf010

  • Newbie
  • *
  • Posts: 8
  • I do maps and stuff
Re: Adding to the HUD
« Reply #4 on: November 05, 2017, 05:57:07 am »
Sounds good, thank you for your help.
I'm a dude who makes maps, i use CRPL too.

hbarudi

  • Full Member
  • ***
  • Posts: 262
Re: Adding to the HUD
« Reply #5 on: November 10, 2017, 01:33:30 am »
I have been thinking about that myself especially after playing the chernobyl chronicles map that lets you use custom units.