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
obligaron
bc15bdf3a9
Remove PANEL_ defines and replace them with GetMainPanel()
4 years ago
ephphatha
64a2c41b2c
Set clang-tidy config for MethodCase option
...
Previously this was falling back to FunctionCase, leading to inconsistent casing of class methods throughout the codebase. Applied to Item as an example.
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
ade8aba822
Fix some more warnings
4 years ago
Gleb Mazovetskiy
e3945da045
Fix a negative shift exponent sanitizer warning
...
Source/spells.h:54:14: runtime error: shift exponent -1 is negative
4 years ago
Drakker
3039b760e1
Added more Quickspell hotkeys for a total of 16. Saving will write the number of configured quickspell slots at the beginning of the hotkeys file. The loader will check the size, if its bigger than older saves should be it will load the header and read the hotkeys, otherwise it will load 4 quickspells for compatibility.
4 years ago
Anders Jenbo
6d28810dc7
Change infostr from char[128] to std::string
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
Anders Jenbo
be57d62684
Use UTF8 aware string copying
4 years ago
Anders Jenbo
718c46e7fe
Remove use of tempstr
4 years ago
Anders Jenbo
a48f89007d
Implement stash
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
KPhoenix
8d71a48b70
Remove MAX from Char Panel Resists ( #4103 )
...
* Remove MAX from Char Panel Resists
Co-authored-by: obligaron <obligaron@live.com>
Co-authored-by: qndel <stefan551@o2.pl>
4 years ago
qndel
81800e64bb
MAXCHARLEVEL cleanup
4 years ago
Gleb Mazovetskiy
1519e995cf
Move store graphics out of `stores.cpp`
...
These graphics are used in various places outside of `stores.cpp`.
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
obligaron
419fe7b7ec
Change Keymapper to OptionCategory/OptionEntry
4 years ago
Gleb Mazovetskiy
bffd0d9521
Char panel layout improvements
...
1. Increase line height for CJK labels (10->18) to prevent overlap.
2. Increase label width in the right column by 1px (67->68), allowing 3 fullwidth characters to fit on one line.
3. Adjust Base/Now/Gold attribute header positions for CJK.
4. Fix field label/value alignment.
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
db7c9d08f5
Move DoSpeedBook to the right header
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Vladimir Olteanu
210ea7d18d
Always draw spell hotkey in town
4 years ago
Vladimir Olteanu
14eae23441
Spell list: always draw hotkeys
...
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
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
qndel
8f0f83c70c
fix damage spacing
4 years ago
Gleb Mazovetskiy
0c694edaba
WordWrapString: Wrap on punctuation
...
Useful for Chinese and Japanese, which do not have spaces between words,
nor whitespace after punctuation.
5 years ago
Anders Jenbo
704a04ae4d
Add support for Unicode fonts
5 years ago
qndel
0569dba547
fix typos
5 years ago
Anders Jenbo
7771a08d03
Translatable mainpanel
5 years ago
Anders Jenbo
4bf58b3795
Leave default spacing default
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Anders Jenbo
2d47c12515
Fix charpanel always showing player 0 stats
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
qndel
60e27e2427
Merge pull request #2759 from qndel/fix_panel
...
fix panel at higher resolutions
5 years ago
qndel
a737d72dd9
Dynamic char panel
5 years ago