Using different shapes in HUDS.

Hello, Ive seen HUDS before that use custom shapes or diagonal rectangles like so: http://i.imgur.com/EbLBENL.jpg

How can I achieve this? Im not sure how?

Creating huds: https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/proper_hud_creation.lua.html

Creating shapes with poly ( just like connect the dots ): https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/creating_shapes_using_poly.lua.html

Tilted rectangle as healthbar ( read original thread and compare vs code in tutorial to learn about simplifying problems ): https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/tilted_rectangle_poly_as_health_meter.lua.html

Another tilted: https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/another_tilted_health_bar.lua.html

Circles: https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/simplified_circles_with_poly.lua.html

If you see some of my tutorials, you’ll see that polys are generated OUTSIDE of HUDPaint. Instead of re-creating the poly each and every frame, you can generate it ONCE and update it when the player resolution changes.

Here’s an example of how to create a hook ( this one works ) to call PlayerChangedResolution with new/old width/height vars: https://dl.dropboxusercontent.com/u/26074909/tutoring/_hooks/acecool_hook_playerchangedresolution/gm_playerchangedresolution.lua

Example usage: https://dl.dropboxusercontent.com/u/26074909/tutoring/_hooks/acecool_hook_playerchangedresolution/example_usage.lua

Hopefully these tutorials and information helps. As always, to view the Lua from any of my tutorials to enable copy/pasting ( HTML doesn’t copy/paste well in terms of HTML / CSS Highlighted Lua ), remove .html from the url.