hedgewars/uChat.pas
author unc0rr
Tue, 01 Jul 2008 15:52:10 +0000
changeset 1042 a0ca4b3d2782
parent 1038 3c843ce630ea
child 1066 1f1b3686a2b0
permissions -rw-r--r--
Fix resource compilation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     1
(*
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2008 Andrey Korotaev <unC0Rr@gmail.com>
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     4
 *
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     8
 *
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    12
 * GNU General Public License for more details.
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    13
 *
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    17
 *)
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    18
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    19
unit uChat;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    20
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    21
interface
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    22
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    23
procedure AddChatString(s: shortstring);
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    24
procedure DrawChat;
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    25
procedure KeyPressChat(Key: Longword);
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    26
949
866729775535 Use nick from frontend to prepend chat messages
unc0rr
parents: 948
diff changeset
    27
var UserNick: shortstring = '';
993
4319810f23c1 - Fix chat state at start
unc0rr
parents: 991
diff changeset
    28
	showAll: boolean = false;
949
866729775535 Use nick from frontend to prepend chat messages
unc0rr
parents: 948
diff changeset
    29
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    30
implementation
1035
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
    31
uses uMisc, uStore, uConsts, SDLh, uConsole, uKeys, uTeams;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    32
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    33
const MaxStrIndex = 27;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    34
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    35
type TChatLine = record
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    36
		s: shortstring;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    37
		Time: Longword;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    38
		Tex: PTexture;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    39
		end;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    40
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    41
var Strs: array[0 .. MaxStrIndex] of TChatLine;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    42
	lastStr: Longword = 0;
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    43
	visibleCount: Longword = 0;
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    44
	
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    45
	InputStr: TChatLine;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    46
	InputStrL: array[0..260] of char; // for full str + 4-byte utf-8 char
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    47
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    48
procedure SetLine(var cl: TChatLine; str: shortstring; isInput: boolean);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    49
var strSurface, resSurface: PSDL_Surface;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    50
    r: TSDL_Rect;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    51
    w, h: LongInt;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    52
begin
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    53
if cl.Tex <> nil then
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    54
	FreeTexture(cl.Tex);
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    55
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    56
cl.s:= str;
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    57
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    58
if isInput then str:= UserNick + '> ' + str + '_';
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    59
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    60
TTF_SizeUTF8(Fontz[fnt16].Handle, Str2PChar(str), w, h);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    61
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    62
resSurface:= SDL_CreateRGBSurface(0,
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    63
		toPowerOf2(w + 2),
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    64
		toPowerOf2(h + 2),
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    65
		32,
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    66
		RMask, GMask, BMask, AMask);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    67
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    68
strSurface:= TTF_RenderUTF8_Solid(Fontz[fnt16].Handle, Str2PChar(str), $202020);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    69
r.x:= 1;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    70
r.y:= 1;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    71
SDL_UpperBlit(strSurface, nil, resSurface, @r);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    72
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    73
strSurface:= TTF_RenderUTF8_Solid(Fontz[fnt16].Handle, Str2PChar(str), $FFFFFF);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    74
SDL_UpperBlit(strSurface, nil, resSurface, nil);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    75
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    76
SDL_FreeSurface(strSurface);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    77
984
dd5f16f69926 Kamikaze weapon
unc0rr
parents: 950
diff changeset
    78
cl.Time:= RealTicks + 12500;
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    79
cl.Tex:= Surface2Tex(resSurface);
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    80
SDL_FreeSurface(resSurface)
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    81
end;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    82
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    83
procedure AddChatString(s: shortstring);
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    84
begin
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    85
lastStr:= (lastStr + 1) mod (MaxStrIndex + 1);
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
    86
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    87
SetLine(Strs[lastStr], s, false);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    88
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    89
inc(visibleCount)
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    90
end;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    91
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    92
procedure DrawChat;
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    93
var i, t, cnt: Longword;
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
    94
begin
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    95
cnt:= 0;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    96
t:= 0;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
    97
i:= lastStr;
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    98
while
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
    99
	(
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   100
			((t < 7) and (Strs[i].Time > RealTicks))
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   101
		or
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   102
			((t < MaxStrIndex) and showAll)
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   103
	)
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   104
	and
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   105
		(Strs[i].Tex <> nil) do
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   106
	begin
988
cdff3f6f9b38 Get rid of old console
unc0rr
parents: 984
diff changeset
   107
	DrawTexture(8, (visibleCount - t) * 16 - 6, Strs[i].Tex);
