@@ -30,6 +30,7 @@ namespace Content.Client.Input
|
|||||||
human.AddFunction(ContentKeyFunctions.ThrowItemInHand);
|
human.AddFunction(ContentKeyFunctions.ThrowItemInHand);
|
||||||
human.AddFunction(ContentKeyFunctions.TryPullObject);
|
human.AddFunction(ContentKeyFunctions.TryPullObject);
|
||||||
human.AddFunction(ContentKeyFunctions.MovePulledObject);
|
human.AddFunction(ContentKeyFunctions.MovePulledObject);
|
||||||
|
human.AddFunction(ContentKeyFunctions.ReleasePulledObject);
|
||||||
human.AddFunction(ContentKeyFunctions.OpenContextMenu);
|
human.AddFunction(ContentKeyFunctions.OpenContextMenu);
|
||||||
human.AddFunction(ContentKeyFunctions.OpenCraftingMenu);
|
human.AddFunction(ContentKeyFunctions.OpenCraftingMenu);
|
||||||
human.AddFunction(ContentKeyFunctions.OpenInventoryMenu);
|
human.AddFunction(ContentKeyFunctions.OpenInventoryMenu);
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ namespace Content.Client.UserInterface
|
|||||||
AddButton(ContentKeyFunctions.ThrowItemInHand, "Throw item");
|
AddButton(ContentKeyFunctions.ThrowItemInHand, "Throw item");
|
||||||
AddButton(ContentKeyFunctions.TryPullObject, "Pull object");
|
AddButton(ContentKeyFunctions.TryPullObject, "Pull object");
|
||||||
AddButton(ContentKeyFunctions.MovePulledObject, "Move pulled object");
|
AddButton(ContentKeyFunctions.MovePulledObject, "Move pulled object");
|
||||||
|
AddButton(ContentKeyFunctions.ReleasePulledObject, "Release pulled object");
|
||||||
AddButton(ContentKeyFunctions.Point, "Point at location");
|
AddButton(ContentKeyFunctions.Point, "Point at location");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ Use targeted entity: [color=#a4885c]{11}[/color]
|
|||||||
Throw held item: [color=#a4885c]{12}[/color]
|
Throw held item: [color=#a4885c]{12}[/color]
|
||||||
Pull entity: [color=#a4885c]{30}[/color]
|
Pull entity: [color=#a4885c]{30}[/color]
|
||||||
Move pulled entity: [color=#a4885c]{29}[/color]
|
Move pulled entity: [color=#a4885c]{29}[/color]
|
||||||
|
Stop pulling: [color=#a4885c]{32}[/color]
|
||||||
Examine entity: [color=#a4885c]{13}[/color]
|
Examine entity: [color=#a4885c]{13}[/color]
|
||||||
Point somewhere: [color=#a4885c]{28}[/color]
|
Point somewhere: [color=#a4885c]{28}[/color]
|
||||||
Open entity context menu: [color=#a4885c]{14}[/color]
|
Open entity context menu: [color=#a4885c]{14}[/color]
|
||||||
@@ -122,7 +123,8 @@ Toggle admin menu [color=#a4885c]{31}[/color]",
|
|||||||
Key(Point),
|
Key(Point),
|
||||||
Key(TryPullObject),
|
Key(TryPullObject),
|
||||||
Key(MovePulledObject),
|
Key(MovePulledObject),
|
||||||
Key(OpenAdminMenu)));
|
Key(OpenAdminMenu),
|
||||||
|
Key(ReleasePulledObject)));
|
||||||
|
|
||||||
//Gameplay
|
//Gameplay
|
||||||
VBox.AddChild(new Label { FontOverride = headerFont, Text = "\nGameplay" });
|
VBox.AddChild(new Label { FontOverride = headerFont, Text = "\nGameplay" });
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
.Bind(ContentKeyFunctions.SmartEquipBackpack, InputCmdHandler.FromDelegate(HandleSmartEquipBackpack))
|
.Bind(ContentKeyFunctions.SmartEquipBackpack, InputCmdHandler.FromDelegate(HandleSmartEquipBackpack))
|
||||||
.Bind(ContentKeyFunctions.SmartEquipBelt, InputCmdHandler.FromDelegate(HandleSmartEquipBelt))
|
.Bind(ContentKeyFunctions.SmartEquipBelt, InputCmdHandler.FromDelegate(HandleSmartEquipBelt))
|
||||||
.Bind(ContentKeyFunctions.MovePulledObject, new PointerInputCmdHandler(HandleMovePulledObject))
|
.Bind(ContentKeyFunctions.MovePulledObject, new PointerInputCmdHandler(HandleMovePulledObject))
|
||||||
|
.Bind(ContentKeyFunctions.ReleasePulledObject, InputCmdHandler.FromDelegate(HandleReleasePulledObject))
|
||||||
.Register<HandsSystem>();
|
.Register<HandsSystem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,5 +245,14 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void HandleReleasePulledObject(ICommonSession session)
|
||||||
|
{
|
||||||
|
if (!TryGetAttachedComponent(session as IPlayerSession, out HandsComponent handsComp))
|
||||||
|
return;
|
||||||
|
|
||||||
|
handsComp.StopPull();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ namespace Content.Shared.Input
|
|||||||
public static readonly BoundKeyFunction ThrowItemInHand = "ThrowItemInHand";
|
public static readonly BoundKeyFunction ThrowItemInHand = "ThrowItemInHand";
|
||||||
public static readonly BoundKeyFunction TryPullObject = "TryPullObject";
|
public static readonly BoundKeyFunction TryPullObject = "TryPullObject";
|
||||||
public static readonly BoundKeyFunction MovePulledObject = "MovePulledObject";
|
public static readonly BoundKeyFunction MovePulledObject = "MovePulledObject";
|
||||||
|
public static readonly BoundKeyFunction ReleasePulledObject = "ReleasePulledObject";
|
||||||
public static readonly BoundKeyFunction ToggleCombatMode = "ToggleCombatMode";
|
public static readonly BoundKeyFunction ToggleCombatMode = "ToggleCombatMode";
|
||||||
public static readonly BoundKeyFunction MouseMiddle = "MouseMiddle";
|
public static readonly BoundKeyFunction MouseMiddle = "MouseMiddle";
|
||||||
public static readonly BoundKeyFunction OpenEntitySpawnWindow = "OpenEntitySpawnWindow";
|
public static readonly BoundKeyFunction OpenEntitySpawnWindow = "OpenEntitySpawnWindow";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version: 1 # Not used right now, whatever.
|
version: 1 # Not used right now, whatever.
|
||||||
binds:
|
binds:
|
||||||
- function: UIClick
|
- function: UIClick
|
||||||
type: State
|
type: State
|
||||||
@@ -117,6 +117,9 @@ binds:
|
|||||||
type: State
|
type: State
|
||||||
key: MouseRight
|
key: MouseRight
|
||||||
mod1: Control
|
mod1: Control
|
||||||
|
- function: ReleasePulledObject
|
||||||
|
type: State
|
||||||
|
key: H
|
||||||
- function: OpenContextMenu
|
- function: OpenContextMenu
|
||||||
type: State
|
type: State
|
||||||
key: MouseRight
|
key: MouseRight
|
||||||
|
|||||||
Reference in New Issue
Block a user