obligaron
f31def7c33
Fix MSVC warnings in qol\*
2023-11-19 01:41:03 +01:00
Gleb Mazovetskiy
e5881688f4
text_render: Replace optional args with struct
...
4 options args are a bit unwieldy, especially when you want
to pass only the first and the last one.
With a struct, there is no need to specify the default values
for the args in between.
2023-10-25 09:19:14 +01:00
qndel
c3d1c82f6f
chatlog refactor
2023-10-20 18:46:56 +02:00
Gleb Mazovetskiy
88bbf4f913
Improve DiabloMsg handling
...
1. Simplified implementation.
2. Now adjusts the box size to fit the content (e.g. when wrapping
failed or when there are too many lines).
2023-10-14 09:45:24 +01:00
Gleb Mazovetskiy
d1d27c8368
Rename error -> diablo_msg
2023-10-14 09:45:24 +01:00
ephphatha
da76e131e4
Add getter/setter for character levels to ensure _pNextExper stays synced
2023-08-24 05:46:44 +02:00
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
2023-08-14 09:59:14 +01:00
obligaron
b916c8e428
Introduce Open/Close/ToggleCharPanel
2023-04-14 02:40:17 +02:00
KPhoenix
a1fbf5253f
enum talk_id -> enum class TalkID
2023-02-09 13:04:01 +01:00
Gleb Mazovetskiy
ae6a3dbe5e
Add missing <ctime> includes for std::tm
2022-07-12 01:31:17 +01:00
Gleb Mazovetskiy
d07ac14440
Handle nullptr localtime
...
`localtime` can return `nullptr` on some platforms (e.g. NXDK)
Improve portability by handling the `nullptr` result.
2022-07-06 13:25:51 +01:00
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
2022-06-14 12:46:36 +01:00
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
2022-06-14 12:46:36 +01:00
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
2022-05-31 05:35:52 +02:00
obligaron
d86c4e5d84
Introduce GetUIRectangle() to distinguish between UI and main panel
2022-05-29 20:20:44 +02:00
Gleb Mazovetskiy
80599319bc
Don't hide the automap in Help and Chat Log ( #4379 )
...
This was necessary in the past due to stippled transparency but we use
blended transparency now.
Fixes #4355
2022-04-10 14:48:23 +02:00
Anders Jenbo
a48f89007d
Implement stash
2022-03-18 06:01:53 +01:00
qndel
b8fc442210
fix chatlog translation entry ( #4140 )
2022-03-07 15:27:00 +01:00
qndel
48f102eff1
Chat log
2022-03-06 01:02:55 +01:00