491 Commits

Author SHA1 Message Date
newfrenchy83
81f72539d9 update codeblock projectfiles 2023-03-21 14:15:38 -05:00
gfgtdf
d954d307bc move carryover message to new file
This will in particular make future refactors of that code easier.
2023-03-18 19:04:39 +01:00
Pentarctagon
3f63908296 Further consolidate logging functionality between Windows and non-Windows platforms.
For non-Windows platforms this adds:
* a new check for whether the logs directory exists and is writable by attempting to write a single whitespace to a dummy.log file.
* a popup shown immediately after the GUI system is initialized letting the player know if there was an issue creating the log file.

For Windows, this changes:
* instead of writing to the OS temp directory and then attempting to move that file to the logs directory, this uses the same check that was described above for non-Windows platforms.
* the alert shown when writing the dummy log file fails is now a Wesnoth alert message rather than the Windows-specific MessageBox.
* a failure to create a log file does not immediately exit wesnoth anymore.

Additionally, this makes it so that for the default state (logging to file), all platforms follow the same code path by calling `lg::set_log_to_file()`. `log_windows` now contains only the Windows-specific logic needed for handling the creation/redirection of output to a console.
2023-02-17 10:03:05 -06:00
Pentarctagon
d1465a9eb9
Add basic achievements functionality. (#7237)
* Add basic achievements functionality.

This reads the mainline achievements.cfg and then all the achievements of each installed add-on.

This is intentionally handled separately from other WML loading so that:
a) All achievements and their status are able to be displayed on the main menu right after Wesnoth starts and regardless of which add-ons are active.
b) Add-ons can add additional achievements to other content, whether UMC or mainline. For example, a modification that adds more achievements for mainline campaigns.

Marking something as achieved is handled by the new [set_achieved] tag and whether an achievement has been completed can be checked via [has_achievement].

There is no attempt to prevent people from manually editing which achievements they've accomplished.

