Commit Graph

17486 Commits

Author SHA1 Message Date
Ali El Gariani
dc232ad8e5 revert an optimization...
...because some SDL functions used seems to don't work properly on Mac
2007-06-22 14:14:30 +00:00
Ali El Gariani
0975305606 Update bug number of bug #9268...
and move it from "user interface" to "Miscellaneous and bugfixes"

Since it was a performance bug
2007-06-22 13:48:53 +00:00
Ali El Gariani
e43c2f55b4 improve units list dialog:
add a cancel button, fix a bug when selecting the first unit,
preselect the on-map-selected unit and highlight on map the selected
one.
2007-06-22 13:43:45 +00:00
Ali El Gariani
d4837bea20 small improvements of footsteps: no time-of-the-day coloring and better scaling
fix jerky overlay of moving unit, now displayed as bars and crown.
2007-06-22 13:25:17 +00:00
Ali El Gariani
122394586c use my hackish version of the new blur code for floating labels
Changed the depth of the blur from 4 to 2, because the new algorithm
seems more effective

This normally mimics the previous look
2007-06-22 13:17:29 +00:00
Ali El Gariani
a82f35de82 copy paste the new blur code to a second version blurring alpha too...
...(for floating labels) because I don't want to modify the code used
for dialogue (and impact its peformance)

