GGUI.TutorialButton can now drive both classic HelpPlate overlays and modern HelpTip bubbles.
local tutorialButton = GGUI.TutorialButton({
parent = MyFrame,
anchorPoints = {
{ anchorParent = MyFrame, anchorA = "TOPRIGHT", anchorB = "TOPRIGHT", offsetX = -8, offsetY = -8 },
},
helpPlateInfo = MyHelpPlateInfo,
helpPlateParent = MyFrame,
glowOnInit = true,
})
-- Optional explicit controls:
tutorialButton:ShowHelpPlate()
tutorialButton:HideHelpPlate(true)
tutorialButton:ShowTutorialTooltip()local tutorialButton = GGUI.TutorialButton({
parent = MyFrame,
anchorA = "TOPRIGHT",
anchorB = "TOPRIGHT",
helpTipParent = MyFrame,
helpTipRelativeRegion = MyFrame.SomeRegion,
helpTipInfo = {
text = "Explain this control",
buttonStyle = HelpTip.ButtonStyle.GotIt,
targetPoint = HelpTip.Point.BottomEdgeCenter,
alignment = HelpTip.Alignment.Center,
},
})
-- Toggle uses the configured help data automatically.
tutorialButton:ToggleHelpTip()- Default click behavior is inferred automatically:
helpPlateInfoset -> toggles HelpPlatehelpTipInfoset -> toggles HelpTip- neither set -> callback-only button
clickCallbackcan returntrueto fully handle the click and prevent auto toggle.