Anders Jenbo
9a93e473f9
Align CJK text on spell icons
4 years ago
Gleb Mazovetskiy
3aa8149d3e
`PrintMonstHistory`: Fix string manipulation
...
The code previously assumed that there is an ASCII separator after each
resistance type.
Different languages may use something else entirely. Relaxes the
assumption to any single code point to avoid producing malformed
UTF-8.
4 years ago
Gleb Mazovetskiy
e9a9daa794
DrawString: Stop allocating
...
Switch to a state-machine UTF-8 decoder from the branchless one.
This allows us to avoid copying the string on every `DrawString` call.
4 years ago
staphen
b5d96665c9
Enable SDL1 build option for Windows
4 years ago
Stephen C. Wills
423441c3dc
Fix speedbook navigation on gamepad
4 years ago
ephphatha
d2940e8f7f
Update GetObjectStr to take a const Object&
...
Brings it in line with GetItemStr
4 years ago
ephphatha
5f112576a4
move variable declaration into correct scope
4 years ago
Anders Jenbo
af433d8890
Check for null spells
4 years ago
qndel
124675386d
refresh panel when chat is active
4 years ago
obligaron
2158faadab
Use SDL_StartTextInput for gold drop dialog
4 years ago
obligaron
98ecd0ecc5
Introduce CloseGoldDrop
4 years ago
Anders Jenbo
97e6c712c8
Correctly position durability icons
...
Fixes #3275
4 years ago
Anders Jenbo
a1f42f199e
Fix overflow on long translations
...
Fixes #3125
4 years ago
Anders Jenbo
cab3494c93
Position panels away from touch controls
4 years ago
ephphatha
0aafd6d73d
Render panel string containing scroll count when browsing spell list
4 years ago
Gleb Mazovetskiy
0c694edaba
WordWrapString: Wrap on punctuation
...
Useful for Chinese and Japanese, which do not have spaces between words,
nor whitespace after punctuation.
5 years ago
Yuri Pourre
91d813ddd0
Makes spell highlight translatable
5 years ago
Anders Jenbo
f54b7d0896
🚨 Count of letters is always positive
5 years ago
Anders Jenbo
7a57ae211e
Better text alignment in spell book
5 years ago
Anders Jenbo
70cff81547
Implement backspace for UTF-8 strings
5 years ago
Anders Jenbo
7959b04573
SDL1 Unicode input support
5 years ago
Anders Jenbo
704a04ae4d
Add support for Unicode fonts
5 years ago
Gleb Mazovetskiy
ec13c333a9
Refactor: Use item iterators for scroll checks
...
Refs #2586
5 years ago
obligaron
98eb863ea1
Use SDL Textinput for ingame chat
5 years ago
Anders Jenbo
671fdbd125
Implement contextural translation (pgettext)
...
Fixes #2369
Fixes #2790
5 years ago
Anders Jenbo
7771a08d03
Translatable mainpanel
5 years ago
staphen
fe3d50f7f2
Merge logic from InitControlPan() and ClearPanBtn()
5 years ago
staphen
3df85b70ce
Add virtual gamepad event handlers and implement touch controls
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Anders Jenbo
064a70a9b1
Fix double encoding of monster names
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
qndel
a737d72dd9
Dynamic char panel
5 years ago
BC Ko
1cebabcfff
documentation cleanup: control
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Juliano Leal Goncalves
6c21638bee
♻️ Leverage 'Point' in 'SetCursorPos' function
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
qndel
9e1cdb4a82
CheckChrBtns cleanup
5 years ago
qndel
770f3a2f20
unify ranged and melee pierce
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Anders Jenbo
408c6e43b6
Don't echo quick commands
5 years ago
Vladimir Olteanu
bfcc57783c
Remove Surface::{Alloc,Free}, introduce OwnedSurface
5 years ago
obligaron
36f13b34dc
Add debug text commands
5 years ago
obligaron
6be94ceb3f
Move DiabloHotkeyMsg to control.cpp and use IsChatAvailable
5 years ago
obligaron
13ab3e0ba9
Handle chat visible logic seperated from multiplayer (own function)
5 years ago
vladtepesch
0e56e52c75
fixes casting level 0 spell says "not enough mana" ( #2568 )
5 years ago
obligaron
8dbe16d4f6
Introduce GetSpellListItems
5 years ago
obligaron
95daecc1bb
Introduce GetSpellListSelection and remove selection game logic from DrawSpellList
5 years ago
BC Ko
0a4361d5fc
cleanup manual value clamping: control.cpp
5 years ago
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
5 years ago