Author Topic: Aspect ratios and HUDding  (Read 3783 times)

Meisseli

  • Spam Killer
  • *
  • Posts: 765
  • Turrets: +83/-25
Aspect ratios and HUDding
« on: November 29, 2010, 11:25:05 pm »
Hi,

Everything else is displayed correctly in my HUD in aspect ratios other than 4:3. However inventory, which scrolls vertically, isn't. aspectBias doesn't help much, since it only covers horizontal, and not vertical aligning. textvalign can be used to align vertically, but only with text. I've also tried modifying the rect values, with no luck whatsoever.

Is there a command I might've overlooked that can be used for vertical aligning?

Here's the inventory code, if it helps.
Code: [Select]
    //INVENTORY
    itemDef
    {
      name "inventory"
      rect 614 123 18 234
      aspectBias ALIGN_RIGHT
      visible MENU_TRUE
      decoration
      forecolor 0.9 1.0 0.9 1.0
      ownerdraw CG_PLAYER_SELECT
    }