243 Commits

Author SHA1 Message Date
Ali El Gariani
5ef2318ef0 The new unit_type preview panel now display must-have traits
(as the old system did)

PS: gender name for traits are coded but not tested yet
2007-11-26 18:05:59 +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
Eric S. Raymond
b66c824442 Address bug #10383:
change underscores to spaces in the copy ogf the campaign name used in
the objectives dialog.
2007-11-24 16:01:33 +00:00
Mark de Wever
97ec101021 Fixed some more possible utf-8 related terminations. 2007-11-24 12:36:19 +00:00
Gunter Labes
63fb67ae10 tried to show the campaign name in the load dialog and the objectives
it doesn't work but i'm committing anyway because it doesn't really
change current behaviour and hopefully someone can figure out why it
doesn't work...
2007-10-29 15:13:54 +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
Patrick Parker
547f3b2904 improve the 'tall dialog' detection for campaign preview 2007-10-06 20:05:34 +00:00
Nils Kneuper
d470c05f5a use a value that actually does work
esr: please check on your machine how the imageplacement in the
campaigndescription does look now
2007-10-06 19:31:45 +00:00
Patrick Parker
5210854a98 fix alignment of the campaign preview image:
- use the 5-line rule for very tall dialogs

- use the golden ratio for normal resolution.
2007-10-06 17:53:01 +00:00
Patrick Parker
6ac002bcf2 improve the alignment of the campaign dialog some more 2007-10-06 05:36:49 +00:00
Patrick Parker
21591983d1 making the campaign preview pane style look closer...
...to the specification of wiki/GUI
2007-10-06 02:45:52 +00:00
Nils Kneuper
d69268494f another little improvement to the dialog size
seems to work nicely at 800x600 for most cases (yes, translation might
cause problems, only the case with greek atm)

a fixed maximum for the dialog dimensions would help to improve
positioning and layouting them
2007-09-26 22:05:53 +00:00
Nils Kneuper
5938681c18 slightly change dimensions for the campaign selection dialogs 2007-09-26 21:19:55 +00:00
Hans Joachim Gurt
78e94b5bd0 Doxygen, comment, Contrast/colors for stats-dialog and unit_preview_pane. 2007-09-08 02:11:52 +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
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
Eric S. Raymond
23370c076c Address bug #9611. 2007-07-27 18:17:32 +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
Patrick Parker
ce744cae7d [[dialog class tweaks]]
* now dialogs will automatically clear_background() when show() exits
* some refactoring of dialog::style (moving it towards being a proper class)
  - still need to remove the constness
  - and make the member variables private
  - and provide accessor methods
2007-07-07 03:38:38 +00:00
Eric S. Raymond
23819937c9 Reduce another show_dialog() call. 2007-07-06 11:15:18 +00:00
Eric S. Raymond
b59c85149f Revert a refactoring change (2007-06-30T03:10:14Z!alinkmaze@gmail.com)
...that disappeared the help buttons on the Recruit and Recall menus.
I'll have to redo this right.
2007-07-06 09:46:21 +00:00
Eric S. Raymond
91e7ee58c9 Change some dialogs that don't have help buttons...
...from using dialog to using basic_dialog.
2007-07-06 07:54:48 +00:00
Eric S. Raymond
dc15a17307 Replace another show_dialog() call, remove some unused headers. 2007-07-06 06:27:57 +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
0f4f6c2d0f Preferences module partitioned...
...so the editor can use a version that doesn't link in the entire
universe.  Most of the changes just replace inclusions of
"preferences.hpp" with a new "game_preferences.hpp".
2007-07-05 19:13:39 +00:00
Patrick Parker
32e97d0b33 this probably fixes the glitch with color names not updating...
...when changing languages

also a few minor formatting fixes
2007-07-05 03:13:03 +00:00
Eric S. Raymond
9f1fbfe419 Convert show_dialog() calls to basic_dialog object invocations. 2007-07-02 16:45:51 +00:00
Eric S. Raymond
9a924b7bbe Transform more show_dialog() calls into basic_dialog instantiations. 2007-06-30 23:50:24 +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
fa74853a85 Blurring is back.
This time, menu styles are controlled by a structure which presently
contains dtem of the panel component names and a blur radius.  This
design is extensible; we can easily add controls for other style
elements now.
2007-06-19 06:08:24 +00:00
Eric S. Raymond
b31c040867 Drop the message-window opacity to 65 now that blurring is fixed. 2007-06-18 03:25:44 +00:00
Eric S. Raymond
e4ede55437 More buttonectomies (this time *with* show() calls!) 2007-06-16 19:37:01 +00:00
Eric S. Raymond
c4b9050fcb Fix some broken referebces to "translucent". 2007-06-16 15:45:17 +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
9e8ebd2aed Move style images for dialogs into a "panels" directory.
Rename "mainmenu" style to "translucent" and "menu" style to "opaque".

The name "menu2" has not been changed, I'm open to suggestions.
2007-06-09 05:08:20 +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
Mark de Wever
ff216afd2c removed display::lock_updates() and display::update_locked()
they had a comment which indicated they were scheduled for removal
(over 2 years old) and fixed the callers.
2007-06-02 14:09:11 +00:00
Mark de Wever
6cc4630c14 removed the #define show_dialog2 show_dialog in show_dialog.hpp...
...and cleanup the errors caused by that change
2007-06-02 09:34:19 +00:00
Mark de Wever
58e6889242 removed the deprecated and unused dialog_action code 2007-06-02 08:59:48 +00:00
Patrick Parker
814ed55745 update the editor code to use the dialog_frame object 2007-05-28 18:38:33 +00:00
Patrick Parker
7e9fb4c90c make the GUI frame drawing routines more object-oriented 2007-05-28 11:16:55 +00:00
Ali El Gariani
51aece9e39 Don't compress a serie of blank lines in campaign description. 2007-05-08 04:32:09 +00:00
Ali El Gariani
f2f4e652f8 Reverse the image of the defender in the attack dialog.
Oppenents are now face to face. More dramatic tension.
2007-03-31 21:07:37 +00:00
Patrick Parker
7649620421 added the "ignore all" option to continue observing during massive OOS 2007-03-18 03:08:50 +00:00
Mark de Wever
f8b0d3f7ca if a unit gains enough XP to gain 2 levels this will be done directly
NOTE there is a protection against insane XP amount which might cause
a unit to enter an level loop.
2007-02-23 20:02:09 +00:00
Martin Renold
e5514c3c69 removing an unused function 2007-02-20 18:52:17 +00:00
Patrick Parker
b82dbbcd2b max level advancements now raise the advance and post_advance WML events 2007-02-03 02:52:27 +00:00
Mark de Wever
01256bb881 merge trunk 2007-01-14T10:13:37Z!koraq@xs4all.nl..2007-01-18T18:17:14Z!koraq@xs4all.nl 2007-01-18 19:08:42 +00:00