Stephen C. Wills
a563b65642
Fix compiler warnings ( #8098 )
7 months ago
Doink Oink
c62a19e299
Party Information Panel ( #7877 )
7 months ago
Eric Robinson
e303a82b1c
Floating Item Info Box ( #8000 )
7 months ago
staphen
82868d5dfb
Fix crashes at startup in Win9x builds
9 months ago
staphen
ae5b49ce93
Fix crash due to text selection in chat box
10 months ago
staphen
f1c1e530f5
Draw the filled part of the lower flask
10 months ago
staphen
5e561d709a
Validate network data when importing portal deltas
10 months ago
staphen
8526f2e8f6
Fix warning about not handling enumeration value 'None'
1 year ago
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
1 year ago
Eric Robinson
aca06e898a
Menu text revision ( #3902 )
1 year ago
obligaron
8572535bd7
Allow lua debug quick messages in singleplayer
1 year ago
Gleb Mazovetskiy
3bb1d685af
Extract current input mode into its own library
...
Removes a transitive dependency on the entire plrctrl from options.
1 year ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
Gleb Mazovetskiy
bbcda12792
Move QuickMessages to its own library
...
Eliminates an options->diablo dependency.
1 year ago
Gleb Mazovetskiy
d7647d6c63
More dependency untangling
...
1. Moves more assets-related stuff from `init` to `engine/assets`.
2. Removes `SDL_audiolib` dependency from `soundsample.h`.
3. Cleans up some unused/missing includes.
1 year ago
Gleb Mazovetskiy
a7651f15d9
Extract `HeadlessMode` from `diablo.h`
...
Untangles some dependencies.
Many places that use `HeadlessMode` do not need all of `diablo.h`.
1 year ago
Gleb Mazovetskiy
836bd4b3e6
Fix -Wnarrowing in DrawInfoBox
1 year ago
Gleb Mazovetskiy
7b0558146e
Async load: Handle errors
1 year ago
Andrew James
c7abf2f778
Extract logic from CheckInvCut/AutoPlaceItemInInventory ( #7494 )
...
* Remove unnecessary namespace
* Extract FindSlotUnderCursor
* Split logic for finding a space in the inventory to dedicated functions
1 year ago
qndel
fe15ae32f0
fix warnings
2 years ago
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
Eric Robinson
8970eaa410
Cleanup panel code (Part 1) ( #7417 )
...
HPPer changed from 80 to 81. The globes have 81 rows of pixels that can be filled.
2 years ago
staphen
df0b3aaab7
Ensure that network timeout info shows up in the info panel
2 years ago
matheusgomes28
7848ab731e
Splitting CheckInvPaste() into smaller functions ( #6984 )
2 years ago
Trihedraf
334f306192
Clear Panel so lines don't repeat
2 years ago
staphen
9e682afe13
Rename glSeedTbl
2 years ago
Gleb Mazovetskiy
647f8c38e4
Slightly improve CJK infobox rendering
...
It still isn't perfect (there just isn't enough space) but we now
cut off fewer pixels at the bottom.
2 years ago
obligaron
b32cc11ad9
Disable chat in singleplayer also for debug builds
2 years ago
Krzysztof Pawlik
43cc74c94e
Do not translate chat box commands.
2 years ago
Krzysztof Pawlik
48d0b9da18
Fix typo: "unkown" -> "unknown".
2 years ago
Krzysztof Pawlik
6bc478a694
Reuse two strings, add missing translation.
2 years ago
ephphatha
3b458376bb
Use a pointer to a player instance instead of network id for cursor hovering
2 years ago
Gleb Mazovetskiy
a2b94cc03c
Lua: Migrate and organize the rest of debug cmds
...
Fully migrates debug commands to Lua and organizes them into logical
groups.
The CLI `+` syntax now runs Lua, e.g.:
```bash
build/devilutionx '+dev.player.trn.plr("infra")'
```
Chat hotkeys run Lua code if they start with `/lua`, e.g.:
```ini
[NetMsg]
QuickMessage1=/lua message(dev.player.info())
```
2 years ago
Gleb Mazovetskiy
c5a5dc9f5c
Fix a few MSVC warnings
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
ee2b61dae6
Clean up SDL_GetClipboardText in chat paste ( #6731 )
2 years ago
qndel
a9c49b13a1
add pasting to chat
2 years ago
Gleb Mazovetskiy
88bbf4f913
Improve DiabloMsg handling
...
1. Simplified implementation.
2. Now adjusts the box size to fit the content (e.g. when wrapping
failed or when there are too many lines).
2 years ago
Gleb Mazovetskiy
d1d27c8368
Rename error -> diablo_msg
2 years ago
Gleb Mazovetskiy
270a064fe6
Fix "Level Up" label in French
...
Fixes #6615
2 years ago
Eric Robinson
ffc7190898
Automap: Add minimap display option ( #6612 )
3 years ago
Eric Robinson
4c7e2edd06
Automap: Transparency ( #6607 )
3 years ago
Anders Jenbo
d725fdb4f3
Add screen reader support
3 years ago
Gleb Mazovetskiy
848f234aed
Add automap type cycling controls
...
Makes cycling the automap type separate from toggling it on/off.
The TAB key can still be used for quick on/off as usual, while
the new Cycle key ("m" by default) can be used to switch between available
display types.
`Get/NextDebugMonster` debug keybind changed to "v" to avoid a conflict.
3 years ago
ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
ephphatha
5d50b5520d
Add PlayerData lookup helper to avoid manual casts
...
This lets us remove the PlayersData global, and we can use a helper in the player class for convenience.
3 years ago