Commit graph

27 commits

Author SHA1 Message Date
staphen
3546b41be0 Introduce NOEXIT build option to disable Quit Game options in menus 2022-01-23 05:25:48 +01:00
obligaron
b5ab9758d0 Replace gbSpawned with gbIsSpawn 2021-12-02 01:08:33 +01:00
obligaron
78c0ec1f49
Pass viewportSize to UiList constructor and calculate height from it 2021-11-25 00:13:27 +01:00
Gleb Mazovetskiy
7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-11-24 23:44:12 +01:00
obligaron
f02264f69c Implement settings menu 2021-11-24 09:31:39 +01:00
Gleb Mazovetskiy
3d308983a8 Migrate to libmpq
libmpq is a much simpler alternative to StormLib for reading MPQ archives.

We use our own fork of libmpq: https://github.com/diasurgical/libmpq

Impact:

* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
  needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
2021-11-06 23:51:42 +00:00
obligaron
851ed8d557
Start attract mode only if a intro is present 2021-10-28 13:47:40 +02:00
Anders Jenbo
34e6c200bb Add Shareware indicator to Hellfire menu 2021-10-25 19:14:28 +02:00
obligaron
49c351d3e9 Allow playing intro in spawn if diabdat_mpq is present 2021-10-21 20:34:19 +02:00
obligaron
1d0f4cb13d Add new Extras menu with the possibility to switch game 2021-10-21 04:16:13 +02:00
Anders Jenbo
7771a08d03 Translatable mainpanel 2021-09-19 07:21:52 +02:00
Anders Jenbo
7169882b1f Implement new font rendering 2021-09-12 01:37:28 +02:00
Anders Jenbo
21963add95 Clean up hellfire differences 2021-08-27 05:20:56 +02:00
ephphatha
0575716eac Rename UiFlags members to group related options 2021-07-31 20:22:40 +02:00
ephphatha
4ad53232a0 Convert the UiFlags enum to a scoped enum type
Replace operator&& with named function
2021-07-31 20:22:40 +02:00
Anders Jenbo
a19e7b2a3b Remove some more use of miniwin 2021-07-17 23:54:13 +02:00
Vladimir Olteanu
c57560674e Use smart pointers for UI items
vector::push_back(new Foo(...)) leaks if resizing fails
2021-07-08 03:37:47 -07:00
Anders Jenbo
de4ced7e4f Clang-tidy: readability-qualified-auto 2021-06-27 00:56:08 +02:00
Anders Jenbo
9e2206a673 Format code 2021-05-21 14:12:31 +02:00
arcas
6502a3ca4d
Adding resources for translation (#1973) 2021-05-15 14:12:28 +02:00
John Törnblom
b86743db25 add translation macros to the main menu
translate all strings in the main menu
2021-04-25 03:40:56 +02:00
John Törnblom
51e7a169a6 add initial language support using a simple MO parser 2021-04-25 03:40:45 +02:00
Anders Jenbo
191d98207b 🎨 readability-identifier-naming on DiabloUI 2021-04-22 00:50:07 +02:00
Anders Jenbo
373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Gleb Mazovetskiy
e13f67f7af 🧹 DiabloUI/mainmenu.cpp: Move to anonymous namespace 2021-04-17 13:37:04 +02:00
Anders Jenbo
8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00
Renamed from SourceX/DiabloUI/mainmenu.cpp (Browse further)