belugas
1c56a5ae0f
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
2006-09-23 02:39:24 +00:00
Darkvater
794cc6d55e
(svn r6372) -Codechange: static, unneeded decleration in headers, superfluous header includes
...
-Codechange: Unify the Sorting struct both for vehicle-lists and network-lists.
2006-09-03 23:27:38 +00:00
tron
8ef52bc43c
(svn r6297) -Codechange: Disentangle the query window mess a bit: Move the network game password handling somewhere were it belongs to
2006-09-01 13:35:43 +00:00
tron
d8436d15ae
(svn r6276) Remove a redundant assignment
2006-08-31 14:54:25 +00:00
Darkvater
2f6a4bc1a9
(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be
...
integral to strings.c
2006-08-27 10:04:33 +00:00
truelight
5fd9aeb12b
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).
...
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.
2006-08-22 20:41:26 +00:00
truelight
0461d89612
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
...
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.
2006-08-22 15:33:35 +00:00
rubidium
480af9c917
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-22 14:38:37 +00:00
rubidium
893d4ba9d4
(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
2006-08-20 19:05:28 +00:00
truelight
c07a8613a2
(svn r5972) -Fix: usr strrchr instead of your own function (tnx Darkvater)
...
-Codechange: added some comments and const correctness (Darkvater)
2006-08-20 12:03:39 +00:00
truelight
cc7680e0f1
(svn r5968) -Feature: add auto-completion in chat-window. It completes Player-Names and
...
Town-Names (that order) using <tab>. Based on FS#28 by egladil.
2006-08-20 10:51:27 +00:00
truelight
10b842bddc
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
2006-08-19 10:00:30 +00:00
truelight
83d56d6d79
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
...
allow certain patterns (like numbers only)
2006-08-19 09:31:22 +00:00
rubidium
0d3ccad29f
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
...
-Cleanup: replace some magic '1920' values with BASE_YEAR.
2006-08-15 15:18:03 +00:00
rubidium
243872b4fd
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-14 14:21:15 +00:00
Darkvater
a9251d2d02
(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c
2006-08-05 00:59:45 +00:00
Darkvater
7c87c2e752
(svn r5655) -Fix [SF 1424115]: Reversed arrow-sign in the multiplayer list column headers on sort by name
2006-07-30 14:57:28 +00:00
belugas
6082507fea
(svn r5609) CodeChange : Apply coding style
2006-07-26 03:33:12 +00:00
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
260012382d
(svn r5226) Reduce the mess that sending chat messages is
...
This also fixes a bug:
-Fix: It was possible to rename a signs or waypoints with the chat box
2006-06-11 16:00:56 +00:00
Darkvater
d02f2ec1e6
(svn r4892) - Fix [FS#162]: SEGV when sorting an empty server list. (glx)
2006-05-16 21:13:41 +00:00
Darkvater
8faf1838e6
(svn r4623) - Codechange: s/byte/PlayerID/
2006-04-29 14:31:16 +00:00
tron
1440451a6b
(svn r4315) Remove MAX_QUERYSTR_LEN, rather use lengthof() the real thing
2006-04-07 09:15:17 +00:00
tron
10454a6dd1
(svn r4314) -Fix: a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
2006-04-07 09:07:53 +00:00
tron
3ef6afdb4d
(svn r4313) The parent window of the chat box is always the main toolbar (?!), therefore don't pass this information as parameter
2006-04-07 09:00:57 +00:00
tron
7a7e7c82cf
(svn r4312) Calculate the maximum pixel width of the entered text in the chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number
2006-04-07 08:57:03 +00:00
tron
dec2db09ee
(svn r4310) The chat box has no visible window title, therefore remove the string
2006-04-07 08:37:39 +00:00
tron
fc8d7f18a0
(svn r4309) The initial string of the chat box is always the empty string, so don't jump through hoops to check if nothing was entered and simplify the code
2006-04-07 08:27:43 +00:00
tron
04d6788bfd
(svn r4304) The chat box' parent window (the main toolbar, wtf?) doesn't care for the WE_ON_EDIT_TEXT_CANCEL event, so don't send one. This code looks like it was mindlessly copy&pasted from the query box
2006-04-07 07:08:20 +00:00
Darkvater
b68b9b149a
(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
2006-04-06 19:11:41 +00:00
Darkvater
2bbcd41247
(svn r3933) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian).
2006-03-17 23:47:03 +00:00
tron
84fb96fe85
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36:15 +00:00
Darkvater
896551850a
(svn r3501) - Load the lobby-window with up-to-date data upon opening
2006-01-31 22:24:02 +00:00
Darkvater
9d07426a29
(svn r3499) - Fix: a few gui glitches in the network window:
...
1. disable widgets also when the active companies/spectators is bigger than the max.
This can happen if the server has changed the settings.
2. updated scroll-count in the lobby as the window is higher.
2006-01-31 20:05:44 +00:00
Darkvater
58f5dbd365
(svn r3494) - Update several languages. Thanks all translators online atm (Bjarni, glx, MeusH, Tron, me, my sister)
...
- Remove the most blatant of untranslated or wrongly-outdated strings.
2006-01-30 22:36:35 +00:00
Darkvater
ddfe8f608f
(svn r3478) - Fix: In the network game list do the default sorting on connectivity (so servers which you can join are on top) and sort on names as a second criteria on clients and connectivity.
2006-01-29 20:24:18 +00:00
Darkvater
20538e9b40
(svn r3469) - Fix: plug a possible memleak with subsequential strdup's without freeing the previous value and make it possible to ban offline clients
2006-01-29 18:04:52 +00:00
Darkvater
c8a2c7ae94
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
2006-01-26 17:32:49 +00:00
Darkvater
070edf2f73
(svn r3441) - Feature: Allow the network game list to be sorted (by name/clients/compatibility ascending/descending)
2006-01-26 17:10:11 +00:00
Darkvater
2612d48550
(svn r3439) - CodeChange: Remove a whole bunch of global variables and put them into the WP() macro. Also combine more than one WP-custom element. For this the maximum size of w->custom (WP) has been increased, and multiple types put inside one with possibly moved to the corresponding gui file if it is only used there.
2006-01-26 16:19:24 +00:00
Darkvater
bc450bbc9a
(svn r3438) - Fix: first request company data, then general. Yes, it should be the other way around, but with the current network code this doesn't work. So workaround (have some nice promise from TrueLight for fixing ;))
2006-01-26 15:55:53 +00:00
Darkvater
fa735869e1
(svn r3435) - Fix a warning, removed unused extern and some comments in network_gamelist.c
2006-01-26 13:01:53 +00:00
Darkvater
8721b05453
(svn r3434) - Correctly update all network information when pressing refresh in the lobby. Also always allow the join button to a server unless all clients are used up (otherwise you can always join an existing company
2006-01-26 12:56:05 +00:00
Darkvater
2b287a9e72
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
2006-01-25 19:03:50 +00:00
Darkvater
78fa9c7393
(svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
2006-01-25 18:11:06 +00:00
tron
f2db7e7245
(svn r3336) byte -> WindowClass, uint16 -> WindowNumber
2005-12-24 15:01:17 +00:00
Darkvater
0f41b99c5e
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
...
- CodeChange: added str_validate(char *str) function that checks if a string contains only printable characters and if not, replaces those characters by question marks. Also move IsValidAsciiChar() to string.h
2005-12-20 20:52:05 +00:00
tron
bf98086de8
(svn r3298) Remove unused and write-only variables
2005-12-14 06:28:48 +00:00
peter1138
1c57091230
(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
2005-12-07 15:48:52 +00:00
tron
5cb9de35d1
(svn r3211) Fix typo in r3181
2005-11-16 16:16:18 +00:00