53class 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);
98class UIFloatingConsole :
public UIFloatingWindow
102 SafePtr<UIConsole> m_console;
103 consoleHandler_t m_handler;
105 UColor m_consoleBackground;
106 float m_consoleAlpha;
109 CLASS_PROTOTYPE(UIFloatingConsole);
112 ~UIFloatingConsole();
114 void FrameInitialized(
void)
override;
115 void OnChildSizeChanged(Event *ev);
116 void AddText(
const char *text,
const UColor *pColor);
117 void setConsoleHandler(consoleHandler_t handler);
119 void OnClosePressed(Event *ev);
120 void setConsoleBackground(
const UColor& color,
float alpha);
121 void setConsoleColor(
const UColor& color);
147class UIFloatingDMConsole :
public UIFloatingWindow
151 SafePtr<UIDMConsole> m_console;
152 consoleHandler_t m_handler;
154 UColor m_consoleBackground;
155 float m_consoleAlpha;
158 CLASS_PROTOTYPE(UIFloatingDMConsole);
160 UIFloatingDMConsole();
161 ~UIFloatingDMConsole();
163 void FrameInitialized(
void)
override;
164 void OnChildSizeChanged(Event *ev);
165 void AddText(
const char *text,
const UColor *pColor);
166 void AddDMMessageText(
const char *text,
const UColor *pColor);
167 void setConsoleHandler(consoleHandler_t handler);
169 void OnClosePressed(Event *ev);
170 void setConsoleBackground(
const UColor& color,
float alpha);
171 void setConsoleColor(
const UColor& color);
172 qboolean GetQuickMessageMode(
void);
173 void SetQuickMessageMode(qboolean bQuickMessage);
174 int GetMessageMode(
void);
175 void SetMessageMode(
int iMode);