Juliano Leal Goncalves
6aa6efb720
♻️ Extract item position generation logic to common function
2021-05-31 06:05:35 +02:00
Juliano Leal Goncalves
b04047ba4d
♻️ Leverage 'Point' struct on 'SpawnUnique'
2021-05-31 06:05:35 +02:00
Juliano Leal Goncalves
9c85e61025
♻️ Leverage 'Point' struct on 'ItemSpaceOk'
2021-05-31 06:05:35 +02:00
qndel
ab0478319c
assign seed to quest items + rng cleanup
2021-05-28 20:02:58 +02:00
Kalebe Alves
118efe8e6d
Use Point/SDL_Rect for control functions coordinate system
2021-05-28 19:57:16 +02:00
Gleb Mazovetskiy
dd3ea66fa2
♻️ Split getTextColor(bool) into 2 functions
...
This is a bit more readable than using a bool argument.
2021-05-28 13:38:36 +02:00
qndel
2f3cf65b27
cleanup getTextColor
2021-05-26 15:58:14 +02:00
qndel
b1d74d2791
alt highlighting ( #2060 )
2021-05-25 23:47:29 +02:00
Anders Jenbo
68249d07e3
Correct false positives translation warnings
...
Fixes #2053
2021-05-25 01:29:05 +02:00
Anders Jenbo
8a7ec56d3a
Player by reference part 2
...
This mostly change player to be by reference instead of by index.
But additionally it does stript checks for gold in the belt, move some
value types to the initialization and short circute a few functiongs.
2021-05-24 21:00:32 +02:00
obligaron
d97131349e
Unify player_graphic memory handling
2021-05-24 20:12:43 +02:00
obligaron
61ba5009ac
Convert to CelSprite
2021-05-24 20:12:43 +02:00
obligaron
3067aeacb8
Remove PlayerStruct._pXYZWidth and replace it with calls to GetAnimationWidth
2021-05-24 20:12:43 +02:00
obligaron
c424f601ec
Change LoadPlrGFX from pnum to PlayerStruct
2021-05-24 20:12:43 +02:00
Jmgr
0e7ada15fc
Apply new format to ngexttext translations
2021-05-21 01:02:45 +02:00
Jmgr
bbd39aa513
Replace sprintfs with strcpy for translatable strings
2021-05-21 01:02:45 +02:00
Jmgr
6e85cde978
Update format strings
2021-05-21 01:02:45 +02:00
Jmgr
0c27e756f7
Add fmt::format
2021-05-21 01:02:45 +02:00
obligaron
a295586636
Support changing animation data on-the-fly even if the number of frames differ
2021-05-19 21:16:19 +02:00
Vladimir Olteanu
0c7c71d579
Cleanup of items.cpp ( #1967 )
...
- Apply Point where applicable
- Deduplicate vendor logic
- Add comment about unhanded edge case in GetSuperItemLoc
- Initialize some variables at deceleration
2021-05-17 00:12:53 +02:00
obligaron
55fa72d138
When changing items hot-swap the hero animation data and don't start a new animation
2021-05-16 21:25:14 +02:00
arcas
6502a3ca4d
Adding resources for translation ( #1973 )
2021-05-15 14:12:28 +02:00
obligaron
1385e47518
Fix UnitTests in DEBUG (Accessed not initialized ItemAnimations)
2021-05-15 02:08:26 +02:00
Anders Jenbo
6c8b116f6c
🐛 Evaluate item names the same as the original
2021-05-13 22:09:27 +02:00
Anders Jenbo
0c2042fa52
♻️ Player by reference
...
Update Source/items.cpp
Update Source/lighting.cpp
Update Source/pack.cpp
asd
ads
as
2021-05-13 01:47:46 +02:00
Anders Jenbo
68e73c0dfe
🐛 Fix infopanel text color
2021-05-12 11:40:31 +02:00
Anders Jenbo
e665a0c4b0
♻️ Draw info box text using DrawString
2021-05-10 22:28:21 +02:00
Anders Jenbo
c5f0d1dbdd
♻️ Use DrawString for rendering the unique item box
2021-05-08 18:48:19 +02:00
Anders Jenbo
68923c6c33
✨ Generic game text render function
...
This should gradually replace all the direct rendering of game texts
throughout the code. The interface is made to closly mirror that of the
art fonts as that is what will eventually be used for rendering Unicode
fonts both in the menus and ingame.
fixup! ✨ Generic game text render function
2021-05-08 18:48:19 +02:00
Anders Jenbo
6321bf04d5
♻️ Pass player to towner by reference instead of index
2021-05-07 00:29:46 +02:00
Anders Jenbo
c98a1409f9
♻️ Pass towners by reference instead of index
2021-05-07 00:29:46 +02:00
Gleb Mazovetskiy
0edfa3de66
🚚 Move CEL rendering to engine/render/cel_render.cpp
2021-05-07 00:16:40 +02:00
Juliano Leal Goncalves
39736e2538
♻️ Pass 'PlayerStruct' pointer to 'ClrPlrPath'
2021-05-05 00:38:58 +02:00
thebigMuh
8e19ef5460
- Fixed outline drawing for item on cursor to match rest of game
...
- Made GetOutlineColor const
- Made gold outline golden again... because the white outline made me sad
2021-05-04 06:09:05 +02:00
Anders Jenbo
d83fa8edb3
🌐 Apply plural translation where applicable
2021-05-02 04:47:49 +02:00
thebigMuh
cab62a7dbf
Load item graphics early so they are available for hero selection
2021-05-02 04:12:54 +02:00
Gleb Mazovetskiy
8e634ff02c
♻️ Remove _iAnimWidth
...
No longer needed as of #1796
We could probably go further and not expose `ItemAnimWidth`,
but it'd be dangerous because sometimes `_iAnimData` is null.
2021-05-02 02:05:36 +02:00
Gleb Mazovetskiy
0b18b8977b
🐞 items.cpp: Fix nullopt access
...
A better fix would probably be to not call this function in the first
place before the graphics are loaded.
2021-05-02 01:49:14 +02:00
Anders Jenbo
22d7d41615
🌐 Fix remaning plural form of gold related texts
2021-05-02 00:31:02 +02:00
Gleb Mazovetskiy
5bb6dc928a
🌍 Add some missing /*xgettext:no-c-format*/ annotations
2021-05-01 23:56:27 +02:00
Gleb Mazovetskiy
4408ddc127
🧹 Fix some -Wformat warnings
2021-05-01 21:59:34 +02:00
Gleb Mazovetskiy
1b8b62a8c2
♻️ Store CEL width with the sprite itself
...
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.
Implemented for most sprites except towners, missiles, or monsters.
2021-05-01 20:51:55 +02:00
Mathieu Maret
dc28b7464e
Do not translate spacing
2021-05-01 19:31:25 +02:00
Mathieu Maret
e47d80f8df
Fix in-correct c-format in pot
...
Detected as c-format because of % presence
but are used as regular strcpy
checked that clang-format will not break it
2021-05-01 19:31:25 +02:00
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
2021-04-29 23:04:56 +02:00
Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
2021-04-29 21:36:31 +02:00
Anders Jenbo
ff1bcb0d03
♻️ Clean up ItemDoppel
2021-04-29 16:04:30 +02:00
Anders Jenbo
bd515ac75d
♻️ Apply Point equality operator
2021-04-29 16:04:30 +02:00
qndel
0af36dc416
rename upper->uper
2021-04-29 13:30:45 +02:00
Anders Jenbo
48dbb47d70
🌐 Apply static translations
2021-04-29 01:21:28 +02:00