Fix rsi sprite access for verbs (#14284)
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Content.Client.Examine
|
||||
CommandBinds.Builder
|
||||
.Bind(ContentKeyFunctions.ExamineEntity, new PointerInputCmdHandler(HandleExamine, outsidePrediction: true))
|
||||
.Register<ExamineSystem>();
|
||||
|
||||
|
||||
_idCounter = 0;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace Content.Client.Examine
|
||||
// Center it on the entity if they use the verb instead.
|
||||
verb.Act = () => DoExamine(args.Target, false);
|
||||
verb.Text = Loc.GetString("examine-verb-name");
|
||||
verb.IconTexture = "/Textures/Interface/VerbIcons/examine.svg.192dpi.png";
|
||||
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/examine.svg.192dpi.png"));
|
||||
verb.ShowOnExamineTooltip = false;
|
||||
verb.ClientExclusive = true;
|
||||
args.Verbs.Add(verb);
|
||||
@@ -132,7 +132,7 @@ namespace Content.Client.Examine
|
||||
// Prevent updating a new tooltip.
|
||||
if (ev.Id != 0 && ev.Id != _idCounter)
|
||||
return;
|
||||
|
||||
|
||||
// Tooltips coming in from the server generally prioritize
|
||||
// opening at the old tooltip rather than the cursor/another entity,
|
||||
// since there's probably one open already if it's coming in from the server.
|
||||
@@ -286,7 +286,7 @@ namespace Content.Client.Examine
|
||||
if (verb is not ExamineVerb examine)
|
||||
continue;
|
||||
|
||||
if (examine.IconTexture == null)
|
||||
if (examine.Icon == null)
|
||||
continue;
|
||||
|
||||
if (!examine.ShowOnExamineTooltip)
|
||||
|
||||
Reference in New Issue
Block a user