Commit graph

106 commits

Author SHA1 Message Date
staphen
900af16a9e Fix distributing stat points using gamepad 2021-10-21 13:25:19 +02:00
Anders Jenbo
d5999e6027 [gamepad] Only warp the cursor if item was moved 2021-10-20 05:08:45 +02:00
Anders Jenbo
8e70cd7a37 [gamepad] Fix OOB when using equiped items 2021-10-20 05:08:45 +02:00
Anders Jenbo
3d38e6ce88 [gamepad] Correctly jump over items horizontally 2021-10-20 05:08:45 +02:00
Anders Jenbo
2f925bfeb7 [gamepad] Prevent warping from row 9 and 10 to belt 2021-10-20 05:08:45 +02:00
Anders Jenbo
1ba7e07b29 Do not show the cursor when using a touch device 2021-10-20 05:08:45 +02:00
Anders Jenbo
b3a9a2ddce [gamepad] Allow for mixed mode navigation in inventory 2021-10-20 05:08:45 +02:00
Anders Jenbo
78c4f06e9e [gamepad] Remove item warping 2021-10-20 05:08:45 +02:00
Anders Jenbo
808702fe92 [gamepad] Make horizontal inventory navigation stable 2021-10-17 07:59:32 +02:00
staphen
5a75e076b6 [Gamepad] Don't treat special cursors as items 2021-10-14 23:18:53 +02:00
staphen
ab13fba13f Use Rune Bomb or Cathedral Map to open Hive or Crypt 2021-10-12 15:21:37 +02:00
staphen
ee23f41e0c Enable opening Hive and Crypt using gamepad 2021-10-12 04:40:43 +02:00
Yuri Pourre
7d74336e6b Enhance ctrl + drop 2021-10-09 16:16:51 +02:00
Yuri Pourre
071206a9e4
Fix ctrl + drop garbage 2021-10-07 03:36:09 +02:00
Yuri Pourre
b8450dc792 Assign ctrl to drop items 2021-09-29 18:15:26 +02:00
obligaron
0818c55b88 Holding mouse when shift is held shouldn't lock to a target (Spells) 2021-09-27 11:58:51 +02:00
Gleb Mazovetskiy
ec13c333a9 Refactor: Use item iterators for scroll checks
Refs #2586
2021-09-24 01:56:44 +01:00
Juliano Leal Goncalves
379a27b64a ♻️ Convert 'ItemType' enum to enum class
🎨 Rename 'ItemType' elements to enum class standards
2021-09-13 00:25:49 +02:00
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.
2021-09-12 02:27:47 +02:00
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
2021-09-12 02:27:47 +02:00
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.
2021-09-06 12:57:59 +02:00
Juliano Leal Goncalves
20db8d1a11 🚚 Rename 'MonsterStruct' to 'Monster' 2021-09-01 22:26:37 +02:00
Juliano Leal Goncalves
bb2dfdfb73 🚚 Rename 'ItemStruct' to 'Item' 2021-08-30 13:40:08 +02:00
Juliano Leal Goncalves
01823e1324 ♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition' 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
317ebcdd3e ♻️ Replace 'icursW28' and 'icursH28' globals with single 'icursSize28' 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
5525c72a31 ♻️ Leverage 'Rectangle.Center' in 'AttrIncBtnSnap' function implementation 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
6c21638bee ♻️ Leverage 'Point' in 'SetCursorPos' function 2021-08-30 06:45:51 +02:00
BC Ko
4df798808e
2435 refactor global variable Items part 2 (#2673) 2021-08-26 08:06:48 +02:00
Anders Jenbo
df636c0afc Remove DIR_OMNI 2021-08-23 10:51:06 +02:00
Anders Jenbo
4891258775 Clean up quest init 2021-08-20 12:13:17 +02:00
BC Ko
14b7e3bdc1
2435 refactor missiles part 2 (#2635) 2021-08-19 08:15:41 +02:00
BC Ko
e5434e03b3
2602 Use range-based for-loop for Quests (#2612) 2021-08-19 01:42:49 +02:00
Aaron Sun
3ee90ca629 Add options for sub-panel alignment 2021-08-07 16:09:32 +02:00
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) (#2498) 2021-08-05 21:27:07 +02:00
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)
2021-07-25 03:57:42 +00:00
Anders Jenbo
9c4e34f988 Player by reference 2021-07-20 01:35:56 +02:00
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input (#2430) 2021-07-20 00:30:35 +01:00
Anders Jenbo
a19e7b2a3b Remove some more use of miniwin 2021-07-17 23:54:13 +02:00
obligaron
70db8456ba Remove _pwtype and replace it with UsesRangedWeapon 2021-07-17 17:38:28 +02:00
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.
2021-07-17 17:35:58 +02:00
Anders Jenbo
b3470b296c ♻️[controls] Only check active monsters when looking for a target 2021-07-17 05:01:56 +02:00
Anders Jenbo
9264ad4b89 Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]] 2021-07-17 03:57:26 +02:00
Anders Jenbo
2d4da488f0 Split path test functions 2021-07-17 03:57:26 +02:00
ephphatha
190025e79f Use bound parameters for pathfinding functions operating on entities 2021-07-16 20:19:39 +02:00
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) (#2349) 2021-07-16 15:01:01 +01:00
Anders Jenbo
77b72da276 ♻️Use monster by reference when possible 2021-07-14 20:22:35 -07:00
Anders Jenbo
9ebdb6db69 General clean up 2021-07-08 03:30:25 -07:00
Anders Jenbo
467b74dc06 Rename object globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
9ae908f947 Rename missile globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
9b8bf92575 Rename quest globals 2021-07-08 02:01:14 -07:00