Gleb Mazovetskiy
4e74717fc2
[1.5] Backport text rendering
...
Backports the text rendering code from 1.6 to 1.5.
Done by starting with the current master's engine/render/text_render
and backporting things as-needed until it worked.
CLX rendering and text input handling are also backported as part of
this change.
5 months ago
Gleb Mazovetskiy
b382700ba8
help.cpp: Fix unused variable warning
3 years ago
Gleb Mazovetskiy
4f21264a98
Fix compilation error in help.cpp
...
Also fixes a warning in the same function
3 years ago
Raphaël Colin
9ed249bdb9
Add scrollbar to help window ( #5481 )
...
* Add scrollbar to help window. Also reduced the help window's text width to make space for the scrollbar.
3 years ago
obligaron
d86c4e5d84
Introduce GetUIRectangle() to distinguish between UI and main panel
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
Anders Jenbo
718c46e7fe
Remove use of tempstr
4 years ago
qndel
48f102eff1
Chat log
4 years ago
Gleb Mazovetskiy
95988ae4d8
help.cpp: Fix `-Wunused-const-variable`
...
Source/help.cpp:102:15: warning: unused variable 'ContentPaddingTop' [-Wunused-const-variable]
Source/help.cpp:103:15: warning: unused variable 'ContentOuterHeight' [-Wunused-const-variable]
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
Anders Jenbo
95fef934c1
Correctly cut up lines
...
Fixes #3558
4 years ago
Gleb Mazovetskiy
e29c1d05a2
Improve Help screen layout + fix CJ
4 years ago
Oleksandr Kalko
11e2cc181d
Fix missing punctuation in Help screen ( #3520 )
4 years ago
Anders Jenbo
5adcd60667
Only initialize help once
...
Fixes #3256
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
Anders Jenbo
704a04ae4d
Add support for Unicode fonts
5 years ago
Anders Jenbo
7771a08d03
Translatable mainpanel
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
ephphatha
0cbaaf56f2
Normalise spacing between words/sentences in help.cpp
5 years ago
ephphatha
0575716eac
Rename UiFlags members to group related options
5 years ago
ephphatha
4ad53232a0
Convert the UiFlags enum to a scoped enum type
...
Replace operator&& with named function
5 years ago
Anders Jenbo
74b57558c9
🚚 Move local code to anonymous namespace
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Gleb Mazovetskiy
55464eec78
Fix `-Wmissing-braces`
...
Fixes warnings such as this one:
```
../../../../../../Source/engine/render/text_render.hpp:83:33: warning: suggest braces around initialization of subobject [-Wmissing-braces]
return DrawString(out, text, { position.x, position.y, out.w() - position.x, 0 }, flags, spacing, lineHeight, drawTextCursor);
^~~~~~~~~~~~~~~~~~~~~~
```
5 years ago
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
5 years ago
Gleb Mazovetskiy
cb0dae8590
🚚 Rename `CelOutputBuf` to `Surface` and extract
5 years ago
Anders Jenbo
6ce8f13751
Apply clang-tidy to more code and do some related cleanups
5 years ago
Anders Jenbo
6acb49bea4
Render quest and menu text using common text rendering
5 years ago
Anders Jenbo
d723ebce1a
Render help text using common text rendering
5 years ago
Anders Jenbo
2600b44141
Remove old help text
...
The help for the shareware version appears to be an older and more verbose version that simply was never updated (both are unchanged between 1.00 and 1.09).
5 years ago
arcas
6502a3ca4d
Adding resources for translation ( #1973 )
5 years ago
Anders Jenbo
18aa04fa4f
♻️ Use common text rendering for store menus
5 years ago
Anders Jenbo
8361e70087
♻️ Use DrawString in error.cpp
5 years ago
Anders Jenbo
68923c6c33
✨ Generic game text render function
...
This should gradually replace all the direct rendering of game texts
throughout the code. The interface is made to closly mirror that of the
art fonts as that is what will eventually be used for rendering Unicode
fonts both in the menus and ingame.
fixup! ✨ Generic game text render function
5 years ago
Anders Jenbo
4a7ba94702
🎨 Run clang-format
5 years ago
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
5 years ago
John Törnblom
e0dddf508a
Add automatically translated string literals ( #1694 )
5 years ago
Anders Jenbo
d024f79b0e
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
2362ff82f7
✨ Add black text color
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
5 years ago
Gleb Mazovetskiy
fd70879577
Migrate DrawSLine away from gpBuffer
...
Also applies bugfix
5 years ago
Juliano Goncalves
53e1d6b50d
✨ Equip & unequip items with shift click.
5 years ago
Juliano Goncalves
fc1d9b684f
✨ Allow shift+click moving to inventory
5 years ago
Juliano Goncalves
5287d6e329
✨ Allow shift+click moving to belt
5 years ago
Anders Jenbo
2923ad043a
🚸 Shift+click to clear the readied spell
5 years ago