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
2022-06-19 15:18:48 +02:00
Gleb Mazovetskiy
5df03f56e3
DiabloUI: Render scrollbar as PCX
2022-06-13 09:54:01 +01:00
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.
2022-06-13 09:54:01 +01:00
obligaron
d86c4e5d84
Introduce GetUIRectangle() to distinguish between UI and main panel
2022-05-29 20:20:44 +02:00
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
2022-04-14 01:26:29 +02:00
Anders Jenbo
1409e604f5
Reduce string conversions
2022-03-20 11:04:15 +01:00
Anders Jenbo
422f2bae9d
Fix build warnings
2022-03-15 04:39:14 +01:00
staphen
df830f6495
Save settings before leaving the settings menu
2022-01-23 05:25:48 +01:00
obligaron
b3a9760bda
Keymapper: Add mouse support
2022-01-15 15:31:48 +01:00
obligaron
150a4edfdb
Settingsmenu: Use two lines if text doesn't fix in one line
2022-01-06 18:45:14 +01:00
obligaron
18fb40ee32
Settingsmenu: Implement KeyInput
2021-12-23 00:26:12 +01:00
staphen
af59f7e254
Update fullscreen option in settings menu after Alt+Enter
2021-12-21 12:55:30 +01:00
obligaron
b9c98ef116
settingsmenu: In list selection show option description
2021-12-18 19:35:16 +01:00
obligaron
9a14edfcd9
Add OptionEntries for Hardware Cursor
2021-12-17 20:12:17 +01:00
qndel
115e8ad0ff
ShownMenuTyp -> ShownMenuType
2021-12-05 22:21:33 +01:00
obligaron
9f478a5851
Settingsmenu: Add list browsing
2021-12-05 17:23:41 +01:00
obligaron
8a235186f2
Settingsmenu: Clean up UI-Resources before switching options that require RecreateUI
2021-12-04 15:36:11 +01:00
obligaron
db392c84b0
Add OptionEntry Shareware and remove specials from settingsmenu
2021-12-02 01:08:33 +01:00
obligaron
b5ab9758d0
Replace gbSpawned with gbIsSpawn
2021-12-02 01:08:33 +01:00
obligaron
88ffa9f98a
Options: Move Diablo/Hellfire option to StartUp and integrate in Settings Dialog
2021-12-02 01:08:33 +01:00
obligaron
20fbd46886
Add OptionEntryFlags::NeedDiabloMpq/NeedHellfireMpq
2021-12-02 01:08:33 +01:00
obligaron
ae826d922f
Add OptionEntryFlags::RecreateUI
2021-11-28 19:08:10 +01:00
Gleb Mazovetskiy
e74cb8388f
Settings menu: Set line height for description
...
Fixes #3603
2021-11-28 00:55:44 +01:00
Bubio
6a087ce350
Fix long translations causing the options menu to crash.
2021-11-27 21:12:05 +01:00
Gleb Mazovetskiy
1c1467980b
Settings menu: Set line height for description
...
Fixes #3603
2021-11-27 16:35:48 +00:00
Gleb Mazovetskiy
d8c1dadc9e
settingsmenu.{h,cpp}: Fix line endings
2021-11-27 16:35:48 +00:00
obligaron
ba7cd3e1cb
Use DrawStringWithColors in settingsmenu
2021-11-26 17:51:05 +01:00
obligaron
78c0ec1f49
Pass viewportSize to UiList constructor and calculate height from it
2021-11-25 00:13:27 +01:00
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.
2021-11-24 23:44:12 +01:00
obligaron
f02264f69c
Implement settings menu
2021-11-24 09:31:39 +01:00