ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:hud_library

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
new:hud_library [2018/02/20 17:17] – created korshunnew:hud_library [2018/02/20 18:16] (current) korshun
Line 3: Line 3:
 ===== Pipeline ===== ===== Pipeline =====
  
-  - If text message: +  - Call [[zdoom>SetFont]]
-    - Compute text-only flags (''TextTypeOn'', ''LogMessage'', ''TextColorIsString'', ''TextWordWrap'')  +    - If text message: call SetFont with current font 
-    - Call [[zdoom>SetFont]] with current font (''Font'') +    - If image message: call SetFont with the chosen image
-  - If image message: +
-    - Call [[zdoom>SetFont]] with the chosen image +
-  - Abort if scale is 0+
   - If 3D HudMessage:   - If 3D HudMessage:
-    - Rotate target point to camera space (''Camera'', ''Point3D''+    - Project target point onto the screen 
-    - Abort if point is behind the camera +    - Compute scale factor from distance if ''AutoDistanceScale'' is enabled 
-    - Project the point on screen +  - Call [[zdoom>SetHudSize]] to scale the message, taking ''VirtualSize'' and ''Scale'' into account 
-    - Compute scale factor from distance if this setting is enabled (''AutoDistanceScale'') +  - Finally call [[zdoom>HudMessage]] or [[zdoom>HudMessageBold]] 
-  - Call [[zdoom>SetHudSize]] to implement scaling (''VirtualSize''''Scale'') + 
-  - Compute flags+===== Settings ===== 
-    Compute visibilty flags (''ShowIn3DView'', ''ShowOnFullAutomap'', ''ShowOnOverlayAutomap'') + 
-    Compute blending flags (''BlendStyle'', ''Alpha'') +General settings
-    Compute alignment flags (''Alignment'') +  * [[HUD coordinate system]] size -- ''HudSetVirtualSize(fixed widthfixed height)'' 
-  - Finally call [[zdoom>HudMessage]] or [[zdoom>HudMessageBold]] (''StayTime''''AppearTime''''DisappearTime'')+  * Position -- ''HudSetPoint(fixed xfixed y)'' 
 +  * Scale -- ''HudSetScale(fixed scale)'' 
 +  *  
 +Text-only settings: 
 +  * Font -- ''HudSetFont(str fontname)'' 
 +  * Text color -- ''HudSetTextColor(int color)'' or ''HudSetTextColorString(str colorname)'' 
 +  * Type-on mode -- ''HudSetTextTypeOn(bool enabled)'' 
 + 
new/hud_library.txt · Last modified: 2018/02/20 18:16 by korshun