ItsMods
[Request] Tutorial on hud elements - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Request] Tutorial on hud elements (/Thread-Request-Tutorial-on-hud-elements.html)



Tutorial on hud elements - Pozzuh - 12-11-2010

Ohai

I was wondering if someone is willing to make a tutorial about hud elements, I find working with hud elements hard. My main problem is hud elements falling off your screen in other aspect ratios.

It would be much appreciated Heart


RE: Tutorial on hud elements - sliver - 12-17-2010

use center, left, right and Inc/dec a number to it:

example:

Code:
level.modversion_hud = newHudElem(); level.modversion_hud.x = -7; level.modversion_hud.y = 12; level.modversion_hud.horzAlign = "right"; level.modversion_hud.vertAlign = "top"; level.modversion_hud.alignX = "right"; level.modversion_hud.alignY = "middle"; level.modversion_hud.alpha = .5; level.modversion_hud.fontScale = 1.4; level.modversion_hud.hidewheninmenu = true; level.modversion_hud setText("^5MY_Mod");