Enable history (bound on ` key)
authorunc0rr
Wed, 11 Jun 2008 21:41:44 +0000
changeset 991 d17c71ee074e
parent 990 dfa6a6fe1542
child 992 c16355b0c982
Enable history (bound on ` key)
hedgewars/CCHandlers.inc
hedgewars/uChat.pas
hedgewars/uConsole.pas
hedgewars/uKeys.pas
--- a/hedgewars/CCHandlers.inc	Wed Jun 11 21:00:58 2008 +0000
+++ b/hedgewars/CCHandlers.inc	Wed Jun 11 21:41:44 2008 +0000
@@ -529,3 +529,8 @@
 GameState:= gsChat;
 KeyPressChat(27)
 end;
+
+procedure chHistory(var s: shortstring);
+begin
+uChat.showAll:= not uChat.showAll
+end;
--- a/hedgewars/uChat.pas	Wed Jun 11 21:00:58 2008 +0000
+++ b/hedgewars/uChat.pas	Wed Jun 11 21:41:44 2008 +0000
@@ -114,7 +114,7 @@
 
 if (GameState = gsChat)
 	and (InputStr.Tex <> nil) then
-	DrawTexture(11, visibleCount * 16 + 10, InputStr.Tex);
+	DrawTexture(8, visibleCount * 16 + 10, InputStr.Tex);
 end;
 
 procedure KeyPressChat(Key: Longword);
--- a/hedgewars/uConsole.pas	Wed Jun 11 21:00:58 2008 +0000
+++ b/hedgewars/uConsole.pas	Wed Jun 11 21:41:44 2008 +0000
@@ -242,6 +242,7 @@
 RegisterVariable('+speedup', vtCommand, @chSpeedup_p    , true );
 RegisterVariable('-speedup', vtCommand, @chSpeedup_m    , true );
 RegisterVariable('skip'    , vtCommand, @chSkip         , false);
+RegisterVariable('history' , vtCommand, @chHistory      , true );
 RegisterVariable('chat'    , vtCommand, @chChat         , true );
 RegisterVariable('say'     , vtCommand, @chSay          , true );
 RegisterVariable('ammomenu', vtCommand, @chAmmoMenu     , false);
--- a/hedgewars/uKeys.pas	Wed Jun 11 21:00:58 2008 +0000
+++ b/hedgewars/uKeys.pas	Wed Jun 11 21:41:44 2008 +0000
@@ -115,6 +115,7 @@
 DefaultBinds[ 27]:= 'quit';
 DefaultBinds[ 48]:= '+volup';
 DefaultBinds[ 57]:= '+voldown';
+DefaultBinds[ 96]:= 'history';
 DefaultBinds[ 99]:= 'capture';
 DefaultBinds[102]:= 'fullscr';
 DefaultBinds[104]:= 'findhh';