ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:hud_library

This is an old revision of the document!


HUD Library

Pipeline

  1. If text message:
    1. Compute text-only flags (TextTypeOn, LogMessage, TextColorIsString, TextWordWrap)
    2. Call SetFont with current font (Font)
  2. If image message:
    1. Call SetFont with the chosen image
  3. Abort if scale is 0
  4. If 3D HudMessage:
    1. Rotate target point to camera space (Camera, Point3D)
    2. Abort if point is behind the camera
    3. Project the point on screen
    4. Compute scale factor from distance if this setting is enabled (AutoDistanceScale)
  5. Call SetHudSize to implement scaling (VirtualSize, Scale)
  6. Compute flags:
    1. Compute visibilty flags (ShowIn3DView, ShowOnFullAutomap, ShowOnOverlayAutomap)
    2. Compute blending flags (BlendStyle, Alpha)
    3. Compute alignment flags (Alignment)
  7. Finally call HudMessage or HudMessageBold (StayTime, AppearTime, DisappearTime)
new/hud_library.1519139849.txt.gz · Last modified: 2018/02/20 17:17 by korshun