Eric S. Raymond
8c796ff849
Start on resolving the last set of editor/maingame adhesions...
...
...by breaking preferences_display apart.
2007-07-08 10:54:18 +00:00
Ali El Gariani
f68aa84223
more code simplification in redraw_unit:
...
store/reuse the center of the hex and the inverse facing
2007-07-08 03:28:21 +00:00
Eric S. Raymond
689a69b433
Kill off the option to suppress lobby minimaps.
...
It doesn't save any network bandwidth and the amount of vertical space
it saves in the lobby display is insignificant. All it was doing was
cluttering up the prefs display and creating a code adhesion we can do
without.
2007-07-08 02:33:43 +00:00
Ali El Gariani
d0087f1535
fix location parameter of redraw_unit (const+reference)
...
use more standard names for variables ("loc" constistancy)
2007-07-08 02:33:35 +00:00
Ali El Gariani
e9c7a9c857
simplify the code to evaluate overlaps in front of the unit
...
also replace this annoying 2-cases switch by an if-else
2007-07-08 01:56:46 +00:00
Ali El Gariani
a60f2db2f9
remove display parameter in unit.overlaps()
2007-07-08 01:30:30 +00:00
Patrick Parker
1f045db8dd
make it easier to get wmlindent --help
2007-07-07 22:17:36 +00:00
Patrick Parker
e6d9458cd2
some minor fixes to wmlindent
2007-07-07 21:57:33 +00:00
Nils Kneuper
2623ef00e3
updated Lithuanian translation
2007-07-07 18:52:17 +00:00
Taurus
57effdb399
Ballancing
2007-07-07 17:28:51 +00:00
Lari Nieminen
1aa84cd38f
Fixed the flame sword animation.
2007-07-07 17:01:55 +00:00
Ali El Gariani
f193611c84
use scope trick to declare some variables only in the needed case
...
(mainly for code reading)
(I also tested it with gcc4.1 this time, since my gcc3.4 seems more
relaxed about this kind of things)
2007-07-07 17:00:32 +00:00
Nils Kneuper
7b38b9217e
updated German translation
2007-07-07 16:11:25 +00:00
Patrick Parker
5aacba5c88
remove some unnecessary code from the editor...
...
...and fix the scoping for a switch statement variable
2007-07-07 09:11:46 +00:00
Ali El Gariani
deb76d04b8
make the editor compile again. Seems to work with the new dialog code.
...
Sapient, please check if I did right, and maybe improve my comments.
2007-07-07 07:54:36 +00:00
Ali El Gariani
7c3b335eea
comment out an useless line (why setting a color that we will not use)
2007-07-07 06:48:47 +00:00
Ali El Gariani
516a0fdd12
regroup related parts of redraw_unit
2007-07-07 06:33:32 +00:00
Ali El Gariani
e76bf38544
when drawing unit's elements, store the adjusted height...
...
...instead of evaluating it each time
2007-07-07 06:23:50 +00:00
Ali El Gariani
dd6246cfde
small optimization:
...
...do the invalidation caused by height adjutsement(+its evaluation)
only for standing units because animated units invalidated all the
adjacent hexes anyway
2007-07-07 06:06:45 +00:00
Ali El Gariani
51b6af36ce
flying units caused useless invalidation of 3 south hexes...
...
...when flying above terrain with negative height adjustment
2007-07-07 05:53:15 +00:00
Ali El Gariani
2a63fa342b
fix some castings
2007-07-07 05:39:17 +00:00
Gunter Labes
e31334ddd6
convert the file back to UTF8 and correct the offending name
2007-07-07 04:43:53 +00:00
Patrick Parker
bcffc3f0fc
help dialog background was not clearing
2007-07-07 03:57:07 +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
Gunter Labes
30c32246c7
updated map
2007-07-06 23:52:43 +00:00
Eric S. Raymond
427a0b0ef1
Clean up a detail of the change back to one dialog object interface
...
(that is, basic_dialog is gone).
2007-07-06 21:27:40 +00:00
Ali El Gariani
1ae8e3cc2b
Fix the "menu stays open" bug and glitches,
...
...by using the scope trick to kill the dialog before other actions.
Maybe later remove these {} if show() is improved to unrender automaticaly.
(grep "this will kill the dialog" to spot those)
2007-07-06 20:30:48 +00:00
Mark de Wever
a319f8739e
Added the sync function, needs some refactoring after more testing.
2007-07-06 20:20:30 +00:00
Eric S. Raymond
ec1813d9bb
A half-step towards disentangling the dialog class from the help system...
...
*wthout* losing help buttons this time.
2007-07-06 20:14:03 +00:00
Ali El Gariani
6d2e26c743
add a cancel button to status table because:
...
- closing with enter now cause a scrolling
- it allow to close it with esc and outside right click
2007-07-06 20:12:28 +00:00
Mark de Wever
7d2019dd9c
It's nice to rename files, but then the references should be updated as well.
2007-07-06 20:10:03 +00:00
Ali El Gariani
bf52254eb9
use the same scope trick to kill the dialog before scrolling...
...
...as used for unit list maybe later remove these {} if show() is
improved to unrender automaticaly
2007-07-06 20:05:24 +00:00
Eric S. Raymond
ef90332813
Added a feature: clicking on a side in the Status dialog...
...
...now scrolls to the side leader.
2007-07-06 18:23:58 +00:00
Taurus
7d3bc15f0b
Balancing, and Fixed 'User_Description' Bug
2007-07-06 18:13:50 +00:00
Mark de Wever
82d9e803b3
Added animated.i as source file for doxygen.
2007-07-06 17:27:10 +00:00
Eric S. Raymond
341490e805
Reduce some more show_menu() calls.
2007-07-06 17:21:45 +00:00
Nils Kneuper
1ffa8f1565
added some svn ignore values for the new textdomains
2007-07-06 16:08:41 +00:00
Gunter Labes
bfa92d6eeb
ignore wesnoth_editor.exe as well
2007-07-06 15:59:49 +00:00
Gunter Labes
522d27eaae
add an ignore for *.pyc files
2007-07-06 15:50:10 +00:00
Gunter Labes
35737d99f9
removed a conflict svn reported and got committed on accident
...
Taurus, please double check that it was the right thing to do
2007-07-06 15:30:01 +00:00
Thomas Baumhauer
ed1ee95cd4
Very small fix in DiD
2007-07-06 15:12:07 +00:00
Nils Kneuper
18c526e664
and one more pot-update, man, I love it...
2007-07-06 11:26:21 +00:00
Nils Kneuper
e604d49e97
moved did content completely into it's own textdomain
2007-07-06 11:23:39 +00:00
Nils Kneuper
762e16ee31
move multiplayer in its own textdomain
2007-07-06 11:18:41 +00:00
Eric S. Raymond
23819937c9
Reduce another show_dialog() call.
2007-07-06 11:15:18 +00:00
Nils Kneuper
28d5f93fbe
just another pot-update
...
(should not be needed, just to make sure everything works nice and
strings are not in both, wesnoth-units and wesnoth)
2007-07-06 11:03:49 +00:00
Nils Kneuper
e98df81e1e
added new textdomain wesnoth-units
2007-07-06 10:59:03 +00:00
Eric S. Raymond
63c59d44d0
Add the capability to set a sort object on a dialog to set_menu,
...
...and use it to rewrite the recall dialog as an instantiation of dialog.
2007-07-06 10:49:28 +00:00
Nils Kneuper
c87e038988
get ready for moving units into their own textdomain
2007-07-06 10:21:55 +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