Commit graph

66063 commits

Author SHA1 Message Date
Celtic Minstrel
844cfc5fbf Attempt to fix Travis missing initializer warnings 2016-09-08 17:26:48 -04:00
Charles Dang
b07810608a Renamed the mp_chatbox widget simply "chatbox" 2016-09-09 08:25:04 +11:00
Charles Dang
765f0bfc6a Moved chatbox code to its own file and updates schema 2016-09-09 07:47:02 +11:00
Celtic Minstrel
8e8cbfb5d2 Fix for Travis compiling C file with g++/clang++ 2016-09-08 16:28:30 -04:00
Charles Dang
7950fafba6 Updated CB projectfile 2016-09-09 07:23:09 +11:00
gfgtdf
00d04b0b91 use c++11 =delete in connect_engine 2016-09-08 22:14:50 +02:00
gfgtdf
f37d5d941f Don't freeze the application when waiting too long for a random seed. 2016-09-08 22:14:49 +02:00
gfgtdf
59f7fab5b4 fix wesnothd
We shouldn't modify a container while iterating over it in that way, so
we first store all iterator to modify ina  seperate vector.
2016-09-08 22:14:47 +02:00
gfgtdf
1c2bb78d15 add mp chatbox widget
to be used in mp lobbay and mp connect.
2016-09-08 22:14:45 +02:00
Celtic Minstrel
e654fbbb49 Copy attacks when copying a unit 2016-09-08 14:51:05 -04:00
Celtic Minstrel
ac4b024fa6 fixup! Drop Down List: fixed dialog not dismissing when clicking outside area" 2016-09-08 14:50:22 -04:00
Celtic Minstrel
5b806d4f66 fixup! Allow GUI2 dialogs to disable the default dialog plugins context 2016-09-08 14:21:26 -04:00
Charles Dang
1923b6598d Drop Down List: fixed dialog not dismissing when clicking outside area 2016-09-09 03:02:53 +11:00
ln-zookeeper
53b9ace13b Added a ripple to the Tentacle of the Deep baseframe using IPF 2016-09-08 15:50:06 +03:00
ln-zookeeper
40b6fc888a Animations for the new Tentacle of the Deep, mostly by homunculus
From https://forums.wesnoth.org/viewtopic.php?p=570440#p570440

I changed the motion blur somewhat, cropped the frames differently, and made a north-facing version of the attack animation.
2016-09-08 15:37:28 +03:00
Charles Dang
640a3ff46d Status Label Helper: provide different default value getters based on base type of source widget 2016-09-08 20:59:41 +11:00
Charles Dang
39bd46accc Removed unused parameter 2016-09-08 18:55:30 +11:00
Charles Dang
2694c1d7a7 Restored the "quit" retval as an alias for "cancel" 2016-09-08 18:55:11 +11:00
Charles Dang
9a569df848 MP Create: basic implementation of saved games as their own category (debug only) 2016-09-08 18:53:58 +11:00
Celtic Minstrel
5024fc1305 Update weapon format reference in the manual 2016-09-08 03:45:22 -04:00
Celtic Minstrel
208a43cff1 Update changelog 2016-09-08 03:16:12 -04:00
Celtic Minstrel
18b7549cdc Fix unit tests 2016-09-08 03:10:38 -04:00
Celtic Minstrel
045521d5f6 Make ;choose_level work in tutorial and test scenarios 2016-09-08 02:24:18 -04:00
Celtic Minstrel
d0906ceac5 Refactor titlescreen loop so that it redraws properly behind other dialogs 2016-09-08 02:24:16 -04:00
Celtic Minstrel
da437f74ca Allow GUI2 dialogs to disable the default dialog plugins context 2016-09-08 02:24:14 -04:00
Celtic Minstrel
e32b88568e Use loading screen instead of network transmission screen when connecting to the MP server 2016-09-08 02:24:13 -04:00
Celtic Minstrel
abdba44e73 Enable navigating menus with the arrow keys 2016-09-08 02:24:10 -04:00
Celtic Minstrel
fbdceb9fc6 Make listboxes accept arrow key input when no item is selected
The left and up arrow keys select the last item in the listbox.
The right and down arrow keys select the first item in the listbox.
2016-09-08 02:24:08 -04:00
Celtic Minstrel
d8de472a57 Make tgenerator::get_item_shown also check the grid visibility
All but two calls to this function manually checked the visibility,
so it seemed logical to roll the check into this function.

