Client: Add text.h, move some defs out of text.qc into it for global visibility sake

This commit is contained in:
Marco Cawthorne 2022-03-30 20:17:15 -07:00
parent e8de2b32bb
commit 27715fd1b6
Signed by: eukara
GPG key ID: C196CD8BA993248A
3 changed files with 16 additions and 16 deletions

View file

@ -14,6 +14,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "text.h"
#include "textmenu.h"
#include "efx.h"
#include "font.h"

15
src/client/text.h Normal file
View file

@ -0,0 +1,15 @@
typedef struct
{
string m_strMessage;
float m_flPosX;
float m_flPosY;
int m_iEffect;
vector m_vecColor1;
vector m_vecColor2;
float m_flFadeIn;
float m_flFadeOut;
float m_flHoldTime;
float m_flFXTime;
float m_flTime;
} gametext_t;
gametext_t g_textchannels[6];

View file

@ -14,22 +14,6 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
typedef struct
{
string m_strMessage;
float m_flPosX;
float m_flPosY;
int m_iEffect;
vector m_vecColor1;
vector m_vecColor2;
float m_flFadeIn;
float m_flFadeOut;
float m_flHoldTime;
float m_flFXTime;
float m_flTime;
} gametext_t;
gametext_t g_textchannels[6];
/* for effect 2 */
int
GameText_CharCount(float fadein, float timer, string msg)