53 Commits

Author SHA1 Message Date
Ali El Gariani
7274be6249 Fix bug #8624 (unit_help doesn't work)
Now unit_help=true hides if in all the help, but works with "unit
description" context-menu action and little "profile" button from
recruit/recall.

The hyperlinks in different pages are also hidden and the advancement
links send to the "unknown unit" page (like unencountered
units). Still the problem of visible race section, ability and weapon
special if only this unit have it.

I will check how to hide at least race (maybe others too but less important).

+ done some other cleaning in help code, but others need to be done.
2008-01-04 00:26:03 +00:00
Mark de Wever
687d1aad5e Unclutter includes. 2007-12-22 16:29:55 +00:00
Ali El Gariani
eb2eb65396 Improve speed of unit preview panel showing only unit types (not real units)
Avoid creating all the units (which was slow) and just read unit type
info.  Currently only used for Create Unit, I will activate it for
Recruit later.  Also clean a bit the rendering of text: use blank
lines for missing info (no ability or trait), so all fields stay
aligned when comparing units.  PS: Maybe add some "None" or "-" to
make the empty space more meaningfull?
2007-11-26 15:36:40 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +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
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
Mark de Wever
415615a007 [unstore_unit] can now try to level a unit...
...and does so by default this time added for real, the replay can
also handle it (bug #7426).  Also added a test case to the test
scenario.
2007-07-15 09:06:13 +00:00
Eric S. Raymond
b5a82e4ac8 Move some dialogs to a more appropriate namespace and module. 2007-07-06 01:57:13 +00:00
Eric S. Raymond
794131f027 Separate the file chooser from the dialogs that need to know about units. 2007-06-30 11:39:09 +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
Eric S. Raymond
b30914df43 Refactoring step;
put message_dialog() in the same namespace with its parent class.
Also, use a C++-style default argument to make the code less verbose.
2007-06-09 07:39:19 +00:00
Eric S. Raymond
5a4b81ea58 This is the key UI policy change that makes message windows translucent
and the titlescreen windows opaque.
2007-06-09 06:41:55 +00:00
Eric S. Raymond
a6a8db36d9 First payoff from the previous refactoring steps:
instances of the deprecated show_dialog() call in menu_events.cpp()
get replaced with uses of the newly public message_dialog class.
2007-06-08 08:55:40 +00:00
Eric S. Raymond
7eb40f3628 Pure refactoring step: Lift the message_dialog class out of game_events.cpp...
...and make it part of dialogs.cpp.

We're going to want it to be visible for other parts of the program 
that will need to display message dialogs.
2007-06-08 07:45:14 +00:00
Patrick Parker
d369553dd2 some further refactoring of the dialog code 2007-05-28 20:33:05 +00:00
Martin Renold
e5514c3c69 removing an unused function 2007-02-20 18:52:17 +00:00
David Philippi
a3372922f5 reverted 15004 on request of Sapient 2007-01-02 22:23:45 +00:00
David Philippi
e27b2583be removed unrequired mutable from construct_dialog 2007-01-02 20:52:52 +00:00
Patrick Parker
d75e869251 adds "Quit Game" button to OOS pop-up 2006-07-31 22:37:26 +00:00
Patrick Parker
d1845381d4 a redo of the filechooser code...
...with the dialog construction model to create a re-usable
file_dialog class.
2006-07-30 23:17:48 +00:00
Patrick Parker
d94d667108 "save replay" instead of "save game" 2006-07-23 13:25:45 +00:00
Patrick Parker
b5c4a6a5d5 stage 2 of dialog refactoring,
replace show_dialog function contents with calls to construct dialog,
thus demonstrating their appropriate usage.

also, fixes some bugs with freeing and transparency
2006-07-20 03:54:06 +00:00
Patrick Parker
7446e31386 stage 1 of the dialog refactoring :
the construct_dialog files allow you to build customized dialogs
also: cleaned up some of my bad event::handler code
2006-07-19 21:14:13 +00:00
Patrick Parker
b5ba908119 added back an event context to the 'join game' leader select
override join() for preview pane subclasses with member widgets
2006-05-27 05:21:16 +00:00
Dominic Bolin
e46b3c219b Add set_specials_contexts in. 2006-03-24 00:40:26 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Philippe Plantier
dee75de20c [[Side-handling and objective fixes]]
* Added the ability for each side to have its own objectives.
* Applied a modified version of patch #3789 from ott which allows objectives to
  be set via events.
* Fixed some compile-time warnings
2005-03-19 13:02:34 +00:00
Philippe Plantier
183e200ef8 Const-correctness on play_level, and play_turn. 2005-03-19 10:26:43 +00:00
Yann Dirson
432a5eb12a cleanup of deps against display: most widgets do not need a display at all 2005-03-18 21:21:48 +00:00
Yann Dirson
62768501bb include cleanup: builder, cursor, dialogs, display 2005-03-09 22:21:54 +00:00
Guillaume Melquiond
21cd3af92d Remove unused untranslatable default argument...
...and fix calling convention of the filechooser.
2004-12-19 21:18:14 +00:00
Guillaume Melquiond
8a4607db34 Remove unused parameter from dialogs.cpp. 2004-12-02 22:30:38 +00:00
Guillaume Melquiond
a5cfc0238e Add update_location for a 2-stage set_location;
refresh bugs may ensue since it inverts the rectangle registration
process. Rename register_rectangle in bg_register. Add
set_measurements to remove contiguous call to set_width and
set_height.
2004-11-06 13:13:16 +00:00
Philippe Plantier
2387af2d53 Fixed the profile button now working.
Fixed by renaming "process" to process_event in the unit preview pane, whether
this is the right thing to do should be reviewed.
2004-11-03 22:20:27 +00:00
Guillaume Melquiond
4f78f62b46 Switched to draw_contents system.
And fixed background refreshing of campaign selection dialog.
2004-11-02 20:50:55 +00:00
Cédric Duval
4dad657344 Campaigns description support. 2004-09-22 00:05:33 +00:00
Dave White
c3d2f8abe9 removed the unit description dialog in favor of unit help 2004-08-18 02:51:23 +00:00
Dave White
c7730659cc added new attack dialog 2004-06-11 18:38:12 +00:00
Dave White
1949e00955 added animated on-map items. New attack dialog. New load game dialog 2004-06-10 23:43:25 +00:00
Dave White
f0df140327 added new 'load' dialog.
changed behavior of pressing 'space' to end a unit's turn
2004-06-10 00:35:45 +00:00
Dave White
c34a31cfa4 rebalanced 'Valley of Death' and 'Ford of Abez'. Made 'Skip AI Moves' option 2004-06-07 20:19:27 +00:00
Dave White
1c319625bc fixed file chooser dialog to work in Windows 2004-06-01 20:33:46 +00:00
Kristoffer Erlandsson
6fab335aa4 File chooser widget added. Now used in the editor for save as and load. 2004-05-23 22:23:10 +00:00
Dave White
0d9d0ccf7c restructure of lobby system...
...which allows chatting to lobby members during the first step of
creating a game, and chatting with other game members during the
second step
2004-04-27 21:55:13 +00:00
uid68803
6516d3f869 fixed bug which could cause a crash when a unit advances
(as reported by Antonio Manrique Perez)
2003-12-29 14:46:53 +00:00
uid66289
b1c76bcb5b importing devsrv CVS to Savannah CVS 2003-12-23 22:45:30 +00:00
uid66289
15574b6539 v0.6.1 2003-12-23 21:55:07 +00:00
Dave White
0f99a4a097 made 'Valley of Death' easier on 'hard' level 2003-11-21 19:55:43 +00:00
Sofronius
d7a6a862d7 Task 2725 (Confirm overwriting of save games) refactoring. Task done. 2003-11-15 11:36:36 +00:00