Commit graph

66063 commits

Author SHA1 Message Date
gfgtdf
869d5a1b78 fix travis build
don't know why the previous code compiled on msvc but not on travis.
2016-08-10 17:21:38 +02:00
gfgtdf
16d5221934 fixup a20f221e83 and improve advance_unit() interface 2016-08-10 16:57:54 +02:00
gfgtdf
a20f221e83 remove dialogs.cpp
And move its code in other files where it fits better.

This also moves some code from actions.cpp to the new file
advancements.cpp

This also removed a parameter from show_objectives and
menu_handler::objectives that was always gui_->viewing_side()
2016-08-10 16:06:54 +02:00
Charles Dang
c3f07f1f73 tunit_attack: simplify damage calc callback by calling gui::show_dialog directly
As opposed to manually "clicking" the button.
2016-08-10 22:28:43 +11:00
Charles Dang
34d6df9e43 Exclude Unit Advance from tests 2016-08-10 21:23:15 +11:00
Charles Dang
11162e02e7 Game Stats: fixed handling and display of leaderless, non-hidden sides 2016-08-10 19:46:25 +11:00
Charles Dang
fc0235d675 Removed GUI1 unit preview pane code (finally!) 2016-08-10 18:11:45 +11:00
Celtic Minstrel
50c0c56fdf Minor cleanup 2016-08-10 03:09:31 -04:00
Celtic Minstrel
41f3547fe4 Update scons and CMake 2016-08-10 03:07:34 -04:00
Celtic Minstrel
5a5ecc98c2 Unit tests: make global fixture a bit more readable 2016-08-10 03:07:32 -04:00
Celtic Minstrel
8c54a37350 XCode: Fix runpaths for unit tests 2016-08-10 03:07:32 -04:00
Celtic Minstrel
75cde5ee02 XCode: Fix unit tests build 2016-08-10 03:07:31 -04:00
Charles Dang
650f0c0912 Unit List: removed a duplicate border definition 2016-08-10 17:59:53 +11:00
Charles Dang
ce5cb51c57 Language Selection: use a proper toggle panel list instead of toggle buttons 2016-08-10 17:52:35 +11:00
Charles Dang
bf734e3289 Use std::map::emplace in all dialogs when applicable 2016-08-10 17:36:52 +11:00
Charles Dang
b5ec03c81b Cleaned up some unnecessary make_pair calls in recent dialogs 2016-08-10 16:57:15 +11:00
Charles Dang
c099376749 Removed some more unused code
Orphaned in 105fbe6bc6
2016-08-10 14:50:25 +11:00
Charles Dang
55b81f6264 Removed unused parameter from status_table()
Orphaned in 79de5a8ae8
2016-08-10 14:45:46 +11:00
Charles Dang
09b116c6a7 Removed some unused GUI1 code 2016-08-10 14:35:52 +11:00
Charles Dang
ba6486eef4 tgame_stats: fixed a few issues with displaying unknown sides
Previously, if a side wasn't know and you weren't in debug mode, the 'Unknown' rows
weren't being added to the list. In addition, continuing to the next team meant the
scenario settings list didn't get filled in with the unknown sides either.
2016-08-10 14:01:33 +11:00
Charles Dang
5398980ac0 Unit Advance: some layout improvements, code cleanup and clarification, and a minor issue fix
The fix is disabling ESC-closing of the dialog.
2016-08-10 13:40:06 +11:00
Charles Dang
ebf90fbd94 Update CB projectfile 2016-08-10 13:18:48 +11:00
Celtic Minstrel
fbf87ca797 Update XCode project 2016-08-09 22:04:04 -04:00
Charles Dang
79de5a8ae8 Convert Scenario Status/Settings dialog pair to GUI2 2016-08-09 22:01:14 -04:00
Celtic Minstrel
8a9a466a29 Revert "Convert Scenario Status/Settings dialog pair to GUI2"
This reverts commit bb49be8428.
2016-08-09 21:58:48 -04:00
Charles Dang
bb49be8428 Convert Scenario Status/Settings dialog pair to GUI2 2016-08-10 12:52:26 +11:00
Celtic Minstrel
febb34cfbb Convert unit advancement dialog to GUI2 2016-08-09 20:49:48 -04:00
Celtic Minstrel
a8477e3ce0 Use references instead of pointers in unit_preview_pane 2016-08-09 20:49:48 -04:00
ln-zookeeper
642323ff45 Cropped the Spectre baseframe to fix hitpoint bar positioning bug 2016-08-10 01:46:31 +03:00
Jyrki Vesterinen
486293403e Update Visual Studio project 2016-08-09 19:32:12 +03:00
Charles Dang
cf1d2e3c83 Don't use a shared_ptr in Unit List dialog 2016-08-09 18:45:33 +11:00
Charles Dang
e750b58519 Don't use a shared_ptr for recall list handling 2016-08-09 18:22:37 +11:00
Celtic Minstrel
c401f2db15 Some cleanup of formula callable code - mainly auto, range-for 2016-08-09 02:36:30 -04:00
Celtic Minstrel
47575c6a44 Some cleanup of unit status code 2016-08-09 02:24:14 -04:00
Charles Dang
cfd205e3a4 Completed and activated the GUI2 Unit List dialog 2016-08-09 15:00:42 +11:00
Charles Dang
5b3c786e8b Mention GCC 4.8 and later instead of 4.7 2016-08-09 14:58:40 +11:00
Celtic Minstrel
414ef85309 Travis: Stop using GCC 4.7 2016-08-08 23:28:46 -04:00
Celtic Minstrel
245ca6ce40 Fix XCode 4 build 2016-08-08 22:49:26 -04:00
Celtic Minstrel
f56feea0b8 Update XCode project 2016-08-08 22:18:08 -04:00
Charles Dang
a30d816ac7 Generalize listbox sorting option setup (thanks to gfgtdf)
Previously, an init_sorting_option class member had to be added to every dialog that
wanted to use sorting. This removes that need and also removes the need for individual
generator_sort_array objects.
2016-08-09 12:39:16 +11:00
Celtic Minstrel
fba34c1eee Don't use unit IDs as WML keys when saving statistics 2016-08-08 21:16:30 -04:00
Charles Dang
b4d80cc662 tpreferences: use a lambda to sort advanced preferences 2016-08-09 10:43:59 +11:00
Charles Dang
ff2a48aa09 tpreferences: use simpler method for initializing sorting options 2016-08-09 10:34:58 +11:00
Celtic Minstrel
0215646f1c Preferences dialog: minor cleanup of duplicated code 2016-08-08 16:12:38 -04:00
Celtic Minstrel
b8064ed7f7 Merge pull request #740 from Wedge009/bug_24933_fix
Allow hotkeys dialogue to be sorted by Hotkey column again. (Bug #24933)
2016-08-08 14:20:07 -04:00
Elvish_Hunter
ca557c7221 changelog entry 2016-08-08 20:17:39 +02:00
Elvish_Hunter
50bb0b5809 wml tools GUI: added wmlxgettext tab 2016-08-08 20:09:18 +02:00
Elvish_Hunter
ff781c5f72 wml tools GUI: added a new compound widget for use by the wmlxgettext tab 2016-08-08 18:39:17 +02:00
Elvish_Hunter
2a10f01fae wml tools GUI: stop tooltips from reapparing when the associated widget is clicked 2016-08-08 18:36:57 +02:00
Elvish_Hunter
b17779f8a7 wml tools GUI: moved the add-ons directory detection code to a separate function 2016-08-08 18:33:15 +02:00