Commit Graph

17359 Commits

Author SHA1 Message Date
Ali El Gariani
cfab0162a8 Experiment to show the direction from the attack.
This is for helping click accurancy, specially because of the new
"attack a nearby unit from an other direction" feature.

Please test and comment the usefullness and look of this. Maybe add a
"bad" highlight for blocked directions ?  The code and images are just
a quick hack to see if and how we want this.
2007-06-09 15:18:52 +00:00
Ali El Gariani
3b02d7e39c Beta images for highlighting the direction of the attack 2007-06-09 15:15:13 +00:00
Mark de Wever
2263cc8842 inline some functions and remove and unused function 2007-06-09 14:31:22 +00:00
Mark de Wever
33b263aee5 fixes some offmap shroud glitches as discovered by Ivanovic.
The solution might change mybe only showing wood instead of the shroud.
2007-06-09 14:01:40 +00:00
David Philippi
c1897c9d94 danish translation update 2007-06-09 12:39:30 +00:00
Mark de Wever
5736c6910c fixes a invalid memory access if a map has width of 0 (bug #9301)
fixed the way Dan Huth suggested.
2007-06-09 12:02:27 +00:00
Mark de Wever
6c31017094 Added Proof-of-concept of the new background still has some flaws
* upon scrolling the background static (so maps scrolls over wood)

* _off^usr has redraw glitches since background is only updated every
  now and then

* the alpha at the border tends to "build up"

* we impose a huge performance hit

The code still needs a lot of work, but what needs to be done heavily
depends on whether or not the half-hexes are reintroduced so that the
is postponed until that descission has been made.
2007-06-09 11:51:59 +00:00
Lari Nieminen
959d7e86a2 Removed the rather confusing new tip. 2007-06-09 11:35:59 +00:00
Nils Kneuper
b13a2b10e7 updated German translation 2007-06-09 11:27:32 +00:00
Nils Kneuper
d487d7ee3a updated German translation 2007-06-09 11:07:21 +00:00
Jérémy Rosen
18b0c44302 animation glitch in accelerated mode, spoted by zookeeper 2007-06-09 10:14:55 +00:00
Mark de Wever
d5bb70f0dd added a work around to be able to compile with gcc-3.3 again 2007-06-09 09:16:19 +00:00
Nils Kneuper
e05d1b2e07 updated Czech translation 2007-06-09 09:12:11 +00:00
Eric S. Raymond
2e6660ff62 More de-verbosification. 2007-06-09 07:52:12 +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
61aad0d63e Change more OK_ONLY windows to the new MESSAGE style. 2007-06-09 07:10:22 +00:00
J.W. Bjerk
d0cac25f32 removed unneeded files from mythological's L3 Outlaws commit. 2007-06-09 06:57:44 +00:00
Dimitar Ilccov
a0e4034ce4 [[Property changes]] 2007-06-09 06:48:07 +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
Dimitar Ilccov
45f44c86a7 Added the level 3 outlaws as campaign-specific units in TRoW 2007-06-09 06:39:29 +00:00
Mark de Wever
b68d0a56bf And another patch to kill the unused parameter warnings,
...but in a portable way.  Also restore the default value for
can_execute_command which was removed before.
2007-06-09 06:34:05 +00:00
J.W. Bjerk
df796f8b71 in the campaign selection menu, changed the number of scenarios listed...
to indicate the number of scenarios in a single path through the game,
and did not count 'talk-only' scenarios.  Also added myself to the
credits of campaign which i've provided custom graphics for.
2007-06-09 06:30:03 +00:00
J.W. Bjerk
ee703c0536 resized the footprints to 72x72px.
the images need further work, but they are OK for now.
2007-06-09 06:04:06 +00:00
Eric S. Raymond
1b78536807 Tweak the naming of dialog styles and add a README. 2007-06-09 05:50:31 +00:00
J.W. Bjerk
88a4990c54 updated the campaign image with the newer portrait in DiD 2007-06-09 05:10:09 +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
Patrick Parker
f6b86f0b95 Move definition of UNUSED to global.hpp to avoid extra includes 2007-06-09 04:36:47 +00:00
Patrick Parker
c9238a3643 replace int -> unsigned cast with safer choice...
also use C++ style cast instead of C style cast
2007-06-09 04:26:07 +00:00
Patrick Parker
691721ac5e silence a gcc warning (hopefully) 2007-06-08 22:10:22 +00:00
Eric S. Raymond
822439e8ee Address bug #9296 by adding a switch to disable Python module installation. 2007-06-08 21:50:54 +00:00
David Philippi
40ea4c02ff swedish translation update 2007-06-08 21:19:29 +00:00
Eric S. Raymond
2a2b66bc4f Move definition of UNUSED to wassert.hpp to avoid entanglements with autotools. 2007-06-08 21:14:33 +00:00
Eric S. Raymond
8fb016cbe9 Eliminate all but three compiler warnings.
Most are banished by use of a new UNUSED macro that expnds to the
right GNU C++ attribute but an empty string elsewhere.  I have the
definition being generated into config.h, which therefore has to be
included a few places it wasn't before.  There might be a better place
to put it.
2007-06-08 19:54:28 +00:00
Lari Nieminen
d574cbec15 A defense animation and a crossbow animation for the master at arms. 2007-06-08 19:15:46 +00:00
Lari Nieminen
8d85b77cae An idle animation for the young ogre. 2007-06-08 18:40:00 +00:00
Lari Nieminen
675026da65 An idle animation for the troll whelp (pretty cute!). 2007-06-08 18:38:50 +00:00
Lari Nieminen
bbf478d3f3 Animation tweaks to the soul shooter
(mostly adjusted the angle of the bow in some frames to make things smoother).
2007-06-08 18:36:07 +00:00
Lari Nieminen
f74b97ee14 Some simple defense frame and alignment fixes/improvements. 2007-06-08 18:31:55 +00:00
Eric S. Raymond
100c9bbefb Code simplification suggested by Sapient. 2007-06-08 17:56:12 +00:00
Ali El Gariani
88300e148b 2007-05-12T10:33:21Z!jeremy.rosen@enst-bretagne.fr added acceleration in the transition of ToD masks,
...but with a double effect: less frames and shorter duration for each
frames. Fix this by keeping a constant frame duration
2007-06-08 16:27:46 +00:00
Ali El Gariani
7bc115743c remove a never-used cache "alternative_images"
commented out code about the ToD masks, currently we don't cache it
here, we just blit it in display.cpp
2007-06-08 16:00:57 +00:00
Ali El Gariani
45b66076a4 Use the new type HEXED (instead of UNSCALED)for minimap. 3 reasons:
- use hex-masked images make more sense, even if it's just few pixels
  difference

- prevent to add image in the UNSCALED cache, since we now don't use
  it for the main map

- when starting a unshrouded map, it will load in the hexed cache the
  few terrains used on the minimap, so these ones will be already hexed
  when scrolling the main map
2007-06-08 14:16:26 +00:00
Ali El Gariani
2950c43d98 Important optimization of the cache size and zooming...
...for standard terrain at default zoom level:

Previously the image type UNMASKED was a cache for hex-masking and
scaling.  added a type HEXED for caching the hex-masking, when using
it skip the UNSCALED, since these hexed images will normally never be
used non-hexed.

So this new cache doesn't cost memory and hex-masking doesn't need to
be redone when zooming.

At default zoom level, we can now skip the UNMASKED cache, so will
spare a cache level in memory

In theory, we win 25%-33% of memory space (depend of the use of
BRIGHTENED) for standard terrain hexes.

Note: the hex-masking and scaling operations are now inverted, it
doesn't seems to have a visible effect.
2007-06-08 14:05:33 +00:00
Mark de Wever
7bbd9f25dc added some comment regarding commit 18150 in _main.cfg 2007-06-08 14:00:31 +00:00
Mark de Wever
0019f2d355 updated the changelogs 2007-06-08 13:56:51 +00:00
Mark de Wever
f9b0820943 The editor has to parse the multiplayer part of the config...
...in order to generate random maps.
2007-06-08 13:43:46 +00:00
David Philippi
a56d28313d spanish translation update 2007-06-08 11:01:12 +00:00
Nils Kneuper
2713e5e9ee pot-update 2007-06-08 10:46:32 +00:00
Nils Kneuper
484f5c3e3c inserted a correct help string
esr: please check that the string is correct and works nicely
2007-06-08 10:42:08 +00:00
Eric S. Raymond
0f0aea85e7 Fixed a preferences display bug Ivanovic noticed.
The protocol for adding options is trickier than I realized.
2007-06-08 10:16:58 +00:00