493 Commits

Author SHA1 Message Date
Charles Dang
dc9db2e830 Updated CB projfiles 2016-06-01 19:06:58 +11:00
Charles Dang
0ffccf6f11 Updated CB projectfile 2016-04-23 19:26:36 +11:00
Charles Dang
cdd1370276 Updated CB projectfile 2016-04-15 08:50:13 +11:00
Charles Dang
71b154b6e3 Refactored out savegame::savegame_config class
This was basically an unnecessary stub class. It also allows us to
remove the unused soundsource::manager::to_config() function (write_sourcespecs()
did the actual job).
2016-04-05 18:10:44 +11:00
Charles Dang
0a7190c605 Updated cb projfile 2016-04-04 13:11:05 +11:00
Celtic Minstrel
982394fe3a Remove custom FOREACH macro in favour of range-for 2016-04-01 12:08:05 -04:00
Charles Dang
4645d654c3 CB: enable building wesnothd alone 2016-04-02 02:26:22 +11:00
Charles Dang
c97a5d14ff Codeblocks: enable building with c++11
This also adds the necessary boost::thread linker option required by
recent loadscreen code.
2016-03-31 09:37:10 +11:00
Charles Dang
465f5eece1 Implement new GUI2 loadscreen 2016-03-29 21:33:38 +11:00
Celtic Minstrel
b555bc2bb7 Delete empty source files 2016-03-28 00:35:14 -04:00
Celtic Minstrel
57e41387a8 Remove Strategy Formulation with RCA stage 2016-03-24 12:39:37 -04:00
Celtic Minstrel
af9be371da Remove old move-to-targets CA and move new one to default 2016-03-24 12:32:34 -04:00
Celtic Minstrel
ab443bcc18 Remove experimental recruitment 2016-03-24 12:06:10 -04:00
Celtic Minstrel
d7205d4a40 Minor CB project fixup 2016-03-24 12:03:13 -04:00
Charles Dang
d3ef442f15 Update CB project 2016-03-24 15:27:29 +11:00
Celtic Minstrel
fbd9edd5df Remove global fallback candidate action
This literally did nothing except place useless labels on the map.
2016-03-24 00:08:11 -04:00
Celtic Minstrel
a23a368c20 Remove Akihara's recruitment and battle evaluation 2016-03-24 00:08:10 -04:00
Celtic Minstrel
6c525a9d3f Remove AI interface and fallback stage
This removes the C++ common interface intended for creating new AIs.
Anyone wishing to create a new AI written in C++ should now implement it as a custom stage instead.

This commit also removes the C++ implementation of the Idle AI (but leaves the WML definition of it, which is based on the composite AI)
and the fallback stage which was intended to fall back to other C++ AI algorithms.
2016-03-24 00:08:10 -04:00
Charles Dang
e86cadfa72 Update CB project 2016-03-23 06:51:59 +11:00
Celtic Minstrel
931376954b Remove map_utils.hpp
Rationale:
- The at() emulation is only used in one file and will become redundant once we move to C++11 soon
- The map_get_value_default function is also only used in one file, and removing it actually makes the logic clearer
- It was moved to map/utils.hpp despite having nothing to do with game maps; removing it is slightly easier than moving it again
2016-03-21 12:50:07 -04:00
Charles Dang
cb992e88b0 Removed Data Manage dialog
This dialog didn't do anything more than allow you to delete saves.
2016-03-21 22:14:34 +11:00
Celtic Minstrel
c0afb53a2f Fix build/project files 2016-03-20 23:27:40 -04:00
Celtic Minstrel
620b228fa8 Consolidate related GUI2 dialogs in directories 2016-03-20 23:18:49 -04:00
Celtic Minstrel
6307b9459c Move most of gui/auxiliary to gui/core to reflect its true nature 2016-03-20 23:18:48 -04:00
Celtic Minstrel
040b4ca49a Consolidate GUI2 widget files
Now every GUI2 widget requires only two source files, instead of six (or in rare cases four).
2016-03-20 23:18:46 -04:00
Charles Dang
15db95f05e Update CB projfile 2016-03-21 09:28:47 +11:00
Celtic Minstrel
bc711f5f43 Consolidate related files into subdirectories 2016-03-20 16:20:09 -04:00
Celtic Minstrel
fe0df45947 Consolidate formula and hotkey files in corresponding dirs 2016-03-20 16:15:50 -04:00
Charles Dang
33a04c32e2 Removed old code for [portrait]
This was an experimental feature that was never finished. Any [portrait]
tags were removed from the unit type WML a while back
2016-03-21 03:47:13 +11:00
Charles Dang
42816df6f6 Converted Recruit dialog to GUI2 2016-03-09 19:52:25 +11:00
Charles Dang
29e19cd854 GUI2: implemented a Unit Preview Pane widget 2016-03-09 19:15:13 +11:00
Charles Dang
2ca0503337 Updated cb projfile
I seem to have forgotten to do this before
2016-03-05 11:19:30 +11:00
Charles Dang
90ae1151c7 CB: add -Wunused compiler flag 2016-02-26 12:53:02 +11:00
Charles Dang
dfe7fcca88 gui2: implement widget groups
Groups are handled on a per-dialog basis, and are currently specialized for tselectable_
inheritors. They provide a convenient vector-of-pairs interface that ensure only one
widget is selected at one time and allows binding of values to widgets which can be
fetched at a later point.
2016-02-25 20:28:18 +11:00
Celtic Minstrel
33da7920cf Add new orb selection dialog to unit tests and other build systems 2016-02-18 01:13:11 -05:00
Charles Dang
a5b2f5cd7b Updated build lists + cb projfile 2016-02-06 20:19:40 +11:00
Charles Dang
cb71b330e9 Updated codeblocks build readme with updated last tested versions 2016-02-02 02:28:35 +11:00
Charles Dang
fb5b4b0e99 Updated codeblocks projfile 2016-01-21 05:51:55 +11:00
Charles Dang
c951043d58 Resave lua codeblocks projfile
File generated with CB 13.12
2015-12-22 16:36:23 +11:00
Charles Dang
b8a821e388 Enable SDL2 building by default in codeblocks project 2015-12-22 16:35:56 +11:00
Ignacio R. Morelle
53ed94da25 log/windows: Integrate implementation of --wconsole
This makes it so we no longer try to steal the console back to a log
file when using --wconsole with the new redirection code. Now the
--wconsole switch triggers a special mode of the log file manager that
uses a native console instead of log files.

