summaryrefslogtreecommitdiff
path: root/console.c
AgeCommit message (Collapse)Author
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-17(svn r1883) -Fix: [1109400] Better test if a string actually contains any ↵tron
console command
2005-01-31(svn r1747) - Fix: [network] ottd should compile when networking is disabled.darkvater
- Change: change strgen project file to get rid of warning.
2005-01-30(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled ↵darkvater
when it was out of focus (dominik)
2005-01-23(svn r1628) -Fix: [1107893] script command; log file pointer was not reset ↵darkvater
to NULL after logging was closed
2005-01-23(svn r1610) Remove trailing whitespace (last time ever, i hope)tron
2005-01-22(svn r1596) Add some more staticstron
2005-01-16(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), ↵darkvater
is now functioning correctly. There is no other way but to create a new thread, but that's only MS braindeadness -Fix: [1103113] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts -Fix: [1103069] console backspace key with ded server; fixed due to normal console handling -Fix: [1101963] console in dedicated server; see above -Fix: dedicated server also writes to log file if active
2005-01-15(svn r1527) -Add: RCon (Remote Connection). A server can set:truelight
'set rcon_pw <password>' Which enables rcon. A client can now do: 'rcon <password> "<command>"' The command will be executed on the server. (guru3) -Fix: 'kick 1' did crash dedicated servers -Fix: server password is now correctly saved !!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-14(svn r1507) Remove unreachable codetron
2005-01-11(svn r1484) -Fix: [1099197] scrolling through console sometimes crashed the ↵darkvater
whole game. Also added MarkWholeScreenDirty() to have redrawing of console resize instant (sign_de)
2005-01-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-08(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)darkvater
2004-12-15(svn r1110) -Fix: Empty console commands were executed and returned error ↵darkvater
message (sign_de for GeniusDex)
2004-12-15(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. ↵darkvater
Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-14(svn r1090) -Fix: Made the _openttd_revision variable global, and with that truelight
hopefully killed the windows-revision problem. If WITH_REV is defined, for both Windows as *nix system _openttd_revision is filled with normal info, else _openttd_revision is set to 'norev000' -Fix: Small possible server-crash
2004-12-14(svn r1083) Fix: the console "script" command saves all output to the ↵dominik
textfile, not only printf stuff (sign_de)
2004-12-13(svn r1077) Implements scripts/autoexec.scr to get executed on game starting ↵dominik
(sign_de) - %! allows to merge alias parameters - \% allows to use % in alias strings - "alias" command now overwrites the old alias list entry
2004-12-13(svn r1073) - condebugger extended a bit [shows the commandline] (sign_de)dominik
- fixed handling of aliases with parameters (sign_de)
2004-12-13(svn r1065) -Add: [Console] Alias support. Type 'list_aliases' to show them ↵truelight
all (sign_de)
2004-12-13(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows ↵truelight
(somehow windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-05(svn r954) -Fix: [Console] Hook fixes (sign_de)truelight
-Add: [Console] Auto sort commands and variables (sign_de)
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-11-27(svn r843) Remove redundant variable assignments and function callstron
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-09-21(svn r307) -Fix: Several potential buffer-overflow fixes, and removal of ↵darkvater
'magic-numbers' in favour of constants. (Tron)
2004-09-19(svn r295) -Fix: Rewrite and fix of console stuff, including marking (XXX) ↵darkvater
of areas that require further investigation (Tron) -Note: booby trapped some suspicous assignments (Tron)
2004-09-17(svn r280) -Fix: ^M removement in console.csignde
2004-09-17(svn r279) -Feature: [WIN32] Console now allows to paste data from the ↵signde
clipboard [ctrl + v]
2004-09-14(svn r249) -Fix: warning fix in console.c/h (Tron)truelight
2004-09-14(svn r248) -Feature: console script files "exec myscript.file"darkvater
-Feature: console logging (of debug messages with *developer = 2 and debug_level #) to text-files "script test.txt" -Feature: server and client are auto-executing "on_server.scr" and "on_client.scr" scripts
2004-09-13(svn r230) -Feature: IConsoleWarning for warning messagessignde
-Feature: added info_cmd command -Codechange: renamed "varinfo" to "info_var" -Fix: some const fixes in console.h -Fix: fixed return value of IConsoleCmdGet
2004-09-12(svn r229) -Fix: Some more const stuff fixed .(Tron)darkvater
-Fix: ParseConnectionString() function to parse network connection string: <IP>[:<PORT>][#<PLAY_AS] .
2004-09-12(svn r227) -Fix: Sorry, broke console commandsdarkvater
2004-09-12(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now ↵darkvater
default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
2004-09-12(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron ↵darkvater
for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
2004-09-12(svn r221) -Feature: console command and variable hookingsignde
-Fix: added another network.c stub -Consolecommand: "scrollto <tile>" center main view on <tile> [Darkvater] -Consolecommand: "resettile <tile>" force bulldoze <tile> without any checks (DEBUG only) [Darkvater] -Fix: resetengines is hooked to be not available in network games -Codechange: "connect <connectstr>": the connect command now uses a connectionstring like the network-gui -Fix: Direct Connect editbox can handle up to max ~35 characters [Darkvater]
2004-09-12(svn r210) -Fix: Console key closes window in frontsignde
-Fix: Console events were processed in wrong window -Fix: Console unresponsive when you activated another window
2004-09-11(svn r206) -Fix: [1001540] i lost all wagons. Half-assed fix for lost ↵darkvater
wagons. But now users can at least fix this problem. Consolecommand: "resetengines"
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-09-07(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)darkvater
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
2004-09-06(svn r170) -Fix: [1022902] network fix .. console fix bug [1018523]. Fixes ↵darkvater
some variable initialization errors and a console.h warning (sign_de)
2004-08-25(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable ↵darkvater
references and has a new commandline buffer (sign_de)
2004-08-25(svn r137) Fix: console sometime didn't open (sign_de)dominik
2004-08-24(svn r136) -Feature/Fix: Console Rev #2 and WKC_BACKQUOTE this patch adds ↵darkvater
new features to the ingame console and inserts a new keymanagement for windows pcs... (sign_de)
2004-08-24(svn r130) Change: hotkey for console is Backquote (the key left to '1', ↵dominik
regardless of keyboard layout
2004-08-24(svn r127) New feature: ingame console. (sign_de)dominik
Press tab to open the console, more info in docs/console.txt