66783 Commits

Author SHA1 Message Date
Gregory A Lundberg
9d08723236 [text_input] Fix bug 25173
Added an internal flag to indicate [text_input] appeared so we no longer require label= to be present.
2016-10-24 21:58:26 -05:00
mattsc
6a96e88c9a Update changelog 2016-10-24 06:33:57 -07:00
Charles Dang
f4870a86d0 Cleaned up kate modlines 2016-10-24 23:32:07 +11:00
Charles Dang
d8027de68f Chat Log: cleaned up invalidate_layout calls
These were preventing b89731c7ac48 from being fully effective, since those calls resulted in the scroll label
scrolling top the top. However, it still doesn't fix this happening on initial show.
2016-10-24 23:31:31 +11:00
Charles Dang
600e0c47b0 Chat Log: made dialog fixed-size and cleaned up WML 2016-10-24 23:29:16 +11:00
Charles Dang
58a4a455a9 DiD: made use of new Gate terrains 2016-10-24 20:15:21 +11:00
Ignacio R. Morelle
00d00ccffc travis: We don't use SDL_net anymore 2016-10-24 05:53:19 -03:00
Ignacio R. Morelle
74d2559a14 travis: Pull libvorbis-dev which was previously pulled by SDL_mixer 1.2 2016-10-24 05:52:36 -03:00
Ignacio R. Morelle
8b004d6ab7 travis: Don't install legacy SDL 1.2 libraries 2016-10-24 05:41:58 -03:00
Charles Dang
231cb1a4a4 Preferences: demote Show Halos to Advanced 2016-10-24 16:46:42 +11:00
Charles Dang
b89731c7ac Chat Log: always scroll to bottom when updating messages (bug #19320) 2016-10-24 16:36:07 +11:00
doofus-01
bc46b9c2a2 Revised stone walls and added rusty and wooden gate terrains 2016-10-24 13:03:29 +11:00
Jyrki Vesterinen
5253455021 Ensure that mapgen Lua kernel overrides wesnoth.random() 2016-10-23 20:19:22 +03:00
Charles Dang
e6122aefca MP Options Helper: correctly implement option_source::operator<
This fixes an issue where the Defualt button could reset more options than just its own relevant ones.
2016-10-24 01:49:43 +11:00
Charles Dang
b1d886baea MP Options Helper: fixed choice options saving indexes instead of values 2016-10-24 01:29:21 +11:00
Jyrki Vesterinen
e7c2105c48 Add a script to simulate heavy lobby traffic
Plus a bunch of changes which were necessary for the script to work:
* The "simulate lobby activity" plugin now exits when the server is shut
  down.
* The plugin now uses wesnoth.random() for random number generation.
  Math.random() uses a fixed seed, which would make all the clients
  perform the exact same actions.
* Exposed wesnoth.random() to plugins to allow the change above.
* --nogui no longer implies --wconsole on Windows. With implied --wconsole
  the clients attached themselves to the standard output of the Python
  script, which made it impossible to see the output of the script itself.
2016-10-23 16:52:36 +03:00
Wedge009
5d14459594 Initialise member has_tod_bonus_changed_ in constructor (bug #25218) 2016-10-23 21:49:31 +11:00
Charles Dang
2e2bee7575 MP Options Helper: further refactoring 2016-10-23 21:10:20 +11:00
Charles Dang
668183bbfe Merge pull request #839 from GregoryLundberg/GL_stop_infinite_recursion
AI Controller Fix bug: infinite recusion
2016-10-23 19:08:35 +11:00
Gregory A Lundberg
8da524d984 AI Controller Fix bug: infinite recusion
Make a copy of just the header for use in sub-menus.
2016-10-23 03:04:42 -05:00
Charles Dang
cc91cdff4a Merge pull request #838 from GregoryLundberg/GL_option_message
Completed deprecation of [option]message=
2016-10-23 13:45:41 +11:00
Gregory A Lundberg
bc67f01909 AI Controller Bug fix: deprecation message
[option]message= has been deprecated, use label=
2016-10-22 21:39:39 -05:00
mattsc
fa48c9c2ac ai_helper: compare unit proxies directly, not by coordinate
This was not possible when this code was first written, but it is valid
syntax now.
2016-10-22 15:14:26 -07:00
mattsc
acecd77bb4 Lua AIs: use new syntax for iterating over attacks
This is both simpler and faster than the old syntax.
2016-10-22 13:54:32 -07:00
Charles Dang
3683c75968 Fixup cf670b99c6fa
Caused an assert to trigger by moving this line of code. Moves it back.
2016-10-23 06:42:33 +11:00
Charles Dang
cf670b99c6 MP Options Helper: some refactoring to reduce redundant code 2016-10-23 05:46:43 +11:00
gfgtdf
16e66fb1aa Merge pull request #837 from GregoryLundberg/GL_Fix_Lua_integer_index
Lua integer indices
2016-10-22 19:26:06 +02:00
Charles Dang
755b6b8015 Codeblocks: properly include wesnoth_lua_config.h in lua sources 2016-10-23 03:56:36 +11:00
Celtic Minstrel
205aafc832 Minor improvement to Lua error messages 2016-10-22 10:24:28 -04:00
Charles Dang
6826e112f0 MP Options Helper: skip any game, era, or mod with no [options] subtag
Previously, these would still get included in the final options config and result in a [type] id = tag being saved
in prefs with no [option] tags. When loaded in the constructor, this would pollute the options_data_ map, which would
then in turn pollute the resulting config further, ad infinitum.
2016-10-23 01:18:28 +11:00
Charles Dang
2967fdbe19 MP Create Game: save selected option values in prfes 2016-10-23 01:06:43 +11:00
Charles Dang
d54f440cb9 Game Load: use small label for leader name
This is to reduce the number of leader names that would cause a list resize.
2016-10-23 00:39:31 +11:00
Charles Dang
80881de369 Made Preferences and Game Load windows fixed-size
Both are slightly wider than before. In the latter case, 750 would have matched the old automatic width, but
for some reason, the window's scrollbars were showing. Need to investigate further.
2016-10-23 00:35:21 +11:00
gfgtdf
806a388b9d fix lua crashing after an lua error
This fixes 797613f760

which changed the luaW_pcall code from.

 if(lua_pcall(..)) {
   ...
   lua_pop(L, 2);
   return;
 }
 lua_remove(L, error_handler_index);

to

 int r = lua_pcall(..);
 lua_remove(L, error_handler_index);
 if(r) {
   ...
   lua_pop(L, 2);
   return;
 }

so that three values were removed from the stack in case of an error which caused random segfaults later.
2016-10-22 15:28:03 +02:00
Charles Dang
06570d093e Removed 'draw outline around widget' stuff 2016-10-23 00:07:24 +11:00
Charles Dang
71bc3f356b Added GUI_WINDOW_FIXED_SIZE_CENTERED macro 2016-10-22 23:58:00 +11:00
Wedge009
749123d0bb Change to numerical equality check (though it doesn't seem to help in situations like typing x-x). 2016-10-22 23:31:20 +11:00
Wedge009
2d75dff147 Correct gui2::tpoint type. 2016-10-22 22:59:33 +11:00
Charles Dang
afc90a03cf MP Create Game: also update options on mod or era select 2016-10-22 22:41:06 +11:00
Charles Dang
c2e6fda94c MP Create Game: don't update tab contents when regenerating random maps
This moves the tab update code to on_game_select from update_details, since the latter is called when
regenerating random maps and doing so has no possibility of changing tab contents. The only thing that
can do that is selecting a new game. If this ceases to be true in the future, this can be reverted.

This probably should have been done in 80115b11faa3 - in fact, the commit message makes it sound like
it was, but it was not due to an oversight on my part.
2016-10-22 21:39:08 +11:00
Charles Dang
098f1a15aa Drop Down List: minor code simplification 2016-10-22 20:57:04 +11:00
Charles Dang
632c867144 Drop Down List: fixed dialog closing when scrolling with scrollbar (bug #25195) 2016-10-22 20:56:29 +11:00
Charles Dang
4595e8d374 Scrollbar: made tstate enum public
We should evaluate whether this should be done for all widgets. Right now, having them private makes a public get_state
rather useless, since it can't be stored or compared against anything.
2016-10-22 20:53:49 +11:00
Charles Dang
2e982c0824 Scrollbar Container: added some member getters 2016-10-22 20:52:29 +11:00
Charles Dang
374eb2ecb7 Added an override for point_in_rect that takes a tpoint argument 2016-10-22 20:51:51 +11:00
Charles Dang
80115b11fa MP Create Game: delegate tab content updates to game selection
Previously, on_tab_select was called every time update_details was called (including on game selection), as well as
when a tab was manually selected. I had enabled the updating of tab 3 (game settings) on every call to fix an issue
where game settings were incorrect if that tab had not been selected. However, it was recently discovered that the
same issue affected tab 2 (custom options). Since the only time the contents of the tabs change is when called from
update_details anyway (manually selecting a tab did not), it made sense to move the updating code out of on_tab_select.

This is also a performance optimization, since it prevents tabs' contents from being updated every single time a new
one was selected, when in reality there would be no change unless a game was changed. This will also prevent any future
issues of the same ilk and ensures the state of all widget is always in sync with the settings of the selected game.
2016-10-22 18:51:09 +11:00
mattsc
1cef83b08a ai_helper: fix indentation 2016-10-21 21:09:54 -07:00
Gregory A Lundberg
e28be22c64 Enable integer string compatability
This changes Lua 5.3.3 to not append ".0" to numbers which are integer values.
2016-10-21 23:09:51 -05:00
Gregory A Lundberg
874e568e99 Workarround MP work incomplete 2016-10-21 23:09:51 -05:00
Gregory A Lundberg
89aee83bbf 2p_Dark_Forecast Fix bugs 2016-10-21 23:09:51 -05:00