Commit graph

31 commits

Author SHA1 Message Date
staphen
74a77666b9 Improve behavior of ToControllerButtonEvent() 2021-12-24 23:08:41 +01:00
Anders Jenbo
73e749f491 Adjust dialog font metrics 2021-10-27 00:01:00 +02:00
Anders Jenbo
50c65abec0 Word wrap text in main menu dialogs 2021-10-13 03:51:52 +02:00
Anders Jenbo
f291235dcd Fix error message font color 2021-10-13 03:51:52 +02:00
Anders Jenbo
4dd8b121ec Replace TTF with PCX font 2021-09-29 18:13:48 +02:00
ephphatha
0575716eac Rename UiFlags members to group related options 2021-07-31 20:22:40 +02:00
ephphatha
7d93cada67 Refactor UiItemBase and derived types to reduce duplicate constructors
Using optional arguments where possible so that all use cases can share the same constructor. Also moving member initialisation to the initialiser list syntax as this makes it clear that the derived class is only setting properties on that class, leaving the parent constructor to initialise members of the parent class.
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
Vladimir Olteanu
c57560674e Use smart pointers for UI items
vector::push_back(new Foo(...)) leaks if resizing fails
2021-07-08 03:37:47 -07:00
Anders Jenbo
6d492e8220 Rename UI globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
a7c7fa0030 Fully apply clang-tidy/format to all files 2021-07-03 16:41:43 -07:00
Anders Jenbo
57caa192fb Clang-tidy: performance-move-const-arg 2021-06-27 01:51:07 +02:00
Anders Jenbo
51d5c8bcab Clang-tidy: performance-unnecessary-value-param 2021-06-27 01:48:19 +02:00
Anders Jenbo
f167bd4dfb Clang-tidy: llvm-include-order 2021-06-27 01:45:49 +02:00
Anders Jenbo
de4ced7e4f Clang-tidy: readability-qualified-auto 2021-06-27 00:56:08 +02:00
Gleb Mazovetskiy
43bc08bd63 Hardware Cursor: Fall back to software on failure 2021-06-19 12:36:39 +01:00
Gleb Mazovetskiy
f9d20b44d6 🎉 Hardware cursor (SDL2-only)
Disabled by default because of these known issues:

1. When clicking on inventory item, it briefly appears a bit shifted (in the wrong coordinates).

   This issue can happen with software cursor as well, but is a lot more
   obvious with the hardware cursor.

2. Cursor is scaled with nearest-neighbour scaling, which may look a bit different from
   how the rest of the graphics are scaled.

See also previous attempt: https://github.com/diasurgical/devilutionX/pull/955 by @viciious

Co-authored-by: Victor Luchits <vluchits@gmail.com>
2021-06-19 01:03:40 +02:00
obligaron
76103eeb7f Replace C++ RUN_TEST define with gbQuietMode 2021-05-15 02:08:26 +02:00
staphen
6f71fd5b21 Use OS GUI to display error if font fails to load. 2021-05-10 04:47:49 +02:00
Anders Jenbo
dbfa9c27a5 Enable translation for all menus 2021-04-25 06:55:11 +02:00
Jmgr
1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo
cc164985a3 🎨 Correct type checks in src sub-folder 2021-04-22 20:33:24 +02:00
Anders Jenbo
191d98207b 🎨 readability-identifier-naming on DiabloUI 2021-04-22 00:50:07 +02:00
Anders Jenbo
c9af65affe 🎨 Use empty instead of size to check for empty lists 2021-04-22 00:33:55 +02:00
Anders Jenbo
d392f70509 🎨 Do not pass item lists by value 2021-04-22 00:21:05 +02:00
Anders Jenbo
251dce6c89 🧹 Use empty to check if vector is empty 2021-04-22 00:08:19 +02:00
Anders Jenbo
d024f79b0e 🧹 performance-unnecessary-value-param 2021-04-22 00:08:19 +02:00
Anders Jenbo
373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo
b978d80119 🎨 llvm-include-order 2021-04-19 20:11:20 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo
8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00
Renamed from SourceX/DiabloUI/dialogs.cpp (Browse further)