aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/localchatwriter.h
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-19 19:32:16 +0100
committerGitHub <noreply@github.com>2022-12-19 19:32:16 +0100
commite04f3b36accccb590a2d51b4829256b9964ac3fd (patch)
tree20ee30c82e6f53e6e772be2e1b9613eebca12bf3 /NorthstarDLL/localchatwriter.h
parent33f18a735986dcd136bf8ba70ad8331306c28227 (diff)
downloadNorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.tar.gz
NorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.zip
Restructuring (#365)
* Remove launcher proxy * Restructuring * More restructuring * Fix include dirs * Fix merge * Remove clang thing * Filters * Oops
Diffstat (limited to 'NorthstarDLL/localchatwriter.h')
-rw-r--r--NorthstarDLL/localchatwriter.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/NorthstarDLL/localchatwriter.h b/NorthstarDLL/localchatwriter.h
deleted file mode 100644
index 0df0cac8..00000000
--- a/NorthstarDLL/localchatwriter.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#pragma once
-#include "pch.h"
-#include "color.h"
-
-class vgui_BaseRichText;
-
-class CHudChat
-{
- public:
- static CHudChat** allHuds;
-
- char unknown1[720];
-
- Color m_sameTeamColor;
- Color m_enemyTeamColor;
- Color m_mainTextColor;
- Color m_networkNameColor;
-
- char unknown2[12];
-
- int m_unknownContext;
-
- char unknown3[8];
-
- vgui_BaseRichText* m_richText;
-
- CHudChat* next;
- CHudChat* previous;
-};
-
-class LocalChatWriter
-{
- public:
- enum Context
- {
- NetworkContext = 0,
- GameContext = 1
- };
- enum SwatchColor
- {
- MainTextColor,
- SameTeamNameColor,
- EnemyTeamNameColor,
- NetworkNameColor
- };
-
- explicit LocalChatWriter(Context context);
-
- // Custom chat writing with ANSI escape codes
- void Write(const char* str);
- void WriteLine(const char* str);
-
- // Low-level RichText access
- void InsertChar(wchar_t ch);
- void InsertText(const char* str);
- void InsertText(const wchar_t* str);
- void InsertColorChange(Color color);
- void InsertSwatchColorChange(SwatchColor color);
-
- private:
- Context m_context;
-
- const char* ApplyAnsiEscape(const char* escape);
- void InsertDefaultFade();
-};