Commit Graph

16969 Commits

Author SHA1 Message Date
Ali El Gariani
3195928e3c graphics: added automatic side-coloring of custom flags 2007-05-26 23:55:09 +00:00
Mark de Wever
b46b21ec44 converted get_flag() to use gamemap::location 2007-05-26 23:53:57 +00:00
Benoît Timbert
38eb62b89a Workaround: Fix the teamname displayed
("North-West" was displayed for the 5 other players)
2007-05-26 23:49:58 +00:00
Benoît Timbert
6b40bdd54e New french translator 2007-05-26 23:45:47 +00:00
Mark de Wever
b5686b7911 converted scroll_to_tile() to use gamemap::location 2007-05-26 23:39:22 +00:00
Ali El Gariani
2ff87a5542 don't allow right-click cancel on dialog with options and just an OK button
also better detection of what's the outside of the dialog

(still not perfect: I must add title and buttons)
2007-05-26 23:24:05 +00:00
Mark de Wever
886df389f0 display has a lot of functions with x and y parameters...
...where it's not clear what these are.

started to change functions which get a map location to use gamemap::location
this commit does fogged() and shrouded(), more will follow
2007-05-26 23:13:07 +00:00
Mark de Wever
dc1ca61775 small header dependency cleanup 2007-05-26 22:21:11 +00:00
Mark de Wever
3dd6d9d214 rewrote timestring() so it looks better 2007-05-26 22:06:18 +00:00
Mark de Wever
e06a318932 added some const modifiers,
need them for testing and the functions can be const anyway
2007-05-26 20:39:51 +00:00
Ali El Gariani
c0c9a3eb26 Add a handy mouse shortcut:
right click outside of a dialog to close it. Very usefull to cancel
the attack dialog.

