BC Ko
9345c7cac7
Remove duplicate documentation
5 years ago
BC Ko
51f50570da
documentation cleanup : inv
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
5 years ago
Juliano Leal Goncalves
05d206720a
♻️ Replace 'icursW' and 'icursH' globals with single 'icursSize'
5 years ago
Juliano Leal Goncalves
317ebcdd3e
♻️ Replace 'icursW28' and 'icursH28' globals with single 'icursSize28'
5 years ago
Juliano Leal Goncalves
a469f7906e
♻️ Replace 'cursW' and 'cursH' globals with single 'cursSize'
5 years ago
Juliano Leal Goncalves
6c21638bee
♻️ Leverage 'Point' in 'SetCursorPos' function
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
Gleb Mazovetskiy
032eaf7491
External iterators for player items
...
Implements external iterators for player items.
5 years ago
Robin
62a33c61d9
objects: deduplicate logic in OperateShrineGloomy using ForEachItem function
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Thomas Christlieb
8f92248250
don't play 'Uh uh' sound everytime you pick up the cathedral map. fixes #1354
5 years ago
Anders Jenbo
5ddcd90ff9
Make NetSendCmdQuest() take a quest structure as input
5 years ago
Anders Jenbo
4a7fecb9c1
Fix OOB in inventory code
5 years ago
BC Ko
a02eaeecda
use abs
5 years ago
BC Ko
a293abc2a6
cleanup manual value clamping: inv.cpp
5 years ago
Juliano Leal Goncalves
f64521a722
🐛 Centralize readied spell update on equipment change
...
This ensures all equipment changes will undergo the check to see if the readied spell needs to change, including auto-equipping items on pickup and with shift click.
5 years ago
Juliano Leal Goncalves
022502660d
♻️ Extract logic to ready spell from staff to player function
5 years ago
Anders Jenbo
8df8b940c4
Handle some clang-tidy issues
5 years ago
Aaron Sun
3ee90ca629
Add options for sub-panel alignment
5 years ago
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) ( #2498 )
5 years ago
ephphatha
0575716eac
Rename UiFlags members to group related options
5 years ago
ephphatha
4ad53232a0
Convert the UiFlags enum to a scoped enum type
...
Replace operator&& with named function
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
qndel
4f4bef623c
fix upper left inventory corner ( #2394 )
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
Anders Jenbo
35ccc8eb1c
Apply clang-tidy to code
5 years ago
Anders Jenbo
74b57558c9
🚚 Move local code to anonymous namespace
5 years ago
Anders Jenbo
903d4bd2e1
Scope all for loops
...
This caused 7 of the loops to be rewriteen using range by clang-tidy
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
dce78dde62
Rename lighting globals
5 years ago
Anders Jenbo
c8870dbd1f
Rename item globals
5 years ago
Anders Jenbo
07ad083fda
Rename monster globals
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
5 years ago
Gleb Mazovetskiy
cb0dae8590
🚚 Rename `CelOutputBuf` to `Surface` and extract
5 years ago
Anders Jenbo
50aa3dce0d
Fix GCC warning in inv.cpp
5 years ago
qndel
fd3893190f
inv cleanup
5 years ago
qndel
a1710ff51e
pass item to CelDrawItem ( #2265 )
...
pass item to CelDrawItem
5 years ago
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
5 years ago
Juliano Leal Goncalves
fd9f2099d0
♻️ Leverage 'Point' to represent mouse position
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Andrew James
60a47caf1b
Refactor Draw* functions to use Rectangle and Point types
...
Added overload for DrawString taking a Point to avoid creating a rect for callers which only use position. This also documents the way DrawString operates when passed a clipping rectangle with a dimension of 0.
As part of this overload removed the logic for 0 width regions from DrawString. This does change the behaviour of the Rectangle version if called with a rect with width 0, all callers using that behaviour have been updated in this commit.
Using Rectangle/Size allowed simplifying the logic for certain calls where they could use DrawText alignment flags, previously this was manually aligning by calculating dimensions and offsetting the position. This also fixes #2169
Also includes a few instances where a temporary buffer was used to set the text to be drawn with unbounded sprintf calls, replaced those with snprintf as is recommended in modern C applications. Moving to C++ strings would be good in a future refactor.
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 )
...
Fixes #2214
Co-authored-by: staphen <staphen@gmail.com>
5 years ago