@@ -25,7 +25,7 @@ class CChatLineSection;
2525class CColor
2626{
2727public:
28- CColor (void ) { R = G = B = A = 255 ; }
28+ CColor () { R = G = B = A = 255 ; }
2929 CColor (unsigned char _R, unsigned char _G, unsigned char _B, unsigned char _A = 255 )
3030 {
3131 R = _R;
@@ -66,8 +66,8 @@ class CChatLineSection
6666 CChatLineSection& operator =(const CChatLineSection& other);
6767
6868 void Draw (const CVector2D& vecPosition, unsigned char ucAlpha, bool bShadow, bool bOutline, const CRect2D& RenderBounds);
69- float GetWidth (void );
70- const char * GetText (void ) { return m_strText.c_str (); }
69+ float GetWidth ();
70+ const char * GetText () { return m_strText.c_str (); }
7171 void SetText (const char * szText) { m_strText = szText; }
7272 void GetColor (CColor& color) { color = m_Color; }
7373 void SetColor (const CColor& color) { m_Color = color; }
@@ -82,16 +82,16 @@ class CChatLineSection
8282class CChatLine
8383{
8484public:
85- CChatLine (void );
85+ CChatLine ();
8686
8787 virtual const char * Format (const char * szText, float fWidth , CColor& color, bool bColorCoded);
8888 virtual void Draw (const CVector2D& vecPosition, unsigned char ucAlpha, bool bShadow, bool bOutline, const CRect2D& RenderBounds);
89- virtual float GetWidth (void );
90- bool IsActive (void ) { return m_bActive; }
89+ virtual float GetWidth ();
90+ bool IsActive () { return m_bActive; }
9191 void SetActive (bool bActive) { m_bActive = bActive; }
9292
93- unsigned long GetCreationTime (void ) { return m_ulCreationTime; }
94- void UpdateCreationTime (void );
93+ unsigned long GetCreationTime () { return m_ulCreationTime; }
94+ void UpdateCreationTime ();
9595
9696protected:
9797 bool m_bActive;
@@ -103,7 +103,7 @@ class CChatInputLine : public CChatLine
103103{
104104public:
105105 void Draw (CVector2D& vecPosition, unsigned char ucAlpha, bool bShadow, bool bOutline);
106- void Clear (void );
106+ void Clear ();
107107
108108 CChatLineSection m_Prefix;
109109 std::vector<CChatLine> m_ExtraLines;
@@ -153,29 +153,29 @@ class CChat
153153 friend class CChatLineSection ;
154154
155155public:
156- CChat (void ){};
156+ CChat (){};
157157 CChat (CGUI* pManager, const CVector2D& vecPosition);
158158 virtual ~CChat ();
159159
160160 virtual void Draw (bool bUseCacheTexture, bool bAllowOutline);
161161 virtual void Output (const char * szText, bool bColorCoded = true );
162- void Clear (void );
163- void ClearInput (void );
162+ void Clear ();
163+ void ClearInput ();
164164 bool CharacterKeyHandler (CGUIKeyEventArgs KeyboardArgs);
165165 void SetDxFont (LPD3DXFONT pDXFont);
166166
167- bool IsVisible (void ) { return m_bVisible; }
167+ bool IsVisible () { return m_bVisible; }
168168 void SetVisible (bool bVisible);
169- bool IsInputVisible (void ) { return m_bVisible && m_bInputVisible; }
169+ bool IsInputVisible () { return m_bVisible && m_bInputVisible; }
170170 void SetInputVisible (bool bVisible);
171171
172- const char * GetInputPrefix (void );
172+ const char * GetInputPrefix ();
173173 void SetInputPrefix (const char * szPrefix);
174- const char * GetInputText (void ) { return m_strInputText.c_str (); }
174+ const char * GetInputText () { return m_strInputText.c_str (); }
175175 void SetInputText (const char * szText);
176- const char * GetCommand (void ) { return m_strCommand.c_str (); }
176+ const char * GetCommand () { return m_strCommand.c_str (); }
177177 void SetCommand (const char * szCommand);
178- CVector2D CalcInputSize (void );
178+ CVector2D CalcInputSize ();
179179
180180 static float GetFontHeight (float fScale = 1 .0f );
181181 static float GetTextExtent (const char * szText, float fScale = 1 .0f );
@@ -188,19 +188,19 @@ class CChat
188188 void SetNumLines (unsigned int uiNumLines);
189189
190190 void Scroll (int iState) { m_iScrollState = iState; };
191- void ScrollUp (void );
192- void ScrollDown (void );
191+ void ScrollUp ();
192+ void ScrollDown ();
193193
194194 void SetChatFont (eChatFont Font);
195- void OnModLoad (void );
195+ void OnModLoad ();
196196
197197private:
198- void LoadCVars (void );
198+ void LoadCVars ();
199199
200200protected:
201- virtual void UpdatePosition (void );
201+ virtual void UpdatePosition ();
202202
203- void UpdateGUI (void );
203+ void UpdateGUI ();
204204 void UpdateSmoothScroll (float * pfPixelScroll, int * piLineScroll);
205205 void DrawDrawList (const SDrawList& drawList, const CVector2D& topLeftOffset = CVector2D(0 , 0 ));
206206 void GetDrawList (SDrawList& outDrawList, bool bUsingOutline);
0 commit comments