66504 Commits

Author SHA1 Message Date
Charles Dang
e7258407ec Cleaned up remaining uses of PANDORA define 2016-10-03 21:21:36 +11:00
Ignacio R. Morelle
2c5904ae0a cmake: Remove ENABLE_PANDORA option
Pretty much all of the code for supporting OpenPandora is gone from the
source tree, and the last two mentions have just been slated for
removal, so it's effectively dead.
2016-10-03 07:19:21 -03:00
Ignacio R. Morelle
ca5ef32636 Also drop mentions of SDL_net from documentation 2016-10-03 07:08:43 -03:00
Ignacio R. Morelle
4fe822b91b Drop mentions of SDL_net from documentati 2016-10-03 07:01:42 -03:00
Ignacio R. Morelle
8b341411d6 cmake: Remove SDL_net-related checks and substitutions 2016-10-03 06:59:48 -03:00
Charles Dang
99e114ab17 MP Create Game: display Era descriptions as menu item tooltips instead of in the description area 2016-10-03 18:00:00 +11:00
Charles Dang
dbbc0b7414 Dropdown List: set the tooltip on the whole panel, instead of just individual elements 2016-10-03 17:55:11 +11:00
Charles Dang
38680bde3b MP Create: remove vertical spacer lines 2016-10-03 17:19:57 +11:00
Charles Dang
051519b038 Fixup 59c0675691ff 2016-10-03 14:33:51 +11:00
Charles Dang
268f9beb1c Game Load: apply TC to unknown leader image 2016-10-03 14:32:58 +11:00
Charles Dang
59c0675691 Game Load: fixed a piece of legacy GUI1 formatting 2016-10-03 14:05:11 +11:00
Charles Dang
8241b0d173 Fixup 74bf3428e94f 2016-10-03 14:01:09 +11:00
Charles Dang
74bf3428e9 Title Screen: big code/formatting cleanup 2016-10-03 13:28:12 +11:00
Charles Dang
85a6a5132f Minor fixups to 6f7cb3901ebd 2016-10-03 06:19:56 +11:00
Charles Dang
6f7cb3901e Title Screen: refactored button handling to use dialog retvals
This also delegates the redraw_background handling to a separate flag, since retvals are, by nature, a post-display]
value, and as such cannot be evaluated prior to display.
2016-10-03 06:01:47 +11:00
Charles Dang
ae663df1f0 End Credits: use no-blur version of box_display panel
There's *massive* performance loss with the blurred version. This is most likely due to surface
blur being reevaluated every draw cycle, causing massive slowdowns.
2016-10-03 04:56:58 +11:00
Charles Dang
ef31880562 MP Lobby: refactored out the legacy_result stuff 2016-10-03 03:16:24 +11:00
mattsc
52826a3824 High XP attack CA: do not try to attack petrified enemies 2016-10-02 09:13:54 -07:00
mattsc
371b9b67ec Lua AI helper functions: remove attacks/moves on failed action
If this is not done, there are some rare cases in which a Lua AI might
get caught in an infinite loop by trying the same failed action over
and over again.
2016-10-02 09:13:54 -07:00
Charles Dang
16331d6bb0 Fixup ffe7884f533 2016-10-03 02:56:49 +11:00
Charles Dang
30d7df8094 Fix blurring not being displayed for box_display panels (such as in the titlescreen) 2016-10-02 13:49:04 +11:00
Charles Dang
1d1f426e69 MP Lobby: some minor cleanup 2016-10-02 13:24:51 +11:00
mattsc
52a4f2a0d1 Update Xcode project 2016-10-01 19:18:08 -07:00
mattsc
eefc28c138 Default AI MtT CA: remove guardian moves before moving other units
Deal with units with ai_special=guardian before all other units in the
move-to-targets candidate action. This can speed up move times on maps
with many guardians significantly, as the movemaps calculated for the
AI units later in the MtT CA do not include the guardians any more.
2016-10-01 17:08:17 -07:00
mattsc
6d7680494d Default AI MtT CA: do not evaluate movemaps until needed
Delay evaluating AI and enemy movemaps in the move-to-targets candidate
action until they are needed. This speeds up the AI move time on maps
with many ai_special=guardian units significantly, because no movemaps
are needed for these guardians.

