Refactor Context Menus and make them use XAML & stylesheets (#4768)
* XAML verb menu * fix ghost FOV * spacing * rename missed "ContextMenu"->"EntityMenu" instances * move visibility checks to verb system * update comment * Remove CanSeeContainerCheck * use ScrollContainer measure option * MaxWidth / texxt line wrapping * verb category default Now when you click on a verb category, it should default to running the first member of that category. This makes it much more convenient to eject/insert when there is only a single option * only apply style to first verb category entry * Use new visibility flags * FoV -> Fov * Revert "only apply style to first verb category entry" This reverts commit 9a6a17dba600e3ae0421caed59fcab145c260c99. * make all entity menu visibility checks clientside * Fix empty unbuckle category * fix merge
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Content.Shared.Verbs
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class TryExecuteVerbEvent : EntityEventArgs
|
||||
public class ExecuteVerbEvent : EntityEventArgs
|
||||
{
|
||||
public readonly EntityUid Target;
|
||||
public readonly Verb RequestedVerb;
|
||||
@@ -56,7 +56,7 @@ namespace Content.Shared.Verbs
|
||||
/// </summary>
|
||||
public readonly VerbType Type;
|
||||
|
||||
public TryExecuteVerbEvent(EntityUid target, Verb requestedVerb, VerbType type)
|
||||
public ExecuteVerbEvent(EntityUid target, Verb requestedVerb, VerbType type)
|
||||
{
|
||||
Target = target;
|
||||
RequestedVerb = requestedVerb;
|
||||
@@ -64,15 +64,6 @@ namespace Content.Shared.Verbs
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event used to toggle visibility of all context menu entities.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public class SetSeeAllContextEvent : EntityEventArgs
|
||||
{
|
||||
public bool CanSeeAllContext = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Request primary interaction verbs. This includes both use-in-hand and interacting with external entities.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user