summaryrefslogtreecommitdiff
path: root/network_gui.c
AgeCommit message (Collapse)Author
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)
2006-01-26(svn r3439) - CodeChange: Remove a whole bunch of global variables and put ↵Darkvater
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(svn r3438) - Fix: first request company data, then general. Yes, it should ↵Darkvater
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(svn r3435) - Fix a warning, removed unused extern and some comments in ↵Darkvater
network_gamelist.c
2006-01-26(svn r3434) - Correctly update all network information when pressing refresh ↵Darkvater
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-25(svn r3429) - Feature (Followup): Change the gamelist window to accomodate ↵Darkvater
for the new information.
2006-01-25(svn r3427) - Feature: Allow seeing and setting the maximum amount of ↵Darkvater
companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
2005-12-24(svn r3336) byte -> WindowClass, uint16 -> WindowNumbertron
2005-12-20(svn r3322) - Fix: Network window crash when it receives invalid information ↵Darkvater
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-14(svn r3298) Remove unused and write-only variablestron
2005-12-07(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect ↵peter1138
their actual use, and add "Close Window" tooltip where missing.
2005-11-16(svn r3211) Fix typo in r3181tron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-13(svn r3172) static, consttron
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-17(svn r2624) - Fix: oops, forgot to change the already in use ↵Darkvater
DrawStringCenteredTruncated() functions.
2005-07-17(svn r2610) - Feature: set server map name to the loaded name of the ↵Darkvater
game/scenario. Also truncate where neccessary - Feature: truncate the path of the saveload window
2005-07-15(svn r2581) Fix: Behave a bit safer if central server sends bogus ↵ludde
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(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the ↵ludde
new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
2005-07-14(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is ↵ludde
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-06-06(svn r2422) - Codechange: magic number fix in network window (anonymous)Darkvater
2005-06-04(svn r2405) Simplify a few '? true : false' and '? false : true', especially ↵tron
the latter is confusing
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-30(svn r2387) - CodeChange: made the saveload code more readable and also ↵Darkvater
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-17(svn r2348) - Fix: Do not scroll the game with the arrow keys when the ↵Darkvater
chatbox is open
2005-05-12(svn r2300) - CodeChange: check the last number of commands, now only the ↵Darkvater
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(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), ↵Darkvater
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-02(svn r2252) - ReFix: Redo r2251. Just remove the 'default widget handler', ↵Darkvater
WDF_STD_BTN, instead of doing the "workaround" of the previous commit