From 0596a7199094cc8d103dfe2cfdcd20046c04e85d Mon Sep 17 00:00:00 2001 From: Silarn Date: Thu, 4 Jul 2019 23:14:15 -0500 Subject: Various fixes and updates to the tutorial system * Fix problem with main tutorial advancing past mod activation * Add various missing overlays for new and updated features * Restore BSA tab * Fix problem with positioning action button overlays (requires uibase) --- src/tutorials/tutorials.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tutorials/tutorials.js') diff --git a/src/tutorials/tutorials.js b/src/tutorials/tutorials.js index eb23eab7..cdb16d59 100644 --- a/src/tutorials/tutorials.js +++ b/src/tutorials/tutorials.js @@ -18,8 +18,9 @@ function highlightItem(widgetName, click) { function highlightAction(actionName, click) { var rect = tutorialControl.getActionRect(actionName) + var offsetRect = tutorialControl.getMenuRect(actionName) highlight.x = rect.x - 1 - highlight.y = rect.y - 1 + highlight.y = rect.y + offsetRect.height highlight.width = rect.width + 2 highlight.height = rect.height + 2 if (click) { -- cgit v1.3.1