aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/con_nprint.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/con_nprint.h')
-rw-r--r--mp/src/public/con_nprint.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/mp/src/public/con_nprint.h b/mp/src/public/con_nprint.h
new file mode 100644
index 00000000..85308844
--- /dev/null
+++ b/mp/src/public/con_nprint.h
@@ -0,0 +1,31 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Debug overlay / notfication printing
+//
+//=============================================================================//
+
+#ifndef CON_NPRINT_H
+#define CON_NPRINT_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+//-----------------------------------------------------------------------------
+// Purpose: Debug overlay / notfication printing
+// NOTE: Structure cannot be changed by mods
+//-----------------------------------------------------------------------------
+typedef struct con_nprint_s
+{
+ int index; // Row #
+ float time_to_live; // # of seconds before it disappears. -1 means to display for 1 frame then go away.
+ float color[ 3 ]; // RGB colors ( 0.0 -> 1.0 scale )
+ bool fixed_width_font;
+} con_nprint_t;
+
+// Print string on line idx
+void Con_NPrintf( int idx, PRINTF_FORMAT_STRING const char *fmt, ... );
+// Customized printout
+void Con_NXPrintf( const con_nprint_t *info, PRINTF_FORMAT_STRING const char *fmt, ... );
+
+#endif // CON_NPRINT_H