Gleb Mazovetskiy
7b0558146e
Async load: Handle errors
1 year ago
qndel
24f108f193
fix many typos ( #7322 )
2 years ago
djvs
a6e2481a3e
Option to not pause the game when the window loses focus ( #7046 )
2 years ago
Gleb Mazovetskiy
5790a733bf
DiabloUI: Fix Japanese text clipping
...
Fixes #6911
2 years ago
obligaron
426dd4c4af
Add scroll wheel support to keymapper
2 years ago
obligaron
b2acfbc95d
Fix remaining warnings in DiabloUI
2 years ago
obligaron
d3bdd4b8cc
Change DiabloUI list callbacks indexes from int to size_t
2 years ago
obligaron
2b15eb8d03
Fix MSVC warnings from headers
2 years ago
qndel
4fa97dd6de
fix calculating length remaining till hitting limit ( #6786 )
2 years ago
Gleb Mazovetskiy
dbfa204944
Lua: Set `warn` function
...
Previously, warnings went nowhere.
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
Gleb Mazovetskiy
3ea4996367
Add a basic Quake-style console
...
Enabled only in Debug mode.
Runs Lua similar to the `lua` CLI.
Supports multiline input with Shift+Enter.
Missing features:
1. Scrollback.
2. Input history on up/down.
Open with backtick, close with Esc.
2 years ago
Gleb Mazovetskiy
115c0716d4
TextInput: A couple of fixes
...
1. Fixes `erase`.
2. Marks some events that will handle TextInput as handled.
3. Adds Ctrl+A.
2 years ago
Gleb Mazovetskiy
2b0876edfa
Text input: Add Ctrl/Alt word navigation
2 years ago
Gleb Mazovetskiy
55b0fc5c26
Text inputs: Selection, copy, cut
...
Adds shift selection, Ctrl+C, and Ctrl+X handling.
Also fixes left-right movement for non-ASCII characters.
2 years ago
Gleb Mazovetskiy
e5881688f4
`text_render`: Replace optional args with struct
...
4 options args are a bit unwieldy, especially when you want
to pass only the first and the last one.
With a struct, there is no need to specify the default values
for the args in between.
2 years ago
Gleb Mazovetskiy
09ab58343c
Migrate gold drop/withdrawal to `text_input`
...
With this, all text input is handled in a unified way.
2 years ago
Gleb Mazovetskiy
fdb5738815
Add cursor support to DiabloUI and chat
...
Supports move left/right/home/end, backspace, delete, and Ctrl+V.
2 years ago
qndel
fc1cbef13d
fix menu bugs
2 years ago
Gleb Mazovetskiy
5aa71b41c5
Clean up `SDL_GetClipboardText` handling
2 years ago
qndel
43766daa50
fix mem leak in pasting name
2 years ago
Anders Jenbo
d725fdb4f3
Add screen reader support
3 years ago
ephphatha
28fd553266
Use HeroClass in UI functions
3 years ago
Vinícius Ferrão
dff46af2de
Fixes testing characters from Hellfire showing up in Diablo
...
This commit restricts the use of Test Barbarian and Test Barb to the
Hellfire expansion only.
Signed-off-by: Vinícius Ferrão <vinicius@ferrao.net.br>
3 years ago
Gleb Mazovetskiy
26f42520fa
Fix unused variable warnings
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
e9b5ec77f9
Remove AppendStrView
3 years ago
Gleb Mazovetskiy
14540164a7
Remove utils/stdcompat/optional.hpp
3 years ago
Gleb Mazovetskiy
8101e2c0ba
Add `c_any_of` and friends
...
Adds handy helpers for performing algorithms on the entire container.
They're prefixed with `c_` for container.
This naming convention is identical to some popular C++ libraries, such
as Abseil.
3 years ago
ikonomov
db7ca59738
Update discord link in support
3 years ago
Gleb Mazovetskiy
de081b7080
Fix a few compilation warnings
3 years ago
Eric Robinson
074a1f2e0c
Rename: Loopback -> Offline ( #6300 )
3 years ago
Anders Jenbo
4eb07c9237
React to SDL_WINDOWEVENT_RESTORED
3 years ago
Anders Jenbo
555dac5d22
Fix code style
3 years ago
Anders Jenbo
9e7d223f19
Menu tweaks
3 years ago
DakkJaniels
e485493a3d
Fix print screen for different print screen key bindings ( #6060 )
3 years ago
Gleb Mazovetskiy
750cebc561
Delay reinitializing hwcursor until fade 1
...
With fade 0 the cursor is never visible because everything is black.
While this is a very minor optimization, it works around
one of the instances of a bug in certain drivers as seen in #5618 .
3 years ago
Gleb Mazovetskiy
346ff443f7
Fix hwcursor re-enabling when reducing window size
3 years ago
qndel
3920aaa9f1
fix displaying difficulty indicator on hero selection ( #6118 )
3 years ago
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
obligaron
a632d733c3
Update gbActive correctly when minimizing the app
3 years ago
staphen
5995e7da38
Fix OOB vector access when toggling fullscreen in settings menu
3 years ago
DakkJaniels
b0cb925a5e
Add print screen to event handler for UI ( #6058 )
3 years ago
staphen
71ccd415c5
Update gamepad motion state regardless of the active event handler
3 years ago
Gleb Mazovetskiy
c858ab4d2c
Fix some compilation warnings
...
also removes a couple of unused filesystem includes
3 years ago
Anders Jenbo
454efdc2c1
Re arange UI files
...
¨
3 years ago
Gleb Mazovetskiy
f7580f188c
Fix multiline `DrawStringWithColors` alignment
...
For center or right alignment, the lines past the first line were
aligned incorrectly. The alignment was based on the width of the
format string.
3 years ago
Gleb Mazovetskiy
1788d2f8ec
Remove miniwin
...
Event handling code moved to `engine/events.{hpp,cpp}`.
3 years ago
Anders Jenbo
c99f7cf644
Floating numbers ( #5639 )
...
Co-authored-by: qndel <stefan551@o2.pl>
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago