Adds Support for Guidebook Buttons in UIs (#27891)

* Adds Support for Guidebook Buttons in UIs

* read it from the component

* the code is perfect

* moony review

---------

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2024-05-18 13:52:13 +02:00
committed by null
co-authored by ike709
parent b5717dc812
commit 55e435ad97
7 changed files with 47 additions and 0 deletions
@@ -80,6 +80,11 @@ public sealed class GuidebookSystem : EntitySystem
});
}
public void OpenHelp(List<string> guides)
{
OnGuidebookOpen?.Invoke(guides, null, null, true, guides[0]);
}
private void OnInteract(EntityUid uid, GuideHelpComponent component, ActivateInWorldEvent args)
{
if (!_timing.IsFirstTimePredicted)