ephphatha
6d545868d2
Move objectIsDisabled to a member function
...
While it does reference a global configuration option it's mainly concerned with the properties of the object itself, so makes sense to be a member of the object class.
4 years ago
Anders Jenbo
c0c97bf224
[gamepad] Operate object as last option for primery action
...
Fixes #3307
4 years ago
staphen
f090da3ca8
[Gamepad] Prevent player applying stat points to maxed stat
4 years ago
qndel
9c10f43019
disable using crippling shrines with controller
4 years ago
staphen
85f0e7b8c3
Add button for standing still to attack
4 years ago
Anders Jenbo
488acf0eba
[touch] Fix some button faces
4 years ago
staphen
a6807beb59
Improve gamepad cursor positioning when picking up items in inventory
4 years ago
Anders Jenbo
284f0347cc
[touch] Add additional button faces
...
Apply color correciton
4 years ago
staphen
76de43fb0a
[Gamepad] Use secondary action button to apply oils
4 years ago
staphen
900af16a9e
Fix distributing stat points using gamepad
4 years ago
Anders Jenbo
d5999e6027
[gamepad] Only warp the cursor if item was moved
4 years ago
Anders Jenbo
8e70cd7a37
[gamepad] Fix OOB when using equiped items
4 years ago
Anders Jenbo
3d38e6ce88
[gamepad] Correctly jump over items horizontally
4 years ago
Anders Jenbo
2f925bfeb7
[gamepad] Prevent warping from row 9 and 10 to belt
4 years ago
Anders Jenbo
1ba7e07b29
Do not show the cursor when using a touch device
4 years ago
Anders Jenbo
b3a9a2ddce
[gamepad] Allow for mixed mode navigation in inventory
4 years ago
Anders Jenbo
78c4f06e9e
[gamepad] Remove item warping
4 years ago
Anders Jenbo
808702fe92
[gamepad] Make horizontal inventory navigation stable
4 years ago
staphen
5a75e076b6
[Gamepad] Don't treat special cursors as items
4 years ago
staphen
ab13fba13f
Use Rune Bomb or Cathedral Map to open Hive or Crypt
4 years ago
staphen
ee23f41e0c
Enable opening Hive and Crypt using gamepad
4 years ago
Yuri Pourre
7d74336e6b
Enhance ctrl + drop
4 years ago
Yuri Pourre
071206a9e4
Fix ctrl + drop garbage
5 years ago
Yuri Pourre
b8450dc792
Assign ctrl to drop items
5 years ago
obligaron
0818c55b88
Holding mouse when shift is held shouldn't lock to a target (Spells)
5 years ago
Gleb Mazovetskiy
ec13c333a9
Refactor: Use item iterators for scroll checks
...
Refs #2586
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
ephphatha
4158651eb4
Simplify IsPathBlocked logic
...
This could make use of path.cpp::path_solid_pieces if it weren't for path directions being completely unrelated to the Direction enum values.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Juliano Leal Goncalves
32e22a16b3
♻️ Leverage conversion constructor for 'Direction' to 'Displacement'
...
This makes code more consistent overall as we use the same pattern for dealing with Sizes.
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
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
317ebcdd3e
♻️ Replace 'icursW28' and 'icursH28' globals with single 'icursSize28'
5 years ago
Juliano Leal Goncalves
5525c72a31
♻️ Leverage 'Rectangle.Center' in 'AttrIncBtnSnap' function implementation
5 years ago
Juliano Leal Goncalves
6c21638bee
♻️ Leverage 'Point' in 'SetCursorPos' function
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Anders Jenbo
df636c0afc
Remove DIR_OMNI
5 years ago
Anders Jenbo
4891258775
Clean up quest init
5 years ago
BC Ko
14b7e3bdc1
2435 refactor missiles part 2 ( #2635 )
5 years ago
BC Ko
e5434e03b3
2602 Use range-based for-loop for Quests ( #2612 )
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
Anders Jenbo
ab8afa7cd7
Fix edge cases in mouse action tracking code ( #2452 )
...
Fixes #2431
Also:
- Track spell targets
- Merge repeat walk in to the new repeat action code
- Avoid time based repeats (use action frame instead)
5 years ago
Anders Jenbo
9c4e34f988
Player by reference
5 years ago
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
obligaron
70db8456ba
Remove _pwtype and replace it with UsesRangedWeapon
5 years ago
ephphatha
a8ed1998d1
Use Point in path_ functions that reference position
...
In cases like path_get_h_cost this allows simplifying logic where Point provides functions for the intended behaviour in a much simpler to understand package.
This also makes it clearer which functions are const/don't modify the node and which potentially have side effects.
5 years ago
Anders Jenbo
b3470b296c
♻️ [controls] Only check active monsters when looking for a target
5 years ago