54class UIConsole :
public UIWidget {
57 void *m_historyposition;
58 item m_items[MAX_CONSOLE_ITEMS];
64 str m_completionbuffer;
65 bool m_refreshcompletionbuffer;
68 consoleHandler_t m_consolehandler;
71 CLASS_PROTOTYPE( UIConsole );
74 int getFirstItem(
void );
75 int getNextItem(
int prev );
76 int getLastItem(
void );
78 void DrawBottomLine(
void );
79 void AddHistory(
void );
81 virtual void Print(
Event *ev );
82 virtual void KeyEnter(
void );
87 void setConsoleHandler( consoleHandler_t handler );
88 void AddText(
const char *text,
const UColor *pColor );
89 void CalcLineBreaks(
item& theItem );
91 void FrameInitialized(
void )
override;
92 void Draw(
void )
override;
93 void CharEvent(
int ch )
override;
94 qboolean KeyEvent(
int key,
unsigned int time )
override;
95 void OnSizeChanged(
Event *ev );
145class UIFloatingDMConsole :
public UIFloatingWindow {
149 consoleHandler_t m_handler;
151 UColor m_consoleBackground;
152 float m_consoleAlpha;
155 CLASS_PROTOTYPE( UIFloatingDMConsole );
157 UIFloatingDMConsole();
158 ~UIFloatingDMConsole();
160 void FrameInitialized(
void )
override;
161 void OnChildSizeChanged(
Event *ev );
162 void AddText(
const char *text,
const UColor *pColor );
163 void AddDMMessageText(
const char *text,
const UColor *pColor );
164 void setConsoleHandler( consoleHandler_t handler );
166 void OnClosePressed(
Event *ev );
167 void setConsoleBackground(
const UColor& color,
float alpha );
168 void setConsoleColor(
const UColor& color );
169 qboolean GetQuickMessageMode(
void );
170 void SetQuickMessageMode( qboolean bQuickMessage );
171 int GetMessageMode(
void );
172 void SetMessageMode(
int iMode );