As a necessary bonus to appease compilers, the GUI2 version info dialog
now uses the correct log file path when not started with the --wconsole
switch. Yay!
2015-11-23 03:42:14 -03:00
Ignacio R. Morelle
aae8e70c7a log/windows: Add our own stdout/stderr redirection on Windows
This replaces SDL 1.2's built-in stdout/stderr redirection, which writes
the log file to the process working directory (usually an
admin-restricted location) instead of a more accessible user-writable
location.

My approach combines stdout and stderr into a single log file which
includes the process id and timestamp in its filename in order to
accomodate multiple instances and (coming later) log rotation. The log
file is created in the user's temporary directory defined by Windows,
and then relocated to the game user data dir as soon as it is set-up the
first time, placed in the Windows-specific logs/ subdir.

The most pressing issues this solves are the lack of built-in
stdout/stderr redirection in SDL 2's SDL2main.lib entry point, and
Unicode path issues with SDL 1.2 (bug #22897). Additionally, it allows
us to not have to rely on UAC virtualization anymore; this is arguably
far more important because it has been known to break on occasion (e.g.
<http://r.wesnoth.org/t42970>), and starting with version 1.13.2 we want
to declare Windows Vista - 10 compatibility in our side-by-side manifest
(see commit e119f4071f047c6d740ebec4636985fdf39349bc).

Currently missing features coming later:

 * Log rotation (otherwise the logs/ dir may grow forever)
 * wesnothd support (although the code is already required to be linked
   into wesnothd due to it being required by the FS API)
 * Integration with the version info dialog
2015-11-23 03:21:42 -03:00
Charles Dang
c7aa47443d CB Project: replaced DWINVER with _WIN32_IE
The former doesn't appear to do anything and was probably a typo
2015-10-21 14:44:01 +11:00
Charles Dang
a4fe9c0474 Updated codeblocks projectfile 2015-09-21 07:44:23 +11:00
Charles Dang
9ca044abdb Updated codeblock projectfile 2015-09-10 15:00:53 +11:00
Charles Dang
6c333d8278 Updated cb projectfile for 0abde389dc1a 2015-09-01 22:56:10 +11:00
Ignacio R. Morelle
92dd610d4c fs: Remove Windows-only bits of the legacy filesystem API implementation
These aren't used by anything else.
2015-08-23 17:28:40 -03:00
Charles Dang
9c2c079a3a Dropped HAVE_PYTHON and USE_GZIP defines
As far as I can tell, these do nothing
2015-08-23 10:37:28 +11:00
Charles Dang
565caec797 Updated codeblocks readme 2015-08-17 10:10:36 +11:00
Celtic Minstrel
f619b4cc63 Update build stuff
(Sconscript, CMakeLists, tests, project files)
2015-08-07 22:50:34 -04:00