Anders Jenbo
df82616df1
clang-tidy: auto fix headers for DiabloUI
7 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months 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
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