summaryrefslogtreecommitdiff
path: root/network_gui.c
AgeCommit message (Collapse)Author
2006-10-18(svn r6824) -Feature: Change the functionality of the chat window. ↵Darkvater
SHIFT+ENTER (SHIFT+T) sends a message to all players, CTRL+ENTER (CTRL+T) sends a message to all team mates and ENTER (T) sends a message to teammates if you have any, otherwise to all players. The chat-window now also shows what kind of message is being sent. Shortcut functionality has not been changed (ENTER sends message, ESC closes window)
2006-10-18(svn r6820) -Codechange: Some more const correctness, coding style.Darkvater
-Codechange: Add FOR_ALL_ACTIVE_CLIENT_INFOS macro that will loop all clients skipping inactive ones.
2006-10-17(svn r6816) -Codechange: Some coding style, variable localization, const ↵Darkvater
correctness. -Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState
2006-10-17(svn r6814) -Codechange: For network games ci->client_playas was always ↵Darkvater
p->index + 1. To correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users.
2006-10-15(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier ↵Darkvater
wishing to become a new player instead of a 0.
2006-10-14(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to ↵Darkvater
PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
2006-10-12(svn r6754) -Codechange: Remove some #idef ENABLE_NETWORK specific defines. ↵Darkvater
With networking disabled hardcode _networking/_network_available to zero and let the compiler handle all optimizations.
2006-10-12(svn r6750) -Codechange: Juggle around some header includes as they're only ↵Darkvater
used when networking is enabled.
2006-10-08(svn r6688) -Fix (r6297): Wrong caption for server password query window (eg ↵Darkvater
put 'break' after switch statements)
2006-10-03(svn r6631) -Codechange: Use accessors for click_state.belugas
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(svn r6619) -Codechange: Use accessors for disabled_state.belugas
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-09-23(svn r6499) -Codechange: Finally, got "byte event" outside of the union ↵belugas
WindowEvent, which is now a struct
2006-09-03(svn r6372) -Codechange: static, unneeded decleration in headers, ↵Darkvater
superfluous header includes -Codechange: Unify the Sorting struct both for vehicle-lists and network-lists.
2006-09-01(svn r6297) -Codechange: Disentangle the query window mess a bit: Move the ↵tron
network game password handling somewhere were it belongs to
2006-08-31(svn r6276) Remove a redundant assignmenttron
2006-08-27(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() ↵Darkvater
which should be integral to strings.c
2006-08-22(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 ↵truelight
(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(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips ↵truelight
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(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-20(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.rubidium
2006-08-20(svn r5972) -Fix: usr strrchr instead of your own function (tnx Darkvater)truelight
-Codechange: added some comments and const correctness (Darkvater)
2006-08-20(svn r5968) -Feature: add auto-completion in chat-window. It completes ↵truelight
Player-Names and Town-Names (that order) using <tab>. Based on FS#28 by egladil.
2006-08-19(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:truelight
- 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(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for ↵truelight
textboxes to only allow certain patterns (like numbers only)
2006-08-15(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and ↵rubidium
BASE_YEAR when comparing _cur_year with a 'full' year. -Cleanup: replace some magic '1920' values with BASE_YEAR.
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
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-05(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. ↵Darkvater
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-07-30(svn r5655) -Fix [SF 1424115]: Reversed arrow-sign in the multiplayer list ↵Darkvater
column headers on sort by name
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-11(svn r5226) Reduce the mess that sending chat messages istron
This also fixes a bug: -Fix: It was possible to rename a signs or waypoints with the chat box
2006-05-16(svn r4892) - Fix [FS#162]: SEGV when sorting an empty server list. (glx)Darkvater
2006-04-29(svn r4623) - Codechange: s/byte/PlayerID/Darkvater
2006-04-07(svn r4315) Remove MAX_QUERYSTR_LEN, rather use lengthof() the real thingtron
2006-04-07(svn r4314) -Fix: a buffer overflow of the chat box introduced in r1263. ↵tron
Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
2006-04-07(svn r4313) The parent window of the chat box is always the main toolbar ↵tron
(?!), therefore don't pass this information as parameter
2006-04-07(svn r4312) Calculate the maximum pixel width of the entered text in the ↵tron
chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number
2006-04-07(svn r4310) The chat box has no visible window title, therefore remove the ↵tron
string
2006-04-07(svn r4309) The initial string of the chat box is always the empty string, ↵tron
so don't jump through hoops to check if nothing was entered and simplify the code
2006-04-07(svn r4304) The chat box' parent window (the main toolbar, wtf?) doesn't ↵tron
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-06(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the ↵Darkvater
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-03-17(svn r3933) - [ 1439907 ] Increase client list window width so at least most ↵Darkvater
languages fit (wikipedian).
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-31(svn r3501) - Load the lobby-window with up-to-date data upon openingDarkvater
2006-01-31(svn r3499) - Fix: a few gui glitches in the network window:Darkvater
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-30(svn r3494) - Update several languages. Thanks all translators online atm ↵Darkvater
(Bjarni, glx, MeusH, Tron, me, my sister) - Remove the most blatant of untranslated or wrongly-outdated strings.
2006-01-29(svn r3478) - Fix: In the network game list do the default sorting on ↵Darkvater
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(svn r3469) - Fix: plug a possible memleak with subsequential strdup's ↵Darkvater
without freeing the previous value and make it possible to ban offline clients
2006-01-26(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp ↵Darkvater
when using MSVC
2006-01-26(svn r3441) - Feature: Allow the network game list to be sorted (by ↵Darkvater
name/clients/compatibility ascending/descending)