Commit Graph
12 Commits
Author SHA1 Message Date
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