For the other calls, it seems like it wouldn't matter too much,
except maybe in rare edge cases
2016-09-08 02:24:07 -04:00
Celtic Minstrel
da92ac0635 Fix empty else warning 2016-09-08 02:24:06 -04:00
Celtic Minstrel
b4daf7e1dd Fix some build issues and minor cleanup of dialog field registration API 2016-09-08 02:22:27 -04:00
Charles Dang
6aee108298 loadgame: replaced individual flag getters with data struct getter 2016-09-08 12:37:43 +11:00
Charles Dang
84de6bafb1 Unit Attack: minor cleanup 2016-09-08 12:31:21 +11:00
Charles Dang
8c270f9081 Slightly hacky attempt to make disabled weapons check context-aware 2016-09-08 12:25:07 +11:00
Charles Dang
a0453ad5d7 Don't show Attack dialog if all attacker weapons are disabled 2016-09-08 11:11:40 +11:00
Charles Dang
276047ce96 Preferences Dialog: tweaked some labels in Friends List view 2016-09-08 10:31:18 +11:00
Charles Dang
969018f7df MP Create: make use of window exit hook for showing the difficulty dialog 2016-09-08 10:30:07 +11:00
Charles Dang
d858c6b739 GUI2/Window: implement dialog exit hooks
These differ from post_show events, which are part of tdialog and show after the window has closed.
Nothing in post_show can stop the dialog closing. This new exit hook functionality allows setting of
functions that fire before a window attempts to close by any method, and can halt the order.

This is much simpler than attempting to hook into every closure source on a per-dialog basis.
2016-09-08 10:27:45 +11:00
Charles Dang
67f3113808 Unit Attack: attempt to fix disabled weapons showing 2016-09-08 09:00:44 +11:00
Charles Dang
a0ad80299b Fixed a bunch of issues with game loading
* If no game was show in the dialog (due to an invalid filter) one could still use Enter to load a game
* In the same situation above, ESC would cause a crash
* Canceling the Select Difficulty dialog would still try to load a game
  This might have been the intended behavior, but it's not optimal.
2016-09-08 07:50:51 +11:00
Charles Dang
9ea794e5a4 Listbox: added getter to check if any row is visible 2016-09-08 07:43:45 +11:00
Charles Dang
a281e16bc4 Something else I forgot to commit with 5ee75aa473 2016-09-07 19:03:36 +11:00
ln-zookeeper
15241cd0a6 Convert remaining – to × in strings describing attack stats 2016-09-07 10:43:30 +03:00
Charles Dang
0034c8a378 Cleaned up includes 2016-09-07 17:55:00 +11:00
Charles Dang
6f510ad07d Forgot to commit some WML for 5ee75aa473 2016-09-07 17:46:58 +11:00
Charles Dang
8dfaac367b Preferences Dialog: cleaned up Animate Map toggle code 2016-09-07 17:44:33 +11:00
Charles Dang
5ee75aa473 Preferences Dialog: refactored handling of friends list 2016-09-07 17:43:40 +11:00
Charles Dang
4f6c8690a2 Preferences Dialog: some cleanup suggested by @celticminstrel 2016-09-07 14:13:01 +11:00
Celtic Minstrel
be7670bea5 Fix [modify_side][ai] again
A logic error caused any added aspects to be mixed together with
existing aspects if it was executed before the AI had been initialized.
This is the cause of the unknown aspect warnings from
GregoryLundberg/wesnoth#28
2016-09-06 21:49:26 -04:00
Celtic Minstrel
7db4527b0f Simplify config::merge_children_by_attribute 2016-09-06 21:49:25 -04:00