51390 Commits

Author SHA1 Message Date
Ignacio R. Morelle
30c8f93e6c website: New Year copyright update 2013-01-01 00:47:00 +00:00
J. Tyne
86b64f9f71 Store DSU toggles and manual shroud updates in replays.
This should resolve the remaining reported bugs with sighted events.
2012-12-31 22:40:05 +00:00
Ignacio R. Morelle
849274c0f4 Amend changelog entry for 2012-12-23T04:15:40Z!shadowm@wesnoth.org...
...lacking additional information
2012-12-31 22:03:29 +00:00
J. Tyne
f61227e5b3 Use the undo stack during replays.
This is so that replays will be able to accurately replay delayed
shroud updates.  (Using the undo stack could have been restricted to
teams using fog or shroud, but it is simpler to just generate the
stack for everyone.)
2012-12-31 21:57:23 +00:00
J. Tyne
beb4b111da I missed a line that was supposed to be in 2012-12-31T19:58:45Z!jt_coding@verizon.net. 2012-12-31 21:30:47 +00:00
Steven Panek
1d2b2dff69 Updated the British English translation. 2012-12-31 21:14:43 +00:00
J. Tyne
1ded6ceeab Rename namespace action back to "actions".
This is to avoid potential name clashes with any classses named
"action", like what shadowm found in the test suite. (The quick fix of
2012-12-31T05:35:28Z!jt_coding@verizon.net is now reverted in favor of this fix.)  One complication
is that there is already an "ai:actions" namespace, so within the "ai"
namespace, the renamed namespace is qualified as "::actions".
2012-12-31 20:50:57 +00:00
J. Tyne
4105b0ba05 Merge three codepaths for recalling units (player, AI, and replay). 2012-12-31 19:58:45 +00:00
J. Tyne
bcff05a7fd Resolve an ambiguous name.
This might be just a quick fix so things compile for now.

I'll get back to this tomorrow.
2012-12-31 05:35:28 +00:00
Ignacio R. Morelle
0e6e1eb04c gui2/taddon_filter_options: Keep track of the add-on type...
...fields and implement a button to toggle them all at once

Also needed to do some refactoring to achieve the tracking part. Not
that anyone really needs to see that in a separate commit.
2012-12-31 02:28:34 +00:00
Ignacio R. Morelle
21e46bf2ba gui2/taddon_filter_options: Swap left and right option columns
Having the listbox to the right seemed arbitrary and not particularly
pleasing from an aesthetic point of view.
2012-12-31 02:28:17 +00:00
Ignacio R. Morelle
b0c68e6779 gui2/taddon_filter_options: Rearrange grid layout...
...for the areas containing the type checkboxes and the status listbox

The previous grid layout seemed strictly presentational and rather
unhelpful from an organizational/semantic standpoint. The new layout
should also make a couple of upcoming changes to the dialog's widget
arrangement and contents easier to implement.
2012-12-31 02:27:48 +00:00
J. Tyne
9edc088714 Merge three codepaths for recruiting units (player, AI, and replay). 2012-12-31 01:52:09 +00:00
J. Tyne
e0d4378c88 Expanding the "action" namespace. 2012-12-31 01:31:13 +00:00
J. Tyne
2c6e0c1585 Expanding the "action" namespace. 2012-12-31 00:38:07 +00:00
Alexander van Gessel
d82762b87d Split the 'not_living' unit status into...
...unpoisonable, undrainable and unplagueable
2012-12-31 01:03:53 +01:00
J. Tyne
6a6780af0d Expanding the "action" namespace. 2012-12-30 22:50:10 +00:00
J. Tyne
93fb1f27c9 Rename namespace "actions" to "action" (I just think it will read better). 2012-12-30 22:34:29 +00:00
Anonymissimus
3347a92755 uint -> unsigned int
uint is not a standard type => compiler error
2012-12-30 19:53:48 +00:00
Matthias Schoeck
7d35decc9e Add missing apostrophe 2012-12-30 01:03:30 +00:00
Fabian Müller
9a0e5cbb9e Implementing feature request bug #19545...
...by applying the patch provided and adding an additional break
condition to prevent infinite looping.
2012-12-29 23:21:14 +00:00
Matthias Schoeck
55e2307be7 Add 2012 GCI students to credits 2012-12-29 22:02:27 +00:00
Matthias Schoeck
a54a6a75b4 Update changelogs and release notes 2012-12-29 21:51:01 +00:00
Matthias Schoeck
93ba347695 Remove all references to Wesnoth Lua Pack dbms debug function.
They were all commented out, but better to remove them altogether.
2012-12-29 20:20:56 +00:00
Matthias Schoeck
b138e47184 Introduce 18 different Micro AIs.
This includes the [micro_ai] tag, the code for the Micro AI engines
and 14 test scenarios.  Full documentation at
http://wiki.wesnoth.org/Micro_AIs
2012-12-29 20:05:55 +00:00
Steven Panek
528aebd76f Updated the Galician translation. 2012-12-29 18:42:19 +00:00
Simon Forsyth
cd9bc8e64f Validate moves from previous evaluations before executing them 2012-12-29 12:32:17 +00:00
Matthias Schoeck
bf7c8b9662 Use new syntax to include default (RCA) AI components 2012-12-29 05:28:32 +00:00
Ignacio R. Morelle
08e60f36e2 gui1: Forward keyboard-based selection or cursor manipulation events...
...from non-editable textboxes