945
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   108
	if i = 0 then i:= MaxStrIndex else dec(i);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   109
	inc(cnt);
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   110
	inc(t)
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   111
	end;
4ead9cde4e14 - Start chat implementation: chat strings are on the screen
unc0rr
parents: 942
diff changeset
   112
947
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   113
visibleCount:= cnt;
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   114
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   115
if (GameState = gsChat)
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   116
	and (InputStr.Tex <> nil) then
991
d17c71ee074e Enable history (bound on ` key)
unc0rr
parents: 990
diff changeset
   117
	DrawTexture(8, visibleCount * 16 + 10, InputStr.Tex);
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
   118
end;
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
   119
1033
622c5de38d72 Start implementing waves
unc0rr
parents: 1001
diff changeset
   120
procedure AcceptChatString(s: shortstring);
1035
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   121
var i: TWave;
1033
622c5de38d72 Start implementing waves
unc0rr
parents: 1001
diff changeset
   122
begin
1035
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   123
if s[1] = '/' then
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   124
	begin
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   125
	if CurrentTeam^.ExtDriven then exit;
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   126
	
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   127
	for i:= Low(TWave) to High(TWave) do
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   128
		if (s = Wavez[i].cmd) then
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   129
			begin
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   130
			ParseCommand('/taunt ' + char(i), true);
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   131
			exit
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   132
			end;
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   133
	end
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   134
	else
6f5842bc481b Hopefully done taunts implementation
unc0rr
parents: 1034
diff changeset
   135
		ParseCommand('/say ' + s, true);
1033
622c5de38d72 Start implementing waves
unc0rr
parents: 1001
diff changeset
   136
end;
622c5de38d72 Start implementing waves
unc0rr
parents: 1001
diff changeset
   137
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   138
procedure KeyPressChat(Key: Longword);
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   139
const firstByteMark: array[1..4] of byte = (0, $C0, $E0, $F0);
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   140
var i, btw: integer;
1001
502508979713 Fix warnings
unc0rr
parents: 993
diff changeset
   141
    utf8: shortstring;
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   142
begin
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   143
if Key <> 0 then
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   144
	case Key of
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   145
		8: if Length(InputStr.s) > 0 then
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   146
				begin
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   147
				InputStr.s[0]:= InputStrL[byte(InputStr.s[0])];
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   148
				SetLine(InputStr, InputStr.s, true)
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   149
				end;
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   150
		27: SetLine(InputStr, '', true);
948
5d49a92c240a Fix chat behavior
unc0rr
parents: 947
diff changeset
   151
		13, 271: begin
947
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   152
			if Length(InputStr.s) > 0 then
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   153
				begin
1033
622c5de38d72 Start implementing waves
unc0rr
parents: 1001
diff changeset
   154
				AcceptChatString(InputStr.s);
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   155
				SetLine(InputStr, '', false)
947
4e0c3ad89483 - 't' key for entering chat message
unc0rr
parents: 946
diff changeset
   156
				end;
948
5d49a92c240a Fix chat behavior
unc0rr
parents: 947
diff changeset
   157
			FreezeEnterKey;
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   158
			GameState:= gsGame
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   159
			end
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   160
	else
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   161
	if (Key < $80) then btw:= 1
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   162
	else if (Key < $800) then btw:= 2
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   163
	else if (Key < $10000) then btw:= 3
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   164
	else btw:= 4;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   165
	
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   166
	utf8:= '';
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   167
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   168
	for i:= btw downto 2 do
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   169
		begin
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   170
		utf8:= char((Key or $80) and $BF) + utf8;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   171
		Key:= Key shr 6
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   172
		end;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   173
	
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   174
	utf8:= char(Key or firstByteMark[btw]) + utf8;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   175
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   176
	InputStrL[byte(InputStr.s[0]) + btw]:= InputStr.s[0];
990
dfa6a6fe1542 Implement history for chat (27 entries), no key binding yet
unc0rr
parents: 988
diff changeset
   177
	SetLine(InputStr, InputStr.s + utf8, true)
946
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   178
	end
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   179
end;
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   180
42c5cc87cbd1 Preparing to have gsChat gamestate
unc0rr
parents: 945
diff changeset
   181
942
b41af014d85e Stub for chat implementation
unc0rr
parents:
diff changeset
   182
end.