Andrew James
5046b1288d
Apply clang-tidy configuration to (some of) ui_item.h ( #3719 )
4 years ago
qndel
115e8ad0ff
ShownMenuTyp -> ShownMenuType
4 years ago
obligaron
9f478a5851
Settingsmenu: Add list browsing
4 years ago
obligaron
8a235186f2
Settingsmenu: Clean up UI-Resources before switching options that require RecreateUI
4 years ago
obligaron
db392c84b0
Add OptionEntry Shareware and remove specials from settingsmenu
4 years ago
obligaron
b5ab9758d0
Replace gbSpawned with gbIsSpawn
4 years ago
obligaron
88ffa9f98a
Options: Move Diablo/Hellfire option to StartUp and integrate in Settings Dialog
4 years ago
obligaron
20fbd46886
Add OptionEntryFlags::NeedDiabloMpq/NeedHellfireMpq
4 years ago
obligaron
ae826d922f
Add OptionEntryFlags::RecreateUI
4 years ago
Gleb Mazovetskiy
3ad49d59a6
selhero.cpp: Fix `-Wpessimizing-move`
...
Source/DiabloUI/selhero.cpp:488:27: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
4 years ago
Gleb Mazovetskiy
e74cb8388f
Settings menu: Set line height for description
...
Fixes #3603
4 years ago
Bubio
6a087ce350
Fix long translations causing the options menu to crash.
4 years ago
Gleb Mazovetskiy
1c1467980b
Settings menu: Set line height for description
...
Fixes #3603
4 years ago
Gleb Mazovetskiy
d8c1dadc9e
settingsmenu.{h,cpp}: Fix line endings
4 years ago
obligaron
ba7cd3e1cb
Use DrawStringWithColors in settingsmenu
4 years ago
obligaron
721e05d5e0
Add DrawStringWithColors support to UiListItem
4 years ago
obligaron
d0dcb7f3ce
Remove unused enum entry MAINMENU_REPLAY_INTRO
4 years ago
Gleb Mazovetskiy
c57644970f
Move `UiFlags` and `UiPanels` into their own files
...
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
4 years ago
obligaron
78c0ec1f49
Pass viewportSize to UiList constructor and calculate height from it
4 years ago
Gleb Mazovetskiy
0e63b3ee0b
Update clang-format-check GitHub Workflow
...
Taking this opportunity as we've just done a global reformat and it's
quite small.
4 years ago
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>
4 years ago
obligaron
7656014f19
Add OptionEntry Test Barbarian
4 years ago
obligaron
43841477bc
Add OptionEntry Test Bard
4 years ago
obligaron
e6320090ac
Add OptionEntry Cow Quest
4 years ago
obligaron
a69cd0db2a
Add OptionEntry Theo Quest
4 years ago
obligaron
31f0b91783
Add OptionEntry Run in Town
4 years ago
obligaron
f02264f69c
Implement settings menu
4 years ago
obligaron
55dea2e39e
Introduce UiFlags::NeedsNextElement
4 years ago
obligaron
5b43d047c6
UiListItem support disabled elements
4 years ago
obligaron
918122ecb1
UiListItem can have individual UiFlags
4 years ago
obligaron
adfdb1e54f
Refactored UiList ViewPort Logic
4 years ago
Anders Jenbo
6e63354cd1
Remove safe guards around strings own the input for
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
Anders Jenbo
36112cd83e
Increase buffer size to handle Japanese translations
4 years ago
Gleb Mazovetskiy
3e1ea708a9
Increase "Delete Hero" dialog title buffer size
4 years ago
Gleb Mazovetskiy
c438cc6097
Increase difficulty description buffer size
...
Fixes #3551
4 years ago
Gleb Mazovetskiy
fa90679416
game_assets.* -> assets.*
4 years ago
Gleb Mazovetskiy
b8affd5fe5
Fix a few build warnings
4 years ago
Gleb Mazovetskiy
731377aca6
Net: Show "Unknown network error" as intended
4 years ago
Gleb Mazovetskiy
e9a9daa794
DrawString: Stop allocating
...
Switch to a state-machine UTF-8 decoder from the branchless one.
This allows us to avoid copying the string on every `DrawString` call.
4 years ago
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.
4 years ago
Gleb Mazovetskiy
fe0009708d
ArtDraw: Bounds-check top and left
...
This fixes the glitch when a line leaves the viewport in the scrolling
quest text.
Refs #3388
4 years ago
Gleb Mazovetskiy
a1125e83d7
ArtDraw: Bounds-check top and left
...
This fixes the glitch when a line leaves the viewport in the scrolling
quest text.
Refs #3388
4 years ago
Gleb Mazovetskiy
9dd0474a52
DrawArt: Fix bounds check ( #3395 )
...
The bounds checks were performed against the global screen dimensions
instead of the output buffer dimensions.
Also includes some minor cleanup of DrawArt.
Fixes #3388
4 years ago
Gleb Mazovetskiy
117695489b
DrawArt: Fix bounds check ( #3395 )
...
The bounds checks were performed against the global screen dimensions
instead of the output buffer dimensions.
Also includes some minor cleanup of DrawArt.
Fixes #3388
4 years ago
Gleb Mazovetskiy
4e8c2e3644
Fix line endings in a few files
4 years ago
obligaron
851ed8d557
Start attract mode only if a intro is present
4 years ago
Anders Jenbo
0fa49c4f84
Fix typo
4 years ago
Anders Jenbo
fdd5d2c0d6
Make start screen behave more in line with other similar menus
...
Double clicking a menu list was not intuitive and could leave some
people confused about how to progress from the very first screen.
This is unfortunatly more important then having a nice preview when
using arrow keys to high light the other option :(
4 years ago
Anders Jenbo
5342cd87a8
Update support text and translations there of
...
Fixes #3284
4 years ago