Andrew James
0add7a8af6
Define sizes using Size type in control.cpp/stash.cpp ( #4737 )
...
* Use appropriate types for size constants in control.cpp
* Declare constexpr value for iterating over the cells in a stash grid
* Use appropriate type for UIRectangle dimensions
4 years ago
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
qndel
f84c35d2dc
fix typos
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
Gleb Mazovetskiy
c2b5cad662
Fix SPLICONLAST for zero-based frame indexing
...
Follow-up to https://github.com/diasurgical/devilutionX/pull/4221
4 years ago
Gleb Mazovetskiy
a66ca44695
Zero-based frame indexing
...
Index frames starting at 0 instead of 1.
4 years ago
Gleb Mazovetskiy
f4bce38875
Use `uint16_t` for sprite widths
4 years ago
Gleb Mazovetskiy
7fede6c4cb
Clean up owned/unowned CelSprite ambiguity
...
Makes `CelSprite` unowned and adds a new `OwnedCelSprite` class for
owned sprites.
This clarifies ownership and makes the code cleaner in a number of
places.
Additionally, because the `CelSprite` class is now tiny (1 less
pointer), we can pass it by-value instead of by-reference, removing a
pointer indirection in the rendering functions.
4 years ago
Felipe Wannmacher
6e32bf9794
changed spell circle ui ( #3963 )
4 years ago
Gleb Mazovetskiy
ccf8cc004d
Spell book: Fix "Level 0 - Unusable" overlap
...
Removes the display of mana and damage for unusable spells
and moves the "Unusable" text onto the second line, fixing
the overlap.
4 years ago
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.
4 years ago
Gleb Mazovetskiy
8d1708358f
Extract spell list and book into separate files
...
Moves the spell list/book UI from `control.cpp` code into separate files.
4 years ago