Tremulous Forum

Mods => Mod Releases => HUDs => Topic started by: GeneralScott on October 31, 2010, 01:06:37 AM

Title: Couple Newbie HUD making questions
Post by: GeneralScott on October 31, 2010, 01:06:37 AM
Hi people! I was just screwing with Superpie's 1.2 HUD just now and I've isolated a list of a couple things that I don't know how to do and can't figure out.
1) - How do you rotate HUD components?
2) - Is there any easy way to find coordinates of places on the screen, or is it just trial and error?
3) - <I'll find something soon>

Thanks
Title: Re: Couple Newbie HUD making questions
Post by: Meisseli on October 31, 2010, 12:42:25 PM
1) I think you can't really rotate items properly but you can experiment with

align ITEM_ALIGN_RIGHT
align ITEM_ALIGN_LEFT
align ITEM_ALIGN_CENTER


where applicable (health bars, for example). Also just switching the last two rect numbers, for example

Quote//INVENTORY
   itemDef
   {
     name "inventory"
     rect 158.5 425 325 25
     visible 1
     decoration
     forecolor 1 1 1 .6
     ownerdraw CG_PLAYER_SELECT
   }

Quote//INVENTORY
   itemDef
   {
     name "inventory"
     rect 158.5 425 25 325
     visible 1
     decoration
     forecolor 1 1 1 .6
     ownerdraw CG_PLAYER_SELECT
   }

works in some items.

2) I think this is correct.
Quote from: UniqPhoeniX on October 16, 2010, 02:58:14 PM
The way I understand it is: x and y values in rect are from "0 0" (for top left corner) to "640 480" (bottom right), which is then scaled to match your screen resolution. The other 2 values are width and height, from the point defined by x and y towards bottom right corner.