Commit graph

101 commits

Author SHA1 Message Date
Anders Jenbo
95fef934c1 Correctly cut up lines
Fixes #3558
2021-11-20 21:17:19 +01:00
Gleb Mazovetskiy
e29c1d05a2 Improve Help screen layout + fix CJ 2021-11-20 02:31:21 +00:00
Oleksandr Kalko
11e2cc181d
Fix missing punctuation in Help screen (#3520) 2021-11-15 16:24:42 +01:00
Anders Jenbo
5adcd60667 Only initialize help once
Fixes #3256
2021-10-25 21:48:54 +02:00
Gleb Mazovetskiy
0c694edaba WordWrapString: Wrap on punctuation
Useful for Chinese and Japanese, which do not have spaces between words,
nor whitespace after punctuation.
2021-09-30 18:16:31 +02:00
Anders Jenbo
704a04ae4d Add support for Unicode fonts 2021-09-24 03:03:58 +02:00
Anders Jenbo
7771a08d03 Translatable mainpanel 2021-09-19 07:21:52 +02:00
Anders Jenbo
7169882b1f Implement new font rendering 2021-09-12 01:37:28 +02:00
ephphatha
0cbaaf56f2 Normalise spacing between words/sentences in help.cpp 2021-08-10 20:45:09 +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
74b57558c9 🚚 Move local code to anonymous namespace 2021-07-10 17:30:15 -07:00
Anders Jenbo
9ebdb6db69 General clean up 2021-07-08 03:30:25 -07:00
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);
                                       ^~~~~~~~~~~~~~~~~~~~~~
```
2021-07-03 19:08:45 -07:00
Anders Jenbo
4eabc6024b Apply various cleanups via Android Studio 2021-07-03 18:27:17 -07:00
Gleb Mazovetskiy
cb0dae8590 🚚 Rename CelOutputBuf to Surface and extract 2021-07-03 05:33:32 -07:00
Anders Jenbo
6ce8f13751 Apply clang-tidy to more code and do some related cleanups 2021-05-24 05:27:06 +02:00
Anders Jenbo
6acb49bea4 Render quest and menu text using common text rendering 2021-05-21 04:23:49 +02:00
Anders Jenbo
d723ebce1a Render help text using common text rendering 2021-05-19 14:09:33 +02:00
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).
2021-05-17 02:45:05 +02:00
arcas
6502a3ca4d
Adding resources for translation (#1973) 2021-05-15 14:12:28 +02:00
Anders Jenbo
18aa04fa4f ♻️Use common text rendering for store menus 2021-05-14 19:11:43 +02:00
Anders Jenbo
8361e70087 ♻️Use DrawString in error.cpp 2021-05-08 18:48:19 +02:00
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
2021-05-08 18:48:19 +02:00
Anders Jenbo
4a7ba94702 🎨 Run clang-format 2021-05-07 23:26:39 +02:00
Anders Jenbo
b69d18f12d 🌐 Enable translation of all remaning strings 2021-04-25 21:32:41 +02:00
John Törnblom
e0dddf508a
Add automatically translated string literals (#1694) 2021-04-25 18:14:58 +02:00
Anders Jenbo
d024f79b0e 🧹 performance-unnecessary-value-param 2021-04-22 00:08:19 +02:00
Anders Jenbo
997c1dba55 🚚 Split up all.h in to proper header relations 2021-04-16 01:04:54 +02:00
Anders Jenbo
20186e0370 🎨 Replace TRUE/FALSE with true/false
fix


Fix


fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8 ♻️ Change BOOL to bool 2021-04-09 15:13:02 +02:00
Anders Jenbo
bfb3c11c2b 🎨 Change namespace to devilution 2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63 🚚 Apply namespace 2021-04-06 15:21:25 +02:00
Anders Jenbo
2362ff82f7 Add black text color 2021-03-27 23:04:19 +01:00
Gleb Mazovetskiy
70d1d633bd Get rid of SCREEN_X / SCREEN_Y
GlobalOutputBuffer() now returns a clipped subregion
2021-03-17 23:37:58 +01:00
Gleb Mazovetskiy
fd70879577 Migrate DrawSLine away from gpBuffer
Also applies bugfix
2021-03-13 02:26:11 +01:00
Juliano Goncalves
53e1d6b50d Equip & unequip items with shift click. 2021-03-12 03:02:27 +01:00
Juliano Goncalves
fc1d9b684f Allow shift+click moving to inventory 2021-03-11 19:18:22 +01:00
Juliano Goncalves
5287d6e329 Allow shift+click moving to belt 2021-03-11 05:24:59 +01:00
Anders Jenbo
2923ad043a 🚸 Shift+click to clear the readied spell 2021-03-05 00:53:51 +01:00
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing (#1095)
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
2021-03-03 18:20:24 +01:00
Gleb Mazovetskiy
83ce7c27af Enginify trans_rect
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
2021-03-03 12:07:07 +01:00
Juliano Leal Goncalves
aa89fb838d Replace 'Left Click' with 'Left Mouse Button' on help screen shortcuts 2021-02-27 23:59:25 +01:00
pionere
f5c1079d6f eliminate unused code 2021-02-19 22:04:11 +01:00
Juliano Leal Goncalves
0c19d43ee8 Replace "hot key" occurrences with "hotkey" 2021-02-17 19:49:23 +01:00
Juliano Goncalves
20c44a08ca Spend all stat points with shift click 2021-02-17 19:07:39 +01:00
Anders Jenbo
d68c8c1cc8 Fix issues related to cross loading save games 2021-01-17 04:49:23 +01:00
Anders Jenbo
6f8f4c3293 Unify another chunk of simple Hellfire code paths 2021-01-07 07:19:07 +01:00
Anders Jenbo
5bdbf18902 Merge branch 'master' of github.com:diasurgical/devilution 2021-01-05 22:44:11 +01:00
Anders Jenbo
a006a25b62 Clean up variable names 2021-01-03 03:05:42 +01:00