NOTE: These are *not* in any way related to Steam achievements!
2023-01-21 10:32:45 -06:00
Pentarctagon
0e85fac29c
Have /report show a dialog for entering information. (#6969)
Resolves #5056
2022-09-02 21:18:03 -05:00
newfrenchy83
2d89af63b4 update codeblock projectfiles 2022-08-07 16:08:40 -05:00
newfrenchy83
ad8f6a6f4c update codeblock 2022-08-06 10:37:38 -05:00
newfrenchy83
0bfb384887
Update codeblocks project files for gcc11 2022-07-20 11:39:50 +02:00
newfrenchy83
8cb73a4231 update codeblocks projectfiles 2022-07-13 14:15:05 +02:00
newfrenchy83
6024df5794 update codeblock projectfiles
remove unused tracer.cpp source file
2022-07-07 21:05:53 +10:00
newfrenchy83
d8b8c5ea80 add GLIBCXX_USE_DEPRECATED=0 in codeblock projectfiles 2022-07-05 08:57:12 -05:00
newfrenchy83
55fedbb27c Revert "update codeblock projectfiles"
This reverts commit df05b5061a8236e1e7be1adc192af975d661e11b.
2022-07-04 21:21:16 -04:00
newfrenchy83
df05b5061a update codeblock projectfiles 2022-07-04 13:13:43 -05:00
newfrenchy83
a077235e8d update codeblock projectfiles 2022-06-29 13:35:49 +02:00
newfrenchy83
16cbca3027 update codeblock projectfiles 2022-06-12 09:29:37 -05:00
newfrenchy83
49682d29ad update codeblock projectfiles 2022-06-02 08:52:30 -05:00
newfrenchy83
de5409b5d2 add sdl/ texture and input to codeblock projectfiles 2022-04-30 16:40:42 -05:00
Charles Dang
f1a9420042
Merge pull request #6558 from stevecotton/cleanup_pane_includes
Remove gui/auxiliary/filter.hpp and unused includes of pane.hpp
2022-03-14 16:36:03 -04:00
newfrenchy83
429094b577 update codeblock projectfiles 2022-03-13 11:27:42 +01:00
Steve Cotton
3279973960 Remove gui/auxiliary/filter.hpp and unused includes of pane.hpp
Remove filter.hpp, which wasn't included by any file, and relied on
pane.hpp indirectly via one of the lines removed in this commit. The sorting
functionality seems to have moved into pane.cpp when matrix.hpp was added.
Note: there are two other unrelated `filter.hpp` files.

Header pane.hpp is only used by matrix.hpp, pane.cpp, and window_builder.cpp;
the class is also used via a forward-declaration in window.hpp, which friends
it, allowing a call to window::layout_linked_widgets. The class is also made
accessible via REGISTER_WIDGET.

Part of #6540.
2022-03-09 13:54:05 +01:00
newfrenchy83
691c157124 update codeblock projectfiles 2022-03-04 10:41:12 -06:00
Pentarctagon
c4c292fa3b Replace all remaining usages if MAKE_ENUM. 2022-03-03 21:23:02 -06:00
newfrenchy83
6ba2ae1076 update codeblock projectfiles 2022-01-27 11:41:29 -06:00
newfrenchy83
4664946dc5 update codeblock projectfiles 2021-08-01 15:34:16 +02:00
newfrenchy83
88873e3fae update codeblock projectfiles 2021-07-18 11:48:58 -05:00
newfrenchy83
8c1142be4b update codeblock projectfiles 2021-05-22 12:26:00 -05:00
newfrenchy83
7e839a924c
update codeblock projectfiles
Add libssl and some includes for lua_mathx.
2021-05-19 16:39:06 -05:00
newfrenchy83
612e6c5f84 update codeblock projectfiles 2021-05-12 13:23:35 -05:00
newfrenchy83
03e87ffb2c remove SDL2_ttf.a to codeblock projectfiles 2021-04-27 17:53:49 -05:00
newfrenchy83
f70039fe26 update codeblock projectfiles 2021-04-07 11:47:00 -05:00
newfrenchy83
1df8572726 Update Codeblock projectfiles 2021-03-17 14:42:18 -05:00
newfrenchy83
144dd2310e Update wesnoth.cbp 2021-02-18 14:14:34 -06:00
newfrenchy83
3f131848ea
upgrades codeblock to Lua 5.4.2 (#5556)
* upgrades codeblock to Lua 5.4.2

* fix error

* upgrade to c++20

* upgrade to c++20

* upgradeto c++20

* Update wesnothd.cbp
2021-02-18 02:15:13 +11:00
newfrenchy83
6f85e689e6
Update codeblock for recent changes (#5455)
* update codeblock for recent changes

* update codeblock test for recent changes

* Update wesnothd.cbp

* Update wesnothd.cbp

* update scons codeblock
2021-01-17 21:45:31 +11:00
Steve Cotton
4205de91e5 Remove the editor's unused set_starting_position dialog
6424d79f489129791fedb23e267565922dba3751 changed to using an editor palette instead.
2020-12-30 15:01:47 +01:00
newfrenchy83
b9dcc32e24
fix codeblocks projectfiles (#5356) 2020-12-14 10:35:42 +11:00
newfrenchy83
1d17f559a3
update codeblocks projectfiles 2020-12-10 16:21:29 +01:00
Charles Dang
6e2f3e099e Removed utils/functional.hpp 2020-12-04 15:30:46 +11:00
newfrenchy83
ea7a643951 update codeblock projectfiles 2020-12-01 16:53:09 -06:00
newfrenchy83
118dcc0f09
update code block projectfiles (#5271)
* Update campaignd.cbp

* add commandline_arg to codeblock projectfiles

* Update tests.cbp

* Update wesnoth.cbp
2020-11-10 09:04:56 -06:00
Steve Cotton
934cae6093 Refactoring the orb-coloring code, adding new units/orb_status.hpp
Instead of creating lots of image::locators and calling a family of
similarly-named preferences functions, this refactor encapsulates that logic
and uses an enum.

The new orb_status files still need adding to the MacOS build.

An assert has been added to `unit_drawer`'s constructor. There are two callers
- the `display` class guards it with an explicit check before constructing
unit_drawer. The `game_display` class doesn't have an explicit check, but it's
clear that other code in that class assumes the teams are already valid (and
would crash if they weren't).
2020-10-17 14:11:10 +02:00
newfrenchy83
51f7340067
fix codeblocks project for lua widget 2020-09-04 13:20:16 +02:00
newfrenchy83
2be22c8030
fix codeblock projectfiles (#5078) 2020-08-12 11:11:28 +02:00
newfrenchy83
e05be0b597
update codeblocks projectfiles (#5033) 2020-08-06 12:21:02 -05:00
newfrenchy83
fd0cd29683
updated codeblock projectfiles 2020-06-29 16:48:26 -05:00
newfrenchy83
a3859e4b46
fix cb projecfile after #4797 (#4811)
* fix cb projecfile after https://github.com/wesnoth/wesnoth/pull/4797/files

* Update tests.cbp

* Update wesnoth.cbp
2020-03-16 08:31:26 -05:00
Iris Morelle
48e6b821b0 i18n: Convert POSIX/Win32 locale table file into a map
This removes the need for the separate file and the giant if chain by
using a std::map instead.
2020-01-19 12:40:03 -03:00
newfrenchy83
7951836233 Update wesnoth.cbp 2019-12-10 22:07:12 +11:00
newfrenchy83
976e4db819 Update wesnoth.cbp 2019-11-06 07:49:13 +11:00
newfrenchy83
06213e7d33 Update wesnoth.cbp 2019-10-19 04:02:48 -05:00