This effectively removes the selection/cursor manipulation part of
2012-12-23T06:10:31Z!shadowm@wesnoth.org. Without obvious visual cues as to what textbox has the current
focus it is only good for confusing users. Additionally, at least two
existing GUI-based IRC programs seem to do without selection/cursor
manipulation on the channel/query view box.
2012-12-29 03:26:11 +00:00
Ignacio R. Morelle
d8d4ce1654 gui1: Rework textbox event forwarding to eliminate duplicate...
...(actually quadruplicate) events.  Changed from 2012-12-23T06:10:46Z!shadowm@wesnoth.org.

Due to the way focusing works, the focus switch in the middle of the
forwarding action would create a duplicate event for the origin textbox,
resulting in a duplicate event for the target (a total of four events to
process).

Instead, make the implementation of gui::textbox::handle_event()
forwarding-aware, and provide a wrapper for the events engine
implementation to use by default.
2012-12-29 03:25:05 +00:00
Ignacio R. Morelle
fccd55815b gui1: Make the content of disabled textboxes look like it
More specifically, blit with 30% opacity, and omit the highlight
background whenever there's a selection.
2012-12-29 03:24:47 +00:00
Ignacio R. Morelle
dd30163027 mp: Toggle the Filter textbox's enabledness, not its editability
Solves various focus-stealing issues introduced by 2012-12-23T06:10:31Z!shadowm@wesnoth.org.
2012-12-29 03:24:33 +00:00
Ignacio R. Morelle
b1171cb3a1 gui1: Make disabled textboxes look and behave like...
...non-editable textboxes used to do

This should solve various focus-stealing issues related to the Filter
textbox in the old-lobby since non-editable textboxes gained the
ability to have focus in 2012-12-23T06:10:31Z!shadowm@wesnoth.org.
2012-12-29 03:24:05 +00:00
Matthias Schoeck
7eb57b40dd Update AI helper library files...
...and adjust experimental multiplayer AI code accordingly
2012-12-29 00:36:54 +00:00
Fabian Müller
80f617b044 Fixed the spelling in a comment. 2012-12-28 23:55:07 +00:00
Simon Forsyth
0f15ff94db Bugfixes and improvements for experimental multiplayer AI.
Avoid crash near end of games with turn limits.

Properly identify poison immune units.

Better timing for keep switching.

Handle more weapon specials involving damage.
2012-12-28 21:49:35 +00:00
Simon Forsyth
3673f79c8a Update changelog 2012-12-28 21:36:52 +00:00
Simon Forsyth
c854a14aa8 Avoid infinite loop if fewer than two ships are alive. Fixes bug #20389 2012-12-28 20:24:50 +00:00
J. Tyne
55ea21ac78 Add support for the undo stack tracking when shroud updates are delayed. 2012-12-28 02:00:08 +00:00
J. Tyne
9fb4d91b48 Have [effect] apply_to=defense modify absolute values...
...if not replacing the old values.

