Andrew James
13a3424ff0
Add helpers for creating/using Rectangles in UI contexts ( #4734 )
...
* Add MakeRectangle helper to convert from SDL_Rect
* Add Rectangle::inset method for shrinking a rectangle
Turns out some of the other use cases I though this could apply to were actually doing something based on a fixed region
* Simplify initialisation of settings menu rects
4 years ago
Gleb Mazovetskiy
5df03f56e3
DiabloUI: Render scrollbar as PCX
4 years ago
Gleb Mazovetskiy
9e9b656b88
DiabloUI: Render backgrounds as PCX
...
The backgrounds can be quite large, for example
the Hellfire title background is a 2.4 MiB PCX file.
Previously, we converted all background to SDL surfaces.
This required extra memory, e.g. the 2.4 MiB Hellfire
title background uses 4.6 MiB as an SDL surface.
Changes the background to render directly from PCX instead
to reduce the allocator pressure.
4 years ago
obligaron
d86c4e5d84
Introduce GetUIRectangle() to distinguish between UI and main panel
4 years ago
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
Anders Jenbo
422f2bae9d
Fix build warnings
4 years ago
staphen
df830f6495
Save settings before leaving the settings menu
4 years ago
obligaron
b3a9760bda
Keymapper: Add mouse support
4 years ago
obligaron
150a4edfdb
Settingsmenu: Use two lines if text doesn't fix in one line
4 years ago
obligaron
18fb40ee32
Settingsmenu: Implement KeyInput
4 years ago
staphen
af59f7e254
Update fullscreen option in settings menu after Alt+Enter
4 years ago
obligaron
b9c98ef116
settingsmenu: In list selection show option description
4 years ago
obligaron
9a14edfcd9
Add OptionEntries for Hardware Cursor
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
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
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
obligaron
f02264f69c
Implement settings menu
4 years ago