Skip to content

Commit 217925d

Browse files
committed
[ui] Add hotkeys to tooltips
1 parent 5b36f10 commit 217925d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ui/src/components/control/ControlGeneral.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<template>
22
<span class="control-general">
33
<span v-b-tooltip.hover
4-
title="Immediately stop all robots">
4+
:title="'Immediately stop all robots (' + Object.keys(keymapHalt)[0] + ')'">
55
<b-button v-hotkey="keymapHalt"
66
v-on:click="send('halt')"
77
v-bind:disabled="halted">
88
Halt
99
</b-button>
1010
</span>
1111
<span v-b-tooltip.hover
12-
title="Robots have to keep distance to the ball">
12+
:title="'Robots have to keep distance to the ball (' + Object.keys(keymapStop)[0] + ')'">
1313
<b-button v-hotkey="keymapStop"
1414
v-on:click="send('stop')"
1515
v-bind:disabled="stopped || !inNormalHalf">
1616
Stop
1717
</b-button>
1818
</span>
1919
<span v-b-tooltip.hover
20-
title="Restart the game in draw situations">
20+
:title="'Restart the game in draw situations (' + Object.keys(keymapForceStart)[0] + ')'">
2121
<b-button v-hotkey="keymapForceStart"
2222
v-on:click="send('forceStart')"
2323
v-bind:disabled="!stopped || !inNormalHalf">
2424
Force Start
2525
</b-button>
2626
</span>
2727
<span v-b-tooltip.hover
28-
title="Continue game after a prepare state">
28+
:title="'Continue game after a prepare state (' + Object.keys(keymapNormalStart)[0] + ')'">
2929
<b-button v-hotkey="keymapNormalStart"
3030
v-on:click="send('normalStart')"
3131
v-bind:disabled="!prepareSth || !inNormalHalf">

ui/src/components/control/ControlTeam.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
<div class="control-team">
33
<h2>Team {{teamColor}}</h2>
44
<span v-b-tooltip.hover
5-
title="Prepare for a kickoff">
5+
:title="'Prepare for a kickoff (' + Object.keys(keymapKickoff)[0] + ')'">
66
<b-button v-hotkey="keymapKickoff"
77
v-on:click="send('kickoff')"
88
v-bind:disabled="halted || running || preparing">
99
Kickoff
1010
</b-button>
1111
</span>
1212
<span v-b-tooltip.hover
13-
title="Perform direct kick (corner and goal kicks)">
13+
:title="'Perform direct kick (corner and goal kicks) (' + Object.keys(keymapDirect)[0] + ')'">
1414
<b-button v-hotkey="keymapDirect"
1515
v-on:click="send('direct')"
1616
v-bind:disabled="halted || running || preparing">
1717
Direct
1818
</b-button>
1919
</span>
2020
<span v-b-tooltip.hover
21-
title="Perform indirect kick (throw-in)">
21+
:title="'Perform indirect kick (throw-in) (' + Object.keys(keymapIndirect)[0] + ')'">
2222
<b-button v-hotkey="keymapIndirect"
2323
v-on:click="send('indirect')"
2424
v-bind:disabled="halted || running || preparing">

ui/src/components/team/TeamYellowCards.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<b-collapse id="collapseDurations" class="mt-2">
2424
<EditableLabelDuration
2525
class="editable-label"
26+
v-bind:key="cardTime"
2627
v-for="(cardTime, cardId) in yellowCardTimes"
2728
:value="cardTime"
2829
:callback="(v) => updateCardTime(v, cardId)"/>

0 commit comments

Comments
 (0)