File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import { shuffle } from 'utils/array';
2626import DrawCharacters from './draw-characters' ;
2727import { cn } from 'utils/class-names' ;
2828import NightOrderPreview from './night-order-preview' ;
29+ import ActionIcon from 'components/input/action-icon' ;
30+ import Tooltip from 'components/tooltip' ;
2931
3032export const metadata : Metadata = {
3133 title : 'Blood on the Clocktower' ,
@@ -224,7 +226,7 @@ const BloodOnTheClocktowerElement = () => {
224226 />
225227 { isCustomEdition && (
226228 < div className = 'translate-y-1.5' >
227- < Button
229+ < ActionIcon
228230 onClick = { ( ) => {
229231 if ( confirm ( `Do you want to remove '${ edition . name } '?` ) ) {
230232 removeCustomScript ( edition . id ) ;
@@ -237,8 +239,7 @@ const BloodOnTheClocktowerElement = () => {
237239 } }
238240 >
239241 < IconTrash />
240- Remove
241- </ Button >
242+ </ ActionIcon >
242243 </ div >
243244 ) }
244245 </ div >
@@ -426,15 +427,20 @@ const BloodOnTheClocktowerElement = () => {
426427 < Modal
427428 title = 'Draw characters'
428429 target = {
429- < Button
430- onClick = { ( ) => {
431- setSelectedCharacters (
432- gameState . players . map ( ( player ) => player . characterId ) ,
433- ) ;
434- } }
430+ < Tooltip
431+ text = 'Starts at "First" and goes clockwise'
432+ position = 'top'
435433 >
436- Assign characters (starts at "First" and goes clockwise)
437- </ Button >
434+ < Button
435+ onClick = { ( ) => {
436+ setSelectedCharacters (
437+ gameState . players . map ( ( player ) => player . characterId ) ,
438+ ) ;
439+ } }
440+ >
441+ Assign characters
442+ </ Button >
443+ </ Tooltip >
438444 }
439445 bgColor = { drawCharactersBgColor }
440446 hideBackground
You can’t perform that action at this time.
0 commit comments