Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
obligaron
419fe7b7ec
Change Keymapper to OptionCategory/OptionEntry
4 years ago
obligaron
7b2f651bb2
Allow QuickMessages to contain multiple entries/lines
4 years ago
ephphatha
bda0a0624b
Replace some usages of Item.statFlag
4 years ago
Gleb Mazovetskiy
a4bc8fea7d
Fix warnings: `-Wsign-compare`, `-Wnarrowing`
4 years ago
Gleb Mazovetskiy
c57644970f
Move `UiFlags` and `UiPanels` into their own files
...
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
4 years ago
Gleb Mazovetskiy
8d1708358f
Extract spell list and book into separate files
...
Moves the spell list/book UI from `control.cpp` code into separate files.
4 years ago
Gleb Mazovetskiy
1eb6e2bac0
Improved spell book layout
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
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