The current implementation for detecting the dimension of the dialog
is maybe a bit dumb but works fine for this simple use.
2007-05-26 19:51:02 +00:00
Mark de Wever
6e04a003db remove some unused variables and fix a small comment typo in my previous commit 2007-05-26 19:50:48 +00:00
Ali El Gariani
ce8926f098 change the context menu behavior:
when right clicking outside of it, close it and don't send the right
click to the backround (which in this case cause the opening of an
other context menu) I also need this for the future general
outside-right-click-close-dialog
2007-05-26 19:46:10 +00:00
Mark de Wever
755947764e did some cleaning up;
zoom() could change the zoom value and return the factor
now split in 2 functions, also namechange of default_zoom()
2007-05-26 19:38:43 +00:00
Ali El Gariani
909ba49731 add a comment about fps-max in the debug code to see updated zones of the screen 2007-05-26 17:39:13 +00:00
Ali El Gariani
171f0f5186 remove obsolete images, bars and orbs are displayed using different images 2007-05-26 17:26:12 +00:00
J.W. Bjerk
25c19479ba finished moving all core unit CFGs into racial subfolders. 2007-05-26 14:31:57 +00:00
Mark de Wever
ebba40c133 reordered some stuff to kill a compiler warning. 2007-05-26 14:23:45 +00:00
Mark de Wever
a3e0e197f1 fixes a small offset problem.
It's not really noticable but will be once the new centering code will
be committed.
2007-05-26 13:10:55 +00:00
Nils Kneuper
755cd37630 fixed inclusion of units 2007-05-26 13:06:24 +00:00
Elias Pschernig
d586235841 fixed download option for raw packets from the campaign server 2007-05-26 11:32:38 +00:00
Nils Kneuper
2e10eb1ad0 bumped version to 1.3.3+svn
and changed ports for the default mp server to the one for trunk
2007-05-26 09:21:18 +00:00
Jérémy Rosen
79dcf5eb38 code refactoring in unit animations,
preparing the grand animation unification scheme...
2007-05-26 08:20:35 +00:00
J.W. Bjerk
aa0516e591 moved most unit CFGs into subfolders.
since other CFGs to not directly link to these, there should be no problems.
2007-05-26 07:15:14 +00:00
J.W. Bjerk
caf3cc0b68 added the a riderless Wolf.
These graphics are intended to replace the ones used in SoF.  I used
the stats from the Wolf rider, changing only the alignment to
neutral. These stats are different from the stats used in SoF.  I have
no opinion, what (if anything) should change about the stats- i merely
point the discrepency out.
2007-05-26 02:49:20 +00:00
J.W. Bjerk
bf666fee4c actually adding the images for: attack icons for sickle and scythe. 2007-05-26 00:25:48 +00:00
Ali El Gariani
fcc0f155fa Add automatic side-coloring of custom village-flags.
Simplify a little the code.
2007-05-25 23:55:45 +00:00
J.W. Bjerk
a158a02221 attack icons for sickle and scythe. 2007-05-25 23:55:10 +00:00
Ali El Gariani
26e7015506 simplify and clean the previous commit...
....about the automatic side-coloring of flag-icon
2007-05-25 23:49:19 +00:00
Ali El Gariani
791346e646 add an automatic side coloring of custom flag_icon 2007-05-25 20:52:09 +00:00
J.W. Bjerk
62624352b3 returned the flags icons to pure, recolorable green. 2007-05-25 20:06:33 +00:00
Nils Kneuper
43e95200ad bumped version to 1.3.3 2007-05-25 18:14:55 +00:00
Jérémy Rosen
023c173ac1 fix halo glitch 2007-05-25 17:43:20 +00:00
Lari Nieminen
7ad1d81285 Updated changelogs. 2007-05-25 17:41:05 +00:00
Nils Kneuper
0ebb40d2ce removed fuzzy from German translation (I don't want to call this an 'update') 2007-05-25 17:37:16 +00:00
Jérémy Rosen
581bdb1b69 fix mvt animation being stuck on first frame 2007-05-25 17:31:33 +00:00
Gunter Labes
8cf156a76c remove the 'fearless' trait from humans, orcs and mermen
add the 'firstrike' weapon special to the pierce attack of Drake Clasher

decrease the arcane ranged attack of the White Mage from 8-4 to 7-4

decrease the arcane ranged attack of the Mage of Light from 10-4 to 9-4
2007-05-25 16:32:10 +00:00
John W. C. McNabb
1ac9ec2161 added distance function to evaluators 2007-05-25 14:57:38 +00:00
Lari Nieminen
17c6f17b32 A bit better sand storm attack icon. 2007-05-25 07:48:26 +00:00
Ali El Gariani
4ad505a5bc map editor shorter starting time 2007-05-25 07:39:25 +00:00
Ali El Gariani
09214ea31d allow middle click on scrollbar to jump to a position. 2007-05-25 07:34:27 +00:00
Ali El Gariani
99c6398db4 add linux-like middle-click on scrollbar for jumping to a a position 2007-05-25 01:48:23 +00:00
Benoît Timbert
f8715138c4 french translation update 2007-05-24 22:33:53 +00:00
Patrick Parker
239934fe75 fix a bad typo in the previous commit 2007-05-24 22:25:20 +00:00
Ali El Gariani
615c9c459d An other blind shot to unifiy the code of _main.cfg detection,
in the hope to limit risk of strange OS behavior:

This was the only place where we use the ==0 return value of stat()

Normally it's valid, but I change it to !=-1 like we do elsewhere for
checking cfg files.
2007-05-24 22:21:32 +00:00
Patrick Parker
40ea2a419a add comments and some more optimization to the preprocessor 2007-05-24 22:21:08 +00:00
Ali El Gariani
6d6b757cc8 someone forget to use the anonymous namespace for "stat()" working on main.cfg
I don't know the importance of this, but best to be clean since stat()
have probably some compiler/OS specialities
2007-05-24 22:09:14 +00:00
Ali El Gariani
66cae3a697 Kill the last "//" before _main.cfg on linux.
Copy the same ugly block of code for generate path(/)file.cfg used
with standard files (since it seems to works fine)

And paste it for generate the path(/)_main.cfg (since it seems bogus on win/mac)

This double use must probably be in a function. Maybe later (or never
if we use boost?)
2007-05-24 21:38:51 +00:00
Ali El Gariani
c4ea3bd084 More precise logs on the automatic detection of _main.cfg in sub-directories.
* display the exact path recorded in the files list (fix a previous
  small imprecision)

* display a message when spotting the _main.cfg, react on it but don't
  record it in any files list

(because I consider this a very strange behavior, even if it seems to
never be triggered)

Zero changes in the logs output on linux
2007-05-24 21:11:22 +00:00
Nils Kneuper
8f71fa22d7 updated French manpages 2007-05-24 20:28:17 +00:00