Small UI refactor pieces (#11026)
* ActionType rename Name to DisplayName * Gameplay State rename+move
This commit is contained in:
@@ -114,7 +114,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
if (!component.Actions.TryGetValue(ev.Action, out var act))
|
||||
{
|
||||
_adminLogger.Add(LogType.Action,
|
||||
$"{ToPrettyString(user):user} attempted to perform an action that they do not have: {ev.Action.Name}.");
|
||||
$"{ToPrettyString(user):user} attempted to perform an action that they do not have: {ev.Action.DisplayName}.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
BaseActionEvent? performEvent = null;
|
||||
|
||||
// Validate request by checking action blockers and the like:
|
||||
var name = Loc.GetString(act.Name);
|
||||
var name = Loc.GetString(act.DisplayName);
|
||||
|
||||
switch (act)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
|
||||
if (ev.EntityTarget is not EntityUid { Valid: true } entityTarget)
|
||||
{
|
||||
Logger.Error($"Attempted to perform an entity-targeted action without a target! Action: {entityAction.Name}");
|
||||
Logger.Error($"Attempted to perform an entity-targeted action without a target! Action: {entityAction.DisplayName}");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
|
||||
if (ev.MapTarget is not MapCoordinates mapTarget)
|
||||
{
|
||||
Logger.Error($"Attempted to perform a map-targeted action without a target! Action: {worldAction.Name}");
|
||||
Logger.Error($"Attempted to perform a map-targeted action without a target! Action: {worldAction.DisplayName}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user