From 80029f8c9c2ebdbd187e1078cdfbfcd5010335b9 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 2 Jun 2020 00:40:34 +0200 Subject: Add title on hand rotation direction --- .../luxons/sevenwonders/ui/components/game/HandRotationIndicator.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw-ui/src/main/kotlin/org') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/HandRotationIndicator.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/HandRotationIndicator.kt index 5755fc21..9c46d2de 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/HandRotationIndicator.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/HandRotationIndicator.kt @@ -2,6 +2,7 @@ package org.luxons.sevenwonders.ui.components.game import com.palantir.blueprintjs.bpIcon import kotlinx.css.* +import kotlinx.html.title import org.luxons.sevenwonders.model.cards.HandRotationDirection import react.RBuilder import styled.css @@ -16,6 +17,9 @@ fun RBuilder.handRotationIndicator(direction: HandRotationDirection) { alignItems = Align.center bottom = 25.vh } + attrs { + title = "Your hand will be passed to the player on your $direction after playing this card." + } val sideDistance = 2.rem when (direction) { HandRotationDirection.LEFT -> { -- cgit