Commit graph

509 commits

Author SHA1 Message Date
Yuri Pourre
91d813ddd0
Makes spell highlight translatable 2021-09-30 02:41:46 +02:00
Anders Jenbo
f54b7d0896 🚨 Count of letters is always positive 2021-09-28 08:49:28 +02:00
Anders Jenbo
7a57ae211e Better text alignment in spell book 2021-09-26 04:17:39 +02:00
Anders Jenbo
70cff81547 Implement backspace for UTF-8 strings 2021-09-24 03:03:58 +02:00
Anders Jenbo
7959b04573 SDL1 Unicode input support 2021-09-24 03:03:58 +02:00
Anders Jenbo
704a04ae4d Add support for Unicode fonts 2021-09-24 03:03:58 +02:00
Gleb Mazovetskiy
ec13c333a9 Refactor: Use item iterators for scroll checks
Refs #2586
2021-09-24 01:56:44 +01:00
obligaron
98eb863ea1 Use SDL Textinput for ingame chat 2021-09-21 21:03:01 +02:00
Anders Jenbo
671fdbd125 Implement contextural translation (pgettext)
Fixes #2369
Fixes #2790
2021-09-20 04:18:35 +02:00
Anders Jenbo
7771a08d03 Translatable mainpanel 2021-09-19 07:21:52 +02:00
staphen
fe3d50f7f2 Merge logic from InitControlPan() and ClearPanBtn() 2021-09-17 00:51:08 +02:00
staphen
3df85b70ce Add virtual gamepad event handlers and implement touch controls 2021-09-16 19:25:31 +02:00
Juliano Leal Goncalves
379a27b64a ♻️ Convert 'ItemType' enum to enum class
🎨 Rename 'ItemType' elements to enum class standards
2021-09-13 00:25:49 +02:00
Anders Jenbo
064a70a9b1 Fix double encoding of monster names 2021-09-12 01:37:28 +02:00
Anders Jenbo
7169882b1f Implement new font rendering 2021-09-12 01:37:28 +02:00
qndel
a737d72dd9
Dynamic char panel 2021-08-30 20:33:55 +02:00
BC Ko
1cebabcfff documentation cleanup: control 2021-08-30 13:51:42 +02:00
Juliano Leal Goncalves
bb2dfdfb73 🚚 Rename 'ItemStruct' to 'Item' 2021-08-30 13:40:08 +02:00
Juliano Leal Goncalves
6c21638bee ♻️ Leverage 'Point' in 'SetCursorPos' function 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
bbf529c65a 🚚 Rename 'PlayerStruct' to 'Player' 2021-08-30 06:44:18 +02:00
Anders Jenbo
4044fadeb5 Clean up some players references 2021-08-30 03:26:17 +02:00
qndel
9e1cdb4a82 CheckChrBtns cleanup 2021-08-29 17:53:13 +02:00
qndel
770f3a2f20 unify ranged and melee pierce 2021-08-28 18:04:22 +02:00
BC Ko
4df798808e
2435 refactor global variable Items part 2 (#2673) 2021-08-26 08:06:48 +02:00
Anders Jenbo
408c6e43b6 Don't echo quick commands 2021-08-19 20:36:12 +02:00
Vladimir Olteanu
bfcc57783c Remove Surface::{Alloc,Free}, introduce OwnedSurface 2021-08-19 08:51:59 +02:00
obligaron
36f13b34dc Add debug text commands 2021-08-19 03:44:20 +02:00
obligaron
6be94ceb3f Move DiabloHotkeyMsg to control.cpp and use IsChatAvailable 2021-08-19 03:44:20 +02:00
obligaron
13ab3e0ba9 Handle chat visible logic seperated from multiplayer (own function) 2021-08-19 03:44:20 +02:00
vladtepesch
0e56e52c75
fixes casting level 0 spell says "not enough mana" (#2568) 2021-08-11 19:52:00 +00:00
obligaron
8dbe16d4f6 Introduce GetSpellListItems 2021-08-11 02:44:51 +02:00
obligaron
95daecc1bb Introduce GetSpellListSelection and remove selection game logic from DrawSpellList 2021-08-11 02:44:51 +02:00
BC Ko
0a4361d5fc cleanup manual value clamping: control.cpp 2021-08-10 20:20:27 +02:00
Aaron Sun
6701b8a989 Fix attribute up (+) button doesn't work in special case
1) Open quest panel
2) Open character panel by click level up (+) button
2021-08-08 14:28:23 +02:00
Aaron Sun
aef812fb5a Modify the calculation of panel position
left/center combination is used, but panel distance is limited
2021-08-08 02:08:02 +02:00
Anders Jenbo
8df8b940c4
Handle some clang-tidy issues 2021-08-07 16:30:14 +02:00
Aaron Sun
3ee90ca629 Add options for sub-panel alignment 2021-08-07 16:09:32 +02:00
Anders Jenbo
90960f0c14 Remove dead code 2021-08-07 00:36:38 +02:00
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) (#2498) 2021-08-05 21:27:07 +02:00
Vladimir Olteanu
b17ff04ee2 Use string_view in DrawString and friends 2021-08-05 01:40:43 +02:00
qndel
169f980038 ranged/magic formulas 2021-08-04 23:55:44 +02:00
qndel
bd5e30db52 replace armor formula 2021-08-04 23:55:44 +02:00
Anders Jenbo
d523fc1e81 Cleanups 2021-08-02 10:12:40 +02:00
ephphatha
0575716eac Rename UiFlags members to group related options 2021-07-31 20:22:40 +02:00
ephphatha
4ad53232a0 Convert the UiFlags enum to a scoped enum type
Replace operator&& with named function
2021-07-31 20:22:40 +02:00
Anders Jenbo
a2bed56061 Clean up some variables in control.cpp 2021-07-18 05:16:02 +02:00
Anders Jenbo
a19e7b2a3b Remove some more use of miniwin 2021-07-17 23:54:13 +02:00
obligaron
1956c6a1c2
Fix some 64bit warnings 2021-07-17 18:30:39 +02:00
Anders Jenbo
77b72da276 ♻️Use monster by reference when possible 2021-07-14 20:22:35 -07:00
Anders Jenbo
352a0ca510 Place local symbols in an anonymous namespace 2021-07-09 16:54:01 -07:00