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-10 19:21:18 -07:00
committed by GitHub
parent 9845d8bd30
commit af4c6373f6
7 changed files with 47 additions and 0 deletions

View File

@@ -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)