Anders Jenbo
a76e24d386
Clean ups
4 years ago
Anders Jenbo
5757562341
Clean up inventory code
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