NewHudT

From the Oblivion ConstructionSet Wiki
Revision as of 18:27, 24 November 2008 by imported>Haama (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Pluggy.

Syntax:

(HudID:long) NewHudT X:float Y:float Height:long Width:long L:long Scale:float Opacity:long Align:short AutoScale:bool Protected:bool EspID:long

Create a new Hud Text.


  • X and Y determine where the Hud is placed.
    • The position is the center of the image (i.e., X=0 and Y=0 and center alignment will center the image exactly, with the center of the image in the center of the screen).
    • The scale is a pixel - for a 1600x1200 resolution there are 1600 units for the X-axis and 1200 for the Y-axis.
    • The location is relative to the alignment. For instance, for a 1600x1200 resolution a center alignment would have coordinates from -800 to 800 (X) and -600 to 600 (Y) and a top-left alignment would have coordinates from 0 to 1600 (X) and 0 to 1200 (Y).
  • Height and Width determine the size of the background.
    • The scale is a pixel - for a 1600x1200 resolution there are 1600 units for the X-axis and 1200 for the Y-axis.
  • L is the "layer level" from 1 to 1000, 1000 being the "closest of the screen". It's mostly to be used when you want certain HudS to be on top on the others. 500 is assumed.
  • Scale is proportional to the original background.
  • Opacity is 0-100; 0 = transparent, 100 = opaque. 100 if assumed.
Alignment Codes
Add for combinations; i.e., Top-left would be 5, Center would be 15.
Top-Left is assumed.
  1:    Left
  2:    Right
  4:    Top
  8:    Bottom
  • AutoScale - if the user changes the game screen resolution between reloading the savegame, the Position and Scale of the HudS will be automatically adjusted so it will have the same proportional size and position than on the older screen resolution. AutoScale is assumed.
  • If EspID is not specified or is -1, then the EspID is automatically associated to the calling mod.
  • If Protected is not specified or is set to non-0, then the string will be write-protected from other mods, and only the associated mod will ever be able to modify the Hud. Setting Protected to 1 is recommended if you don’t want your Hud to be modified by another mod.
  • If the ESP file is not active upon reloading a savegame, all the associated Huds are destroyed when/if the player saves.