mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
throw this in cvs for now. it's not used at all, and I don't know if I plan
on using it.
This commit is contained in:
parent
cc84828647
commit
bd106d79f1
1 changed files with 90 additions and 0 deletions
90
cs-code/console.qc
Normal file
90
cs-code/console.qc
Normal file
|
@ -0,0 +1,90 @@
|
|||
#define NUM_CON_TIMES 4
|
||||
float [NUM_CON_TIMES] con_times;
|
||||
|
||||
integer con_state;
|
||||
integer [5] key_focus;
|
||||
integer force_console;
|
||||
string status_bar;
|
||||
|
||||
void ()
|
||||
Con_ClearNotify =
|
||||
{
|
||||
local integer i;
|
||||
|
||||
for (i = 0; i < NUM_CON_TIMES; i++)
|
||||
con_times[i] = 0;
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_ToggleConsole_f =
|
||||
{
|
||||
if (force_console)
|
||||
con_state = 1;
|
||||
else
|
||||
con_state ^= 1;
|
||||
Key_SetFocus (key_focus[con_state]);
|
||||
Con_ClearNotify ();
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_ToggleChat_f =
|
||||
{
|
||||
if (force_console)
|
||||
con_state = 1;
|
||||
else
|
||||
con_state ^= 2;
|
||||
Key_SetFocus (key_focus[con_state]);
|
||||
Con_ClearNotify ();
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_Clear_f =
|
||||
{
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_MessageMode_f =
|
||||
{
|
||||
if (force_console)
|
||||
return;
|
||||
chat_team = false;
|
||||
Key_SetFocus (key_focus[4]);
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_MessageMode2_f =
|
||||
{
|
||||
if (force_console)
|
||||
return;
|
||||
chat_team = true;
|
||||
Key_SetFocus (key_focus[4]);
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_Resize =
|
||||
{
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_DrawInput =
|
||||
{
|
||||
};
|
||||
|
||||
void ()
|
||||
Con_DrawNotify =
|
||||
{
|
||||
};
|
||||
|
||||
void (integer lines)
|
||||
Con_DrawConsole =
|
||||
{
|
||||
};
|
||||
|
||||
void (integer lines)
|
||||
Con_DrawDownload =
|
||||
{
|
||||
strset (bar, 0, '\x80');
|
||||
strfill (bar, 1, con_linewidth - 2, '\x81');
|
||||
strset (bar, 0, '\x80');
|
||||
strset (bar, con_linewidth - 1, '\x82');
|
||||
};
|
Loading…
Reference in a new issue