mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
see: http://www.bears-pit.com/board/ubbthreads.php/topics/172712/16/Code_Snippets.html 1) ENEMY_HIT_COUNT in ja2_options.ini accepts 2 new parameters: 3 - show damage as white asterisks 4 - show damage as red asterisks Number of asterisks is scaled (maximum 5): >0, >10, >30, >60, >100 2) Suppression tactical tooltip now shows suppression points from last attacks. Previously it was always = 0 because ubSuppressionPoints value is cleared after each attack. 3) It is now possible to show suppression values above soldier, just as hit count. There are new options in ja2_options.ini Possible values: 0 - do not show 1 - show on moving hit counter 2 - show above soldier The values are color coded: Suppression is light gray Shock is yellow AP loss is blue Morale hit is green SHOW_SUPPRESSION_COUNT = 0 SHOW_SHOCK_COUNT = 0 SHOW_AP_COUNT = 0 SHOW_MORALE_COUNT = 0 This option defines if values are shown as numbers or asterisks (1..5, using scale) SHOW_SUPPRESSION_USE_ASTERISK = FALSE This option defines if only 1 asterisk is shown or several (1..5) to represent value SHOW_SUPPRESSION_SCALE_ASTERISK = TRUE Show suppression above soldier during enemy attack. All other values are shown after attack, when HandleSuppressionFire function is calculated. SHOW_SUPPRESSION_COUNT_ALT = TRUE git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6689 3b4a5df2-a311-0410-b5c6-a8a6f20db521
65 lines
1.9 KiB
C
65 lines
1.9 KiB
C
#ifndef __INTERFACE_CONTROL_H
|
|
#define __INTERFACE_CONTROL_H
|
|
|
|
|
|
#define INTERFACE_MAPSCREEN 0x00000001
|
|
#define INTERFACE_NORENDERBUTTONS 0x00000002
|
|
#define INTERFACE_LOCKEDLEVEL1 0x00000004
|
|
#define INTERFACE_SHOPKEEP_INTERFACE 0x00000008
|
|
|
|
extern UINT32 guiTacticalInterfaceFlags;
|
|
|
|
|
|
void SetTacticalInterfaceFlags( UINT32 uiFlags );
|
|
|
|
void SetUpInterface( );
|
|
void ResetInterface( );
|
|
void RenderTopmostTacticalInterface( );
|
|
void RenderTacticalInterface( );
|
|
|
|
// Flugente: handle flashlights
|
|
void HandleFlashLights();
|
|
|
|
void StartViewportOverlays( );
|
|
void EndViewportOverlays( );
|
|
|
|
void LockTacticalInterface( );
|
|
void UnLockTacticalInterface( );
|
|
|
|
void RenderTacticalInterfaceWhileScrolling( );
|
|
|
|
void EraseInterfaceMenus( BOOLEAN fIgnoreUIUnLock );
|
|
|
|
// handle paused render of tactical panel, if flag set, OR it in with tactical render flags
|
|
// then reset
|
|
void HandlePausedTacticalRender( void );
|
|
|
|
void ResetInterfaceAndUI( );
|
|
|
|
BOOLEAN AreWeInAUIMenu( );
|
|
|
|
void HandleTacticalPanelSwitch( );
|
|
|
|
BOOLEAN InterfaceOKForMeanwhilePopup();
|
|
|
|
// sevenfm: these values are used to calculate scale for displaying values as asterisks (no more than 5 asterisks for any value)
|
|
enum{
|
|
PRINT_SCALE_PLAIN_NUMBER,
|
|
PRINT_SCALE_ASTERISK,
|
|
PRINT_SCALE_ASTERISK_SUPPRESSION,
|
|
PRINT_SCALE_ASTERISK_DAMAGE,
|
|
PRINT_SCALE_ASTERISK_MORALE,
|
|
PRINT_SCALE_ASTERISK_AP,
|
|
PRINT_SCALE_ASTERISK_SHOCK,
|
|
};
|
|
|
|
UINT8 CalcScaleSuppression( INT16 data );
|
|
UINT8 CalcScaleDamage( INT16 data );
|
|
UINT8 CalcScaleMorale( INT16 data );
|
|
UINT8 CalcScaleAP( INT16 data );
|
|
UINT8 CalcScaleShock( INT16 data );
|
|
|
|
// print counter as number or asterisks ( applying provided scale when displaying asterisks )
|
|
// width is updated as X offset after printing
|
|
void PrintSuppressionCounter( INT16 x, INT16 y, INT16 data, UINT16 &width, UINT8 ubForegound, UINT8 scale = PRINT_SCALE_PLAIN_NUMBER );
|
|
#endif |