# HG changeset patch # User unc0rr # Date 1213220504 0 # Node ID d17c71ee074e802eac671befb06e59d5d20959a6 # Parent dfa6a6fe1542804442a4984e0a5a76abc443d48b Enable history (bound on ` key) diff -r dfa6a6fe1542 -r d17c71ee074e hedgewars/CCHandlers.inc --- 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; diff -r dfa6a6fe1542 -r d17c71ee074e hedgewars/uChat.pas --- 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); diff -r dfa6a6fe1542 -r d17c71ee074e hedgewars/uConsole.pas --- 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); diff -r dfa6a6fe1542 -r d17c71ee074e hedgewars/uKeys.pas --- 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';