mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implement inventory mouse item dragging (#1208)
* Implement inventory mouse item dragging * SendWindowAction: Format switch/align statements * Document window action types Co-authored-by: ORelio <ORelio@users.noreply.github.com>
This commit is contained in:
parent
4a3a23eb1d
commit
526dabd1e7
2 changed files with 89 additions and 15 deletions
|
|
@ -5,13 +5,84 @@ using System.Text;
|
|||
|
||||
namespace MinecraftClient.Inventory
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents mouse interactions with an inventory window
|
||||
/// </summary>
|
||||
public enum WindowActionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Left click with mouse on a slot: grab or drop a whole item stack
|
||||
/// </summary>
|
||||
LeftClick,
|
||||
|
||||
/// <summary>
|
||||
/// Right click with mouse on a slot: grab half a stack or drop a single item
|
||||
/// </summary>
|
||||
RightClick,
|
||||
|
||||
/// <summary>
|
||||
/// Middle click with mouse on a slot: grab a full stack from creative inventory
|
||||
/// </summary>
|
||||
MiddleClick,
|
||||
|
||||
/// <summary>
|
||||
/// Shift+Left click with mouse on a slot: send a whole item stack to the hotbar or other inventory
|
||||
/// </summary>
|
||||
ShiftClick,
|
||||
|
||||
/// <summary>
|
||||
/// Drop a single item on ground after grabbing an item stack
|
||||
/// </summary>
|
||||
DropItem,
|
||||
DropItemStack
|
||||
|
||||
/// <summary>
|
||||
/// Drop a whole item stack on ground after grabbing it
|
||||
/// </summary>
|
||||
DropItemStack,
|
||||
|
||||
/// <summary>
|
||||
/// Start hovering slots with left button pressed: Distribute evenly the stack on hovered slots
|
||||
/// </summary>
|
||||
StartDragLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Start hovering slots with right button pressed: Drop one item on each hovered slot
|
||||
/// </summary>
|
||||
StartDragRight,
|
||||
|
||||
/// <summary>
|
||||
/// Start hovering slots with middle button pressed: Create one item stack on each hovered slot in creative mode
|
||||
/// </summary>
|
||||
StartDragMiddle,
|
||||
|
||||
/// <summary>
|
||||
/// Hover a slot to distribute evenly an item stack
|
||||
/// </summary>
|
||||
AddDragLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Hover a slot to drop one item from an item stack
|
||||
/// </summary>
|
||||
AddDragRight,
|
||||
|
||||
/// <summary>
|
||||
/// Hover a slot to create one item stack in creative mode
|
||||
/// </summary>
|
||||
AddDragMiddle,
|
||||
|
||||
/// <summary>
|
||||
/// Stop hovering slots with left button pressed
|
||||
/// </summary>
|
||||
EndDragLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Stop hovering slots with right button pressed
|
||||
/// </summary>
|
||||
EndDragRight,
|
||||
|
||||
/// <summary>
|
||||
/// Stop hovering slots with middble button pressed
|
||||
/// </summary>
|
||||
EndDragMiddle,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue