428 Commits (f4f8f22699846196efaa42b8cf6041fff4bee2d6)

Author SHA1 Message Date
Andrew James 60a47caf1b
Refactor Draw* functions to use Rectangle and Point types 5 years ago
Anders Jenbo ee7b32d8f6 Player by reference part 3 5 years ago
Anders Jenbo e670faac99 🔥 Remove unused code DrawInvMsg 5 years ago
Gleb Mazovetskiy f98148484f
🐞 Fix inventory manipulation (#2216) 5 years ago
Gleb Mazovetskiy 5cefb4a365 Fix `-Wswitch` in `UseInvItem` 5 years ago
Gleb Mazovetskiy e40b1963f9 🚚 engine.h: Extract `CelSprite` and file loading 5 years ago
Gleb Mazovetskiy aa54675d83 🚚 engine.h: Extract `Size` 5 years ago
Juliano Leal Goncalves a983792880 ♻️ Replace 'pair<int, int>' with 'Size' in 'GetItemSizeOnSlot' and 'GetInvItemSize' 5 years ago
Juliano Leal Goncalves 572c3e632e ♻️ Leverage 'Point' in 'InvDrawSlotBack' implementation 5 years ago
Juliano Leal Goncalves 07a049f667 ♻️ Replace 'INV_SLOT_SIZE_PX' macro with Size-based constexpr 5 years ago
Juliano Leal Goncalves 0e2d734bbb ♻️ Leverage 'Size' in 'CheckInvPaste' implementation 5 years ago
Juliano Leal Goncalves 4ab80d25f4 ♻️ Leverage 'Size' in 'AddItemToInvGrid' function 5 years ago
Gleb Mazovetskiy 43bc08bd63 Hardware Cursor: Fall back to software on failure 5 years ago
Gleb Mazovetskiy 523d838bd4 Hardware Cursor: Use item hotpoint 5 years ago
Gleb Mazovetskiy 432fdacd81 Clip `InvDrawSlotBack` draw call 5 years ago
qndel 816b244689 HasItem/RemoveInvItem combo refactor 5 years ago
qndel 0c39656c91 fix reconstructed note 5 years ago
Juliano Leal Goncalves 1328c9ea93 🎨 Make 'Size' fields camelCase 5 years ago
Vladimir Olteanu 512fcdb790 Use WalkingDistance in PutItem 5 years ago
Juliano Leal Goncalves 8622130966 ♻️ Add '==' and '!=' operators to 'Size' struct 5 years ago
Juliano Leal Goncalves ff3dee8d45 ♻️ Replace poor usages of 'Size' with 'Point's 5 years ago
Juliano Leal Goncalves abee4fe6fe ♻️ Repurpose the 'InvXY' struct as a new 'Size' struct 5 years ago
Juliano Leal Goncalves 21ecaa225f
♻️ Leverage 'Point' struct on inventory functions (#2094) 5 years ago
Kalebe Alves 118efe8e6d
Use Point/SDL_Rect for control functions coordinate system 5 years ago
Gleb Mazovetskiy dd3ea66fa2 ♻️ Split getTextColor(bool) into 2 functions 5 years ago
qndel 2f3cf65b27 cleanup getTextColor 5 years ago
Anders Jenbo 8a7ec56d3a Player by reference part 2 5 years ago
Anders Jenbo 6ce8f13751 Apply clang-tidy to more code and do some related cleanups 5 years ago
Juliano Leal Goncalves 21fdb0dcd9 ♻️ Replace manual direction displacement logic with 'Point' add operator 5 years ago
Juliano Leal Goncalves d55cd99dd5 🚚 Rename 'direction' enum to 'Direction' 5 years ago
Juliano Leal Goncalves 15c46b9eb0 💬 Rename HeroSpeech members to improve discoverability 5 years ago
Juliano Leal Goncalves 5350250a76 🚚 Rename speech functions to 'Say' variations 5 years ago
Juliano Leal Goncalves 8c620ce29e ♻️ Extract 'HeroSpeech' enum class for hero sounds instead of using raw `int`s 5 years ago
Jmgr 0e7ada15fc Apply new format to ngexttext translations 5 years ago
Anders Jenbo 34744c068f ♻️Consitantly use %i and not %d 5 years ago
Stefan Mielke 30bfe45781 One pixel was not being calculated on the X axis when trying to find for an inventory slot to put the item. 5 years ago
qndel 89c40eaa7b
inventory items rendering cleanup (#1938) 5 years ago
Anders Jenbo 0c2042fa52 ♻️ Player by reference 5 years ago
Anders Jenbo 68e73c0dfe 🐛 Fix infopanel text color 5 years ago
Anders Jenbo ad97ebe980 🔥 Remove redundant code from towners.cpp 5 years ago
Stefan Mielke dfece830ad
Controller Inventory Improvements (#1885) 5 years ago
Aneurin 2365b5f440
Improve inventory filling algorithm (#1876) 5 years ago
Anders Jenbo 8361e70087 ♻️Use DrawString in error.cpp 5 years ago
Anders Jenbo 68923c6c33 Generic game text render function 5 years ago
Anders Jenbo 4b577329f4 ♻️Refactor towner initialization 5 years ago
Anders Jenbo 6321bf04d5 ♻️Pass player to towner by reference instead of index 5 years ago
Gleb Mazovetskiy 0edfa3de66 🚚 Move CEL rendering to engine/render/cel_render.cpp 5 years ago
Gleb Mazovetskiy 34b4ed759a 🐞 Clean up and fix inventory sprite handling 5 years ago
Anders Jenbo 22d7d41615 🌐 Fix remaning plural form of gold related texts 5 years ago
Gleb Mazovetskiy 1b8b62a8c2 ♻️ Store CEL width with the sprite itself 5 years ago