Not logged inOpenClonk Forum
Up Topic Health Bar

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to MimmoO
Status Update: the new HUD now features Markers. These are small signs on the left side of the screen, informing the player about various events. They can be added by

AddHUDMarker(int payer, picture, int duration, int urgent, object inform).

- player is obviously the number of the player you want to inform.
- picture can either be an ID or an object: in the first case, the general graphics for that object type will be displayed, the last case the graphics of the object as it currently is ingame will be displaed (helpful for displaying clonks in those markers).
- duration can be used to auto-remove the marker after a certain time. use 0 for infinite markers.
- if the urgent-flag is set, the marker will smoothly fade into red and then normal again, with a frequency of 1Hz.
- at last, if you pass an object to inform, whenever the marker is clicked, this object receives a "MarkerSelected(object marker)"-call ( or a "MarkerAltSelected(object marker)"-call, if you right click), giving the marker itself as parameter. same applies for the destruction of the marker (MarkerRemoved(object marker)).

markers can be used for almost everything: Building completed,Clonk drowning! (urgent) or You have struck adamantine! Praise the miners!.

if you have any good ideas what can be improved, let me know.

edit: on the picture, you can see (from top to bottom)
- Empty marker
- The chest you can see next to the Clonk, in the opening-action (urgent)
- A general lorry
- Dynamite, also general
- The Clonk, as he is seen ingame

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill