Darkvater
e7149e316e
(svn r6688) -Fix (r6297): Wrong caption for server password query window (eg put 'break' after switch statements)
2006-10-08 11:54:47 +00:00
belugas
688da1d940
(svn r6631) -Codechange: Use accessors for click_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-03 20:16:20 +00:00
belugas
cf210fdf6b
(svn r6619) -Codechange: Use accessors for disabled_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-03 02:08:15 +00:00
belugas
98ba395277
(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
eb9a2dd3f6
(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
0d6fa61e9f
(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
e7783e0240
(svn r6276) Remove a redundant assignment
2006-08-31 14:54:25 +00:00
Darkvater
9f73fce941
(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() which should be
...
integral to strings.c
2006-08-27 10:04:33 +00:00
truelight
15aff22c96
(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
505566da5c
(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
908d3bcfe6
(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
db397d5a75
(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
2006-08-20 19:05:28 +00:00
truelight
054dd2802b
(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
17127970fe
(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
7abad2b20e
(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
d3f2180438
(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
c55962f8a2
(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
9fc837ad85
(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
97c3b5cad8
(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
7ce6a95eb9
(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
40a8964911
(svn r5609) CodeChange : Apply coding style
2006-07-26 03:33:12 +00:00
tron
772fbda3e3
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
347473b0b0
(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
2128dbec13
(svn r4892) - Fix [FS#162]: SEGV when sorting an empty server list. (glx)
2006-05-16 21:13:41 +00:00
Darkvater
26db3ac91f
(svn r4623) - Codechange: s/byte/PlayerID/
2006-04-29 14:31:16 +00:00
tron
5b7e846fd4
(svn r4315) Remove MAX_QUERYSTR_LEN, rather use lengthof() the real thing
2006-04-07 09:15:17 +00:00
tron
0099dc31f5
(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
59f0e69521
(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
2e2235e3cf
(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
90927c22a5
(svn r4310) The chat box has no visible window title, therefore remove the string
2006-04-07 08:37:39 +00:00
tron
98b51c36e2
(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
f5dac4082c
(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
c8a85d5419
(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
0d310e213a
(svn r3933) - [ 1439907 ] Increase client list window width so at least most languages fit (wikipedian).
2006-03-17 23:47:03 +00:00
tron
1c3e8630fe
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36:15 +00:00
Darkvater
009e9bf424
(svn r3501) - Load the lobby-window with up-to-date data upon opening
2006-01-31 22:24:02 +00:00
Darkvater
bfe7040cde
(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
35e369336e
(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
3f7cb3d0eb
(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
35c5738689
(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
0855449106
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
2006-01-26 17:32:49 +00:00
Darkvater
227769d709
(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
1ba8bcd0de
(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
f99a200470
(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
1be559cfb8
(svn r3435) - Fix a warning, removed unused extern and some comments in network_gamelist.c
2006-01-26 13:01:53 +00:00
Darkvater
7eaac72326
(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
f14df34790
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
2006-01-25 19:03:50 +00:00
Darkvater
082aa38f79
(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
849fff602d
(svn r3336) byte -> WindowClass, uint16 -> WindowNumber
2005-12-24 15:01:17 +00:00
Darkvater
eea9e95278
(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