Commit Graph
111 Commits
Author SHA1 Message Date
Gleb Mazovetskiy 8c1a847f41 Remove utils/stdcompat/string_view.hpp 2023-08-14 09:59:14 +01:00
Gleb Mazovetskiy b382700ba8 help.cpp: Fix unused variable warning 2022-11-13 12:14:23 +00:00
Gleb Mazovetskiy 4f21264a98 Fix compilation error in help.cpp
Also fixes a warning in the same function
2022-11-12 09:57:54 +00:00
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.
2022-11-12 04:18:45 +01:00
obligaron d86c4e5d84 Introduce GetUIRectangle() to distinguish between UI and main panel 2022-05-29 20:20:44 +02:00
Anders Jenbo 1409e604f5 Reduce string conversions 2022-03-20 11:04:15 +01:00
Anders Jenbo 718c46e7fe Remove use of tempstr 2022-03-19 06:03:19 +01:00
qndel 48f102eff1 Chat log 2022-03-06 01:02:55 +01:00
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]
2021-11-28 10:30:24 +00:00
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.
2021-11-25 12:22:27 +01:00
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