SetHudT

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

A command for Pluggy.

Syntax:

SetHudT HudID:long Text:stringID FontName:stringID  Show:short FontHeight:long FontWidth:long FontWeight:long Italic:bool R:long G:long B:long Format:short Global:bool

Sets up the Hud Text.


Show Codes
Add for combinations; i.e., GameMode+MenuMode is 11 (1 + 2 + 8)
GameMode is assumed.
  0:    Hidden
  1:    GameMode only (all menus closed, console closed)
  2:    MenuMode only (a menu open, console closed)
  4:    Console only (from GameMode or MenuMode)
  8:    Disable the "only" behaviour - this is necessary for any combination of GameMode, MenuMode, and console
  16:   Always display under Oblivion menus and huds (i.e., compass)
  • If showing in MenuMode, there are some menus in particular that shouldn't be covered up: 1007 (Loading), 1013 (Pause), 1015 (Options), 1017 (Audio), 1018 (Video), 1019 (Video Display), 1020 (Gameplay), 1021 (Controls), 1038 (Load), 1039 (Save), 1044 (Main), 1047 (Credits)
  • Font name is a string that takes a font from the WINDOWS font directory (with no ttf extension, i.e., "Tahoma")
  • FontWidth = 0 means the default width corresponding to provided Height
  • FontWeight = Bold level, 0 = none, else must be between 1 and 1000
Format codes
Add for combinations
  1: Displays the text on a single line, regardless of line breaks or carriage returns.
  2: Centers the text in the rectangle.
  4: Aligns the text to the left side of the rectangle.
  8: Aligns the text to the right side of the rectangle.
  16: Justifies the text to the top of the rectangle.
  32: Justifies the text to the bottom of the rectangle. It only works when combined with 1
  64: Justifies the text in the center of the rectangle. It only works on single lines.
  128: Lines are automatically broken between words when text reaches the end of a rectangle, thus adding an additional line