Thus positive numbers will always make the unit easier to hit, while
negative numbers always make it harder. (bug #20242)

This allows WML authors to not worry about special cases like horsemen
in forests. In addition, should it be decided to change how that case
is defined (currently by setting forest=-70), that change could be
done without changing the WML for effects that add to (or subtract
from) defenses.
2012-12-27 00:20:45 +00:00
J. Tyne
edd9ea0286 Enforce the minimum movement costs and resistances...
...when those are modified by an [effect].
2012-12-26 20:45:17 +00:00
J. Tyne
7178438765 Remove vestiges of the --smallgui command line parameter,
...which was made unnecessary in 1.9.5.
2012-12-26 19:29:38 +00:00
Nils Kneuper
c0b1202aed updated Portuguese (Brazil) translation 2012-12-24 11:07:00 +00:00
Ignacio R. Morelle
17a029275e gui1: Restore focus to the original textbox...
...after resending relevant events to its input target

This effectively fixes bug #5877, *again*. 2012-12-23T06:10:46Z!shadowm@wesnoth.org introduced quite a
regression in the form of switching the focus permanently as soon as the
user presses the modifier key in Shift+<arrow> and Shift+C, requiring
improbable typing skills to get e.g. a Shift+C event _before_ a solitary
left or right Shift event.
2012-12-23 07:54:43 +00:00
Ignacio R. Morelle
65067325c0 Revert "gui1: Ignore solitary (i.e. not as modifiers) left or right Shift...
...events on textboxes"

This reverts commit 2012-12-23T07:29:01Z!shadowm@wesnoth.org.

While ignoring solitary modifier keys is good and all, it may be
potentially counterproductive to do so if SDL's definitions of such ever
change, and this is not the right approach to handling the actual issue.
2012-12-23 07:54:31 +00:00
Ignacio R. Morelle
9c53819899 gui1: Ignore solitary (i.e. not as modifiers) left or right Shift events...
...on textboxes

This allows selection manipulation shortcuts to work on the lobby
backlog textbox as intended by 2012-12-23T06:10:31Z!shadowm@wesnoth.org. This cropped up as a
side-effect of 2012-12-23T06:10:46Z!shadowm@wesnoth.org. Since neither left or right Shift yield
printable characters, it makes no sense to process them when not
acting as key modifiers.
2012-12-23 07:29:01 +00:00
Ignacio R. Morelle
0cc774c6e3 Attaching bug #5877 to the changelog entry for 2012-12-23T06:10:31Z!shadowm@wesnoth.org 2012-12-23 06:19:56 +00:00
Ignacio R. Morelle
855de445e0 mp: Set the lobby chat entry textbox...
...as the edit target for the backlog textbox
2012-12-23 06:10:58 +00:00
Ignacio R. Morelle
f29b5b3758 gui1: Make it possible to define an edit target textbox...
...for a non-editable textbox

Content-altering events on a non-editable textbox are forwarded to the
edit target textbox as long as it is editable itself.
2012-12-23 06:10:46 +00:00
Ignacio R. Morelle
fae847e48e gui1: Allow selection manipulation and copy for non-editable textboxes
In particular, multiline textboxes. And more specifically, the old
(default) lobby backlog textbox. This is a rather revolutionary feature.
Wesnoth is truly this century's greatest pioneer in user interface
design and implementation.

A few caveats:

 * In order for this to not conflict with other textboxes' selections, I
   had to make it possible for non-editable textboxes to get focus. In
   the particular case of the lobby, the result can be visually
   confusing since we don't currently have a way to show that a
   non-editable textbox has focus. This will be addressed by another
   commit later.

 * Moving the mouse for the first time after the old lobby is shown
   causes the filter box to display a black rectangle at the start when
   it is grayed out. This appears to be a side-effect of the way mouse
   events are handled in GUI1 textboxes, and it can actually happen
   without this commit too if one *clicks* on the filter textbox
   instead.

 * Shift+Up, Shift+Down, Shift+PgUp, Shift+PgDown do not do anything
   yet.

 * Shift+Home, Shift+End adjust the selection relative to the start of
   the box's overall contents as opposed to the current line.
2012-12-23 06:10:31 +00:00