Add Alt-click functionality (#4497)
* Fix ItemSlot Bug * Add Alt-use Key * Fix TransferAmount window bug * Alt-click functionality * Added AltInteract verbs * Add new verbs * verb icons * Changed Comments * Change Comments * Fix disposal verbs * Changed Get...() to Get...OrNull() * Changed alt-interact combat behaviour * Update verb icons * Inventory interact event * Add Alt+E secondary binding * Add alt-z keybinding * Rename AltUse -> AltActivateItemInWorld
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
namespace Content.Shared.Verbs
|
||||
{
|
||||
public abstract class VerbBase
|
||||
@@ -15,5 +15,10 @@ namespace Content.Shared.Verbs
|
||||
/// OR the user can be the entity's container
|
||||
/// </summary>
|
||||
public virtual bool BlockedByContainers => true;
|
||||
|
||||
/// <summary>
|
||||
/// If true, this verb can be activated by alt-clicking on the entity.
|
||||
/// </summary>
|
||||
public virtual bool AlternativeInteraction => false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace Content.Shared.Verbs
|
||||
("Debug", "/Textures/Interface/VerbIcons/debug.svg.192dpi.png");
|
||||
|
||||
public static readonly VerbCategoryData Rotate = ("Rotate", null);
|
||||
public static readonly VerbCategoryData Construction = ("Construction", null);
|
||||
public static readonly VerbCategoryData Construction =
|
||||
("Construction", "/Textures/Interface/hammer_scaled.svg.192dpi.png");
|
||||
public static readonly VerbCategoryData SetTransferAmount =
|
||||
("Set Transfer Amount", "/Textures/Interface/VerbIcons/spill.svg.192dpi.png");
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@ namespace Content.Shared.Verbs
|
||||
/// <summary>
|
||||
/// The text that the user sees on the verb button.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This string is automatically passed through Loc.GetString().
|
||||
/// </remarks>
|
||||
public string Text { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user