231 Commits

Author SHA1 Message Date
Gunter Labes
bb50d06663 fix bug #10774: wrong i18n code 2008-02-02 23:00:37 +00:00
uso
c1506b8a93 display reloaded games in yellow instead of green in the game list...
...as they are also a kind of already running games and to make it
more visible that they are games with predefined and usually also
occupied slots
2008-01-29 17:30:00 +00:00
uso
11a326ad10 use a more robust method to check for the savegame attribute, thanks Soliton 2008-01-28 23:57:38 +00:00
uso
25a7e1dcd6 don't display 'Remote scenario' for reloaded games in the multiplayer lobby
which is wrong in most cases (fixes bug #10882), the display of
'Reloaded game' is disabled for now because we have a string freeze
and there is no good string to re-use
2008-01-28 22:43:31 +00:00
Mark de Wever
3a1bf1edaa Added a more graceful handling of maps without a header (bug #10787).
Did some minor code and changelog cleanups.
2008-01-18 22:14:42 +00:00
Gunter Labes
d89606f198 reset double clicked state
(fixes bug #10777: Cannot cancel a multiplayer password prompt)
2008-01-16 22:55:56 +00:00
Mark de Wever
12b0edcf7e Remove support for maps without a header 2007-12-29 12:39:12 +00:00
Mark de Wever
cd42d9bab3 Avoid deferring null pointers in the multiplayer lobby. 2007-12-28 22:03:01 +00:00
David White
bcffd0fb55 added support for setting passwords on mp games 2007-12-23 05:47:22 +00:00
Mark de Wever
68656c44d8 Unclutter includes. 2007-12-22 17:59:53 +00:00
Mark de Wever
cf5c221ec6 Remove unused include. 2007-12-12 21:37:46 +00:00
Mark de Wever
a20027e829 Change the client to send gzipped data to the MP server now.
This works with older clients on the server as well.
New client directly with old client probably won't work (untested).
2007-12-08 19:47:43 +00:00
Mark de Wever
7b12cffb91 Updated the network code to handle gzipped data instead of binary wml.
Nobody sends it yet, but the server can receive it, once the server
has been restarted there will be another commit to make the clients
send gzipped data to the server.

There's a config variable to change the server to send gzipped data as
well. On the trunk server this switch can be set once everybody had
some time to update their clients.

Once 1.3.12 is no longer allowed on the server this can also be set on
the 1.3 server. Once it's no longer allowed there the server will be
modified to only send gzipped data and the switch removed.

(The campaign server won't be modified at this moment.)

NOTE *campaign server and server need to be included
serialization/binary_or_text.cpp*
2007-12-08 17:42:36 +00:00
Gunter Labes
781925e0c5 update another image location 2007-11-29 10:04:48 +00:00
Gunter Labes
6282d581b3 update some image locations 2007-11-28 19:33:21 +00:00
Nils Kneuper
c588445335 commit map border change for mordante
now only wmllint --maplift has to be run on data/, could you do this esr?
2007-10-26 16:02:04 +00:00
Gunter Labes
55c551ff50 put the check for multiplayer scenarios back in (fixes bug #10139) 2007-10-13 00:21:47 +00:00
Gunter Labes
66ebb757a3 revert 2007-10-10T00:33:13Z!soliton@wesnoth.org, the name was actually already there.. 2007-10-10 01:58:14 +00:00
Gunter Labes
cc8ad6f3a3 still display the scenario name when it differs from the local one 2007-10-10 00:33:13 +00:00
Hans Joachim Gurt
af7ca88efe doxygen, comments 2007-10-04 14:13:29 +00:00
Gunter Labes
7eeb584f54 display the scenario id for unknown scenarios in the lobby 2007-10-02 21:53:16 +00:00
Ali El Gariani
da1b8f740c Quick protection against a crash reported by Soliton
(minimap of trunk crash in 1.3.8 lobby)

Seems to fixes the crash, but I need to check why some minimaps are missing.
2007-10-02 18:10:39 +00:00
Gunter Labes
ceab16a500 display the era id for not installed eras in the lobby 2007-10-02 12:49:33 +00:00
Ali El Gariani
89753be5cc Center the not-stretched-anymore minimaps in the lobby
Note that previously the minimaps were stretched to a rectangle (95x90)
2007-09-27 21:10:22 +00:00
Gunter Labes
34633bd618 mark some more strings translatable...
...and improve others to be more accurately translatable
2007-09-10 11:44:02 +00:00
Gunter Labes
27ab261be9 rather fix the server side...
...to keep the experience setting from the previous scenario
2007-09-09 04:21:12 +00:00
Gunter Labes
8b13cf3779 add a FIXME note 2007-09-08 09:42:38 +00:00
uso
e2b5c14780 only highlight 'Use map settings' in green if we know the scenario
and it's not remotely modified (local and remote hashes are identical)
2007-09-02 17:31:49 +00:00
uso
9d37dce64c show 'Use map settings' in green for games with open slots 2007-09-02 00:37:43 +00:00
uso
deea537c77 keep the selected game visible if it's visible before the game list update 2007-08-30 00:09:54 +00:00
uso
ec83df7ed6 try to preserve the game selection when the game list is updated,
if the last item in the list is selected keep the last selected
2007-08-29 22:39:43 +00:00
uso
3b5c2d8a45 let the wesnoth server send the game id and not only the game name
if a player joins a game to avoid ambiguity
2007-08-28 16:18:19 +00:00
uso
20f1d0dac6 move the game status to the first line of a game entry...
to have more room in the last line and reduce overlap or truncation in
lower resolutions, add an icon to better indicate if observers are
allowed, properly align icons in the last line
2007-08-26 03:11:28 +00:00
uso
a0df236d50 consistently use signed ints for the button alignment calculation,
fixes the signed vs. unsigned int warning
2007-08-25 17:53:47 +00:00
uso
98da233b34 align the buttons on top the game lobby...
...so that the left button is not tied to the frame border anymore and
the quit button always stays inside of the window
2007-08-25 00:03:38 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
e7b801ffbc Made sure all files have a copyright header, the update to GPL 2+ will follow
in a separate commit.
2007-08-15 12:39:11 +00:00
Mark de Wever
4bac696917 rename map.x() to map.w() and map.y() to map.h().
remove the duplicates named map.xsize() and map.ysize().
2007-08-09 16:37:08 +00:00
Ali El Gariani
5898369e04 Use image::unscaled as the default for get_image(). Two reasons:
- it make more sense to scale only if we ask.

- only few "scaled" are used, but there is a lot more (40) of
  "unscaled" (this remove ~ 1KB of code)
2007-08-05 01:47:20 +00:00
uso
74a1c8a822 multiplayer lobby:
fix the update of the player list if the selected game ends,

change the color for highlighting to be better visible and

remove bold as it causes graphical glitches, thanks Soliton

(there are still some graphical glitches, but that's probably
a problem of the menu widget code), mark bug #7471 as fixed
2007-08-02 01:47:50 +00:00
uso
45736198b2 multiplayer lobby:
highlight the names of the players which have joined the selected game;
this mechanism still has some small flaws, in particular it highlights
too many players in the (seldom) case that two games have the same name
because we only get the name of the game a player joins and not an id
2007-08-01 01:42:25 +00:00
Gunter Labes
f82931d9e6 Show the (possibly bogus) GPV and fog settings of games...
...with "Use map settings" on in a darker font. (patch #771 by uso)
2007-07-26 11:01:48 +00:00
Ali El Gariani
f920c9eabf finish to clean the "show minimap option in lobby" 2007-07-21 13:49:14 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Ali El Gariani
37c763e60a quick fix to bug #9555 Minimaps aren't shown in the Lobby
2007-07-07T16:11:25Z!crazy-ivanovic@gmx.net removed the inialization of the bool, seems set on true
on my system but the report suggest that others have false. So add the
inialization (to true) (later we can probably remove the use of this
bool)
2007-07-20 22:17:57 +00:00
Eric S. Raymond
689a69b433 Kill off the option to suppress lobby minimaps.
It doesn't save any network bandwidth and the amount of vertical space
it saves in the lobby display is insignificant.  All it was doing was
cluttering up the prefs display and creating a code adhesion we can do
without.
2007-07-08 02:33:43 +00:00
David White
ce731e864f fixed crash in multiplayer lobby if game status text is empty 2007-06-30 23:01:19 +00:00
Eric S. Raymond
43e5de9fee Huge patch pretty much all name changes.
display is now the base class and game_display the derived; code that
can use the base class because it doesn't need to grok units or teams
(like preferences.cpp and hotkeys.cpp) does so.
2007-06-28 05:32:36 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Mark de Wever
7f47e7614a use the map id key as search key in the minimap cache instead of the map data 2007-02-25 22:00:44 +00:00