tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
54cbd01825
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
Darkvater
09195e0bda
(svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions.
2005-07-17 19:38:40 +00:00
Darkvater
6a91b08cad
(svn r2610) - Feature: set server map name to the loaded name of the game/scenario. Also truncate where neccessary
...
- Feature: truncate the path of the saveload window
2005-07-17 16:01:26 +00:00
ludde
bb82f5e5d4
(svn r2581) Fix: Behave a bit safer if central server sends bogus information about clients.
...
Change: Made code a little bit more readable by putting _selected_item in a local var with a shorter name.
2005-07-15 18:43:39 +00:00
ludde
6246619185
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system.
...
Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
2005-07-15 15:09:52 +00:00
ludde
8086017097
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
...
Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-14 09:43:59 +00:00
Darkvater
871e21e991
(svn r2422) - Codechange: magic number fix in network window (anonymous)
2005-06-06 14:11:15 +00:00
tron
1273f21ff5
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
2005-06-04 07:35:12 +00:00
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
2005-06-02 19:30:21 +00:00
Darkvater
f4f5cb93f8
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
...
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-30 22:16:05 +00:00
Darkvater
b51c190546
(svn r2348) - Fix: Do not scroll the game with the arrow keys when the chatbox is open
2005-05-17 23:25:18 +00:00
Darkvater
ddd4958164
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
...
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
2005-05-12 23:46:01 +00:00
Darkvater
eb4233e8e9
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
...
- CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands.
- CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP.
- CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
2005-05-12 00:18:30 +00:00
Darkvater
6e9ef3e30a
(svn r2252) - ReFix: Redo r2251. Just remove the 'default widget handler', WDF_STD_BTN, instead of doing the "workaround" of the previous commit
2005-05-02 18:22:16 +00:00
Darkvater
5ee09dd208
(svn r2251) - Fix: [ 1193945 ] Clicking on the chat text box causes an assertion failure
2005-05-02 18:08:34 +00:00
Darkvater
f208f5fa10
(svn r2157) - Feature (request): [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu
...
- Feature: If the to be started server is using a password, draw a red '*' after the set password button to remind the user.
2005-04-06 18:44:34 +00:00
darkvater
648fa7c97d
(svn r2152) - Fix: Chatbar in MP games is now on-top of the news window.
...
- CodeChange: Introduction of SendWindowMessage() where a window can send another window a message (ala windows style msg, wparam, lparam). Messages can be sent by windowclass and by windowpointer.
- CodeChange: IsVitalWindow() simplifies a lot of checks for window handling that need to know what windows it can close, or be on top of, etc.
2005-04-05 21:03:30 +00:00
Darkvater
fb78ca8a62
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified 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-21 18:59:54 +00:00
tron
830565514c
(svn r1867) Include tables/sprites.h only in files which need it
2005-02-13 11:18:02 +00:00
tron
76325c2bb2
(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
...
Remove it from the chat box too, which inherited it via copy&paste.
2005-02-08 16:37:28 +00:00
tron
6984d6cd31
(svn r1832) Next byte -> char iteration: custom names
2005-02-06 20:53:31 +00:00
tron
c644e6b742
(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers
2005-02-06 18:30:45 +00:00
tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
tron
d3f84347ac
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
2005-02-06 08:18:00 +00:00
tron
12183084b7
(svn r1808) Use strcmp() instead of home brewed function str_eq()
2005-02-05 22:50:33 +00:00
truelight
5e8a669cba
(svn r1643) -Fix: [ 1108547 ] You can now change the server-password via the GUI again
2005-01-24 20:25:52 +00:00
dominik
c857bfa12a
(svn r1611) Display server port in the multiplayer game info window
...
I had to make the multiplayer window 10 pixels wider for this
2005-01-23 13:19:15 +00:00
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
2005-01-22 20:23:18 +00:00
darkvater
561ceeba0c
(svn r1526) -Fix: [1103027] Minor changes for the lobby GUI (widen window) (bociusz)
2005-01-15 19:17:45 +00:00
tron
dd6db73069
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
2005-01-15 08:58:31 +00:00
truelight
b33df5936f
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
...
- Added green dot if company income is positive (else red dot)
- Added lock icon if company is password protected
2005-01-14 21:47:35 +00:00
tron
589215c822
(svn r1508) Remove duplicate declarations and include proper headers where necessary
2005-01-14 19:41:24 +00:00
darkvater
2257e03c33
(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in player_gui.c ^ should've been &
...
-Fix: in multiplayer clientlist can only be opened once
2005-01-13 20:46:39 +00:00
darkvater
2d023f9c0b
(svn r1478) -Fix: [1099195] mouse-wheel in train replace window. Scrollbar1 and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list.
...
-Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
2005-01-11 00:24:27 +00:00
darkvater
781648ada3
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
2005-01-10 14:43:00 +00:00
dominik
aa24b010e9
(svn r1383) Fix: You can now also delete automatically found servers by pressing "del"
...
Fix: The scrollbar is correctly updated when deleting servers
2005-01-05 10:47:59 +00:00
darkvater
d63144e8c0
(svn r1379) -Fix: various GUI glitches. Added default sizes to various widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-04 21:28:09 +00:00
truelight
3b7d2a8b67
(svn r1348) -Feature: resizable windows. Read the comment in window.h to find out
...
how the system works. All useful windows are already made resizable. Enjoy :)
-Fix: fixed some GUI-glitches and flaws along the way
2005-01-03 19:45:18 +00:00
dominik
9380b58111
(svn r1334) Fix: [ 1093466 ] no more glitches with many maps in the scenario list when creating server
2005-01-03 11:58:53 +00:00
bjarni
5da75918c0
(svn r1323) Adding autoreplace feature
...
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once
ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the
vehicle overview windows
Note: autorenew is now autoreplace, but to the same engine type
Nice new features, that was added to make this possible
- windows can now have two independant vertical scrollbars
- CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with
estimated costs even if shift is pressed
- fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
2005-01-02 17:23:04 +00:00
truelight
5eeab7fcfe
(svn r1322) -Add: banning system (mostly tnx to guru3)
...
A server can ban people via ClientList
Both server and dedicated can do it via console:
'ban', 'unban', 'banlist'.
2005-01-02 12:03:43 +00:00
truelight
e4f558de8c
(svn r1298) -Fix: [ 1092661 ] On create, the scrollbar of the server-list was not updated
2004-12-29 15:32:10 +00:00
truelight
80fde98098
(svn r1280) -Codechange: made the last patch a bit more... readable (in other words:
...
use that spacebar!!)
2004-12-27 10:24:38 +00:00
bjarni
d1b6768398
(svn r1279) Fixed the scrollbar in the network gui(server list). It now updates when scrolling (HackyKid)
2004-12-26 22:09:34 +00:00
truelight
4a5e11cea9
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars
...
-Fix: You can enter some more chars in the chatbox
2004-12-23 20:33:57 +00:00
darkvater
5eeb971de0
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
...
-Fix: removed some warnings
-Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
2004-12-23 00:24:44 +00:00
truelight
457720ff95
(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
...
-Fix: UDPListener was launched wrongly
-Fix: Not all sockets have broadcast enabled anymore
-Fix: Server-advertise retries 3 times before giving up
2004-12-22 18:42:56 +00:00
dominik
8f3270e57c
(svn r1205) Fix: Made the network window a bit wider, so that other languages don't have overlapping strings
2004-12-21 17:41:12 +00:00
truelight
7d505bd9fa
(svn r1197) -Fix: [GUI] in r1194 someone deleted too much code from WE_KEYPRESS. Now
...
you can change your player-name in the GUI again :)
2004-12-21 14:54:27 +00:00