summaryrefslogtreecommitdiff
path: root/src/tutorials/tutorials.js
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-07-04 23:14:15 -0500
committerSilarn <jrim@rimpo.org>2019-07-04 23:14:15 -0500
commit0596a7199094cc8d103dfe2cfdcd20046c04e85d (patch)
tree8abee4ef3e03d3864c6a9f175822c448d73ec3f2 /src/tutorials/tutorials.js
parentdfd34bf9c0ad055e76c1b6f272c21eb0d79536ce (diff)
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)
Diffstat (limited to 'src/tutorials/tutorials.js')
-rw-r--r--src/tutorials/tutorials.js3
1 files changed, 2 insertions, 1 deletions
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) {