Add lock and unlock icons to verb in LockSystem (#11336)

This commit is contained in:
theashtronaut
2022-09-15 23:26:49 +00:00
committed by GitHub
parent 876acf7974
commit 6ffa54026c
6 changed files with 10 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ namespace Content.Server.Lock
() => TryUnlock(uid, args.User, component) :
() => TryLock(uid, args.User, component);
verb.Text = Loc.GetString(component.Locked ? "toggle-lock-verb-unlock" : "toggle-lock-verb-lock");
// TODO VERB ICONS need padlock open/close icons.
verb.IconTexture = component.Locked ? "/Textures/Interface/VerbIcons/unlock.svg.192dpi.png" : "/Textures/Interface/VerbIcons/lock.svg.192dpi.png";
args.Verbs.Add(verb);
}