An (admittedly extreme) tests case with 200 guardians saw a reduction
of MtT execution time from 10 seconds to 0.2 seconds.
2016-10-01 17:03:21 -07:00
Charles Dang
ffe7884f53 Fixed skip_ai_moves preference operating inversely to its chosen state
Before, it was displayed as skip_ai_moves but used as show_ai_moves internally. This caused problems
with the dialog field system in the prefs dialog, since the actual use of the value didn't match the
yes/no state the value was saved as.
2016-10-02 11:02:36 +11:00
Charles Dang
5037d8e876 Lobby: use mp_scenario_name for unknown scenarios 2016-10-02 10:05:56 +11:00
Charles Dang
cb46968285 Merge pull request #806 from Pentarctagon/Pentarctagon-two-portraits-fix
Pentarctagon two portraits fix
2016-10-02 09:36:56 +11:00
Pentarctagon
9df77488e3 Update message.lua 2016-10-01 14:28:50 -05:00
Pentarctagon
05cf2ba6cf Add ability to display two portraits at once
Adds the keys: mirror, second_image, second_mirror.  These allow a portrait to be displayed on the right and left of a message simultaneously as well as to mirror them.
2016-10-01 14:28:12 -05:00
Pentarctagon
5990347ed1 Fix the content of a message getting squished 2016-10-01 14:01:43 -05:00
Jyrki Vesterinen
54b801a433 tlistbox::get_rows_shown(): forward to tgenerator::get_items_shown() 2016-10-01 20:37:18 +03:00
Charles Dang
de8a4270a4 Forgot to include this in d88f591eb597 2016-10-02 02:58:57 +11:00
Charles Dang
d88f591eb5 Hack: store era addon id in mp game settings
This is so lobby games without the requisite era installed can display a name other than the
era's id, which isn't very nice to look at.

Note that I'm not sure if this is the best or cleanest way to handle this. At some point I'll
need to look more closely at the way addons configs are handled with regards to such games.
2016-10-02 02:57:41 +11:00
Jyrki Vesterinen
b9b0b0654a Fix chatbox not scrolling down when a new message arrives 2016-10-01 13:00:56 +03:00
Jyrki Vesterinen
667064a8af Experimental MP lobby: scroll to selected game less often
The lobby calls tlistbox::set_row_shown() every single time there is *any*
change in the gamelist. Most of the time, the visibility of rows hasn't
even changed.

Tlistbox::set_row_shown() calls content_resize_request() to determine if
twindow::invalidate_layout() needs to be called. Content_resize_request()
unconditionally calls show_content_rect() that checks if the selected item
is visible and scrolls to it if it isn't.

With this commit, set_row_shown() returns early if visibility of rows
hasn't changed. This reduces the frequency of scrolling.

This commit isn't a complete fix, since the selected game will still come
into view when, for example, a new game is created. However, at least this
improves the situation.
2016-10-01 12:03:48 +03:00
Charles Dang
722600a313 MP Staging: refactored handling of settings changes
Instead of immediately regenerating the side configs and pushing them to server in every widget callback (which
is especially expensive in the case of the gold and income sliders), we push updates to the server when the
network callback is called if the state_changed_ flag has been set.

This also cleans up some code from the previous attempt to make both the host and clients utilize this dialog.

Additionally, this fixes gold/income changes not being sent to the server.
2016-10-01 11:23:10 +11:00
Charles Dang
b4d460cd16 MP Join Game: layout improvements 2016-10-01 10:32:13 +11:00
Charles Dang
c05b8efc3f MP Staging: fixed bug where type id was displayed instead of name 2016-10-01 10:17:30 +11:00
Jyrki Vesterinen
8b5791c657 Fix two MSVC compiler warnings
And quit using the ancient C time API for seeding the RNG.
2016-09-30 22:53:34 +03:00
Charles Dang
e46fc2faa3 MP Staging: fixed header misalignment
For some reason, the left/right borders made them even more out of alignment. Optimally, these should still be
shifted 5 px to the right each, but that's a problem for another day (it'd likely mean a new label definition).
2016-10-01 06:50:45 +11:00
Jyrki Vesterinen
f7ee888456 Update Visual Studio project 2016-09-30 22:38:32 +03:00
Charles Dang
09f919e65e Lobby: enable downloading of missing eras/mods instead of just disallowing game joining 2016-10-01 05:20:23 +11:00
Charles Dang
3e45f25d13 Send modification addon_id when fetching game info from server 2016-10-01 05:11:50 +11:00
Charles Dang
39c99d076a Lobby: add missing border around player tree 2016-10-01 03:01:39 +11:00
Charles Dang
6c5df634aa Forgot to comment out Join Game dialog test call 2016-10-01 02:48:25 +11:00
Charles Dang
45ea8c6a43 Added GUI2 MP Join Game dialog
Note the faction select dialog doesn't appear for some reason.
2016-10-01 02:09:20 +11:00
Charles Dang
fe2e119b25 MP Create Game: fixed widespread typo 2016-09-30 21:08:47 +11:00
Charles Dang
688c3f600d Faction Select: use small label for recruits list
This is better for factions with long lists like those in Age of Heroes
2016-09-30 15:17:58 +11:00
Charles Dang
12838d6f67 Preferences: fixed initial Advanced selection not being expanded if it had a description 2016-09-30 15:15:15 +11:00