This is a quick working hack, but need to be clean later and probably
improve the algorithm about the color of fully transparent pixels.
2007-06-22 13:14:12 +00:00
Ali El Gariani
9e060dd77d remove the black pixel test for color cursor bug on Mac 2007-06-22 12:57:52 +00:00
Eric S. Raymond
c906e80464 Lift another bounds-checking function, and some cosmetic fixes. 2007-06-22 12:46:50 +00:00
Ali El Gariani
4f3c9e2085 new indicator for the attack direction
new method to choose attack direction, use now the last highlighted
hex instead of clicked triangle.
2007-06-22 12:46:08 +00:00
David Philippi
8a64936894 updated translation section 2007-06-22 12:37:29 +00:00
Eric S. Raymond
928ee74075 Lift some bounds-checking code into display.cpp. 2007-06-22 12:32:43 +00:00
Eric S. Raymond
1960c1e1a7 Lift the sceenshot() and get_zoom_facotor() functions. 2007-06-22 11:59:47 +00:00
Eric S. Raymond
63e81a6a31 Move screen up to the map_display class. 2007-06-22 11:36:30 +00:00
David Philippi
3144c21d4c added lithuanian translation files along with intial translation 2007-06-22 11:33:40 +00:00
Nils Kneuper
5e0713e14f pot-update 2007-06-22 11:14:40 +00:00
Eric S. Raymond
00d1266ccf Lift map_, theme_, and zoom_ to the new map_display superclass. 2007-06-22 11:06:11 +00:00
Eric S. Raymond
10f391919d Refactoring the display class quickly didn't work.
So now we'll do it the slow step-by-step way, starting by subclassing
display from an empty superclass and moving a little bit of stuff up
before each test.
2007-06-22 10:19:02 +00:00
Patrick Parker
c13b07c569 an attempt to make disabled buttons more obviously disabled (bug #9121) 2007-06-22 04:14:10 +00:00
Patrick Parker
b1e9f99642 patch #749: Ingame Add-on removal support
* also fix some cross platform issues

* also remove an unnecessary style copy
2007-06-22 02:36:12 +00:00
Benoît Timbert
628e5398f3 french translation update 2007-06-21 21:42:58 +00:00
Benoît Timbert
7ce7d19ea3 Description fix: Fencers are supposed to use a sabre, not a rapier 2007-06-21 20:36:19 +00:00
Ali El Gariani
7b04b302a3 [[More color cursor tweaks]]
- when using color cursor, add a systematic check/set that we use the
  invisible b&w one

- so reactivate the optimization checking if we already using the good
  cursor before changing it
2007-06-21 15:09:47 +00:00
Karen Baskins
5a1756550a Adding death animation for Human Outlaw Trapper. 2007-06-20 05:17:14 +00:00
Eric S. Raymond
12c782d9bf Fix a next-pointer bug in NR. 2007-06-20 00:50:27 +00:00
Ali El Gariani
cc7658abd1 [[Color cursor tweaks]]
- use only the color cursor setting of preferences (to prevent
  inconsistancy with a private bool)

- so, just use set() with no parameter to reset the cursor to the
  appropriate color state

- and remove the possibility to use the invalid cursor (this value now
  means "no change" or default)

- clean but temporary deactivate a small optimization possibly causing
  a bug (will try it again later)
2007-06-19 22:48:13 +00:00
Ali El Gariani
06cf24a8d2 continue to prevent possibility to miss the hiding of b&w cursor...
...when using color ones
2007-06-19 19:30:17 +00:00
Ali El Gariani
8f12b3b309 some cleaning in the initialisation of color cursors 2007-06-19 19:19:57 +00:00
Ali El Gariani
34ff3d5b87 stop ToD coloring footsteps, to help to better see it.
Not even sure that was a real design decision, since ToD-ing is the default.
Also spare some cpu/memory, since footsteps use a lot of tiles
2007-06-19 18:52:54 +00:00
Ali El Gariani
b4f7392383 Reset the color cursors after a fullscreen change,
...hoping to fix a bug with it on Mac
2007-06-19 18:08:34 +00:00
Ali El Gariani
385bf05b0a Force update of SDL_Cursor when setting the color cursor.
This will also allow to use this function to fully reset the color cursors.
2007-06-19 18:05:41 +00:00
Ali El Gariani
3bd27c7afe experiment to solve the mac bug with the image of transparent b&w cursor
(used for hiding them while using color ones)

- remade the image (to skip a possible effect of the recent pngcrush)

- add a black pixel, in case of mac have problem with fully
  transparent cursor image png

(this black pixel is almost invisible but must be removed later, or
used only with mac if it fix the bug)
2007-06-19 11:39:46 +00:00
Ali El Gariani
725d41c6cc After hours of thinking, just add a "if (use_menu)" to use sound only
...when closing a menu (not a message)
2007-06-19 11:20:41 +00:00
Ali El Gariani
0377206cb0 remove click sound when clicking on dialog message.
This was used to add also a sound when closing menu (since menu do
sounds for every other actions)

I will look it later how differentiate the two cases.
2007-06-19 11:13:11 +00:00
Nils Kneuper
ed7a037a7b changed combination for "next turn" to alt+space for macs
because in windowed mode cmd+space triggers spotlight and does not
reach the game
2007-06-19 11:06:16 +00:00
Eric S. Raymond
3df00746b2 The {dragon,thunder}stick hit and miss sounds were too much alike.
The old miss sound (with slight ricochet effect) is now an alternate
hit sound; the new miss sound is a pure ricochet effect. Somewhat
cartoonish, but that's OK.
2007-06-19 09:42:12 +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
Dimitar Ilccov
1908601672 Adapted the names of the scenarios, ids and the map files in HttT...
...to a common joint nomenclature : "xx_name.cfg;xx_name.map and
id=xx_name, where xx is the number in the order of the scenario in the
campaign and the name is in a form of a '_' separated list of words
2007-06-18 22:08:57 +00:00
Dimitar Ilccov
7c6fae81d5 Fixed the wrong user_descriptions in "Elven Council" 2007-06-18 19:45:03 +00:00
Dimitar Ilccov
819d326c92 Edited the maps so that the castles are not on the edge of the maps...
...which looks ugly with the new map frame and also made some other
aesthetic changes on the maps, edited the scenario cfgs to so that the
events match the new coordinates and fixed a couple of minor bugs in
them
2007-06-18 19:33:12 +00:00
Dimitar Ilccov
2b352a35c1 The map of the HttT Cliffs of Thoria scenario.
The scenario is still not done and not included into HttT storyline
2007-06-18 19:27:35 +00:00
Dimitar Ilccov
f808b65ee7 Remade the map of the HttT Elven Council scenario...
...and split the map data from the scenario file into a separate map file
2007-06-18 19:24:47 +00:00
Nils Kneuper
521e71137a pot-update 2007-06-18 17:39:09 +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
623eb6cbf5 wmllint can now detect the syntax boucman wants to deprecate. 2007-06-17 22:31:39 +00:00
Benoît Timbert
e566b278ef French translation update 2007-06-17 21:39:20 +00:00
Patrick Parker
710c031ea8 prevent friends_back_button_ from being hidden by friends list
note: the layout of this panel still looks ugly and could use a re-design
2007-06-17 18:24:36 +00:00
Nils Kneuper
139171b05b updated Polish translation 2007-06-17 18:03:28 +00:00
Patrick Parker
bb8a64f701 improve some vertical_padding calculations. 2007-06-17 17:57:55 +00:00
Nils Kneuper
b75898b680 never ever use " inside a message= block,
...this will lead to *very* strange results...
2007-06-17 17:55:02 +00:00
Patrick Parker
8219c45cf2 http://www.wesnoth.org/wiki/CodingStandards#Do_not_use_C-style_casts 2007-06-17 17:14:00 +00:00