Skip to content

Commit 5b36f10

Browse files
committed
[ui] Add more tooltips
1 parent d793cf8 commit 5b36f10

File tree

3 files changed

+46
-22
lines changed

3 files changed

+46
-22
lines changed

ui/src/components/control/ControlGeneral.vue

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11
<template>
22
<span class="control-general">
3-
<b-button v-hotkey="keymapHalt"
4-
v-on:click="send('halt')"
5-
v-bind:disabled="halted">
6-
Halt
7-
</b-button>
8-
<b-button v-hotkey="keymapStop"
9-
v-on:click="send('stop')"
10-
v-bind:disabled="stopped || !inNormalHalf">
11-
Stop
12-
</b-button>
13-
<b-button v-hotkey="keymapForceStart"
14-
v-on:click="send('forceStart')"
15-
v-bind:disabled="!stopped || !inNormalHalf">
16-
Force Start
17-
</b-button>
18-
<b-button v-hotkey="keymapNormalStart"
19-
v-on:click="send('normalStart')"
20-
v-bind:disabled="!prepareSth || !inNormalHalf">
21-
Normal Start
22-
</b-button>
3+
<span v-b-tooltip.hover
4+
title="Immediately stop all robots">
5+
<b-button v-hotkey="keymapHalt"
6+
v-on:click="send('halt')"
7+
v-bind:disabled="halted">
8+
Halt
9+
</b-button>
10+
</span>
11+
<span v-b-tooltip.hover
12+
title="Robots have to keep distance to the ball">
13+
<b-button v-hotkey="keymapStop"
14+
v-on:click="send('stop')"
15+
v-bind:disabled="stopped || !inNormalHalf">
16+
Stop
17+
</b-button>
18+
</span>
19+
<span v-b-tooltip.hover
20+
title="Restart the game in draw situations">
21+
<b-button v-hotkey="keymapForceStart"
22+
v-on:click="send('forceStart')"
23+
v-bind:disabled="!stopped || !inNormalHalf">
24+
Force Start
25+
</b-button>
26+
</span>
27+
<span v-b-tooltip.hover
28+
title="Continue game after a prepare state">
29+
<b-button v-hotkey="keymapNormalStart"
30+
v-on:click="send('normalStart')"
31+
v-bind:disabled="!prepareSth || !inNormalHalf">
32+
Normal Start
33+
</b-button>
34+
</span>
2335
</span>
2436
</template>
2537

ui/src/components/control/ControlTeam.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11
<template>
22
<div class="control-team">
33
<h2>Team {{teamColor}}</h2>
4+
<span v-b-tooltip.hover
5+
title="Prepare for a kickoff">
46
<b-button v-hotkey="keymapKickoff"
57
v-on:click="send('kickoff')"
68
v-bind:disabled="halted || running || preparing">
79
Kickoff
810
</b-button>
11+
</span>
12+
<span v-b-tooltip.hover
13+
title="Perform direct kick (corner and goal kicks)">
914
<b-button v-hotkey="keymapDirect"
1015
v-on:click="send('direct')"
1116
v-bind:disabled="halted || running || preparing">
1217
Direct
1318
</b-button>
19+
</span>
20+
<span v-b-tooltip.hover
21+
title="Perform indirect kick (throw-in)">
1422
<b-button v-hotkey="keymapIndirect"
1523
v-on:click="send('indirect')"
1624
v-bind:disabled="halted || running || preparing">
1725
Indirect
1826
</b-button>
27+
</span>
28+
<span v-b-tooltip.hover
29+
title="Prepare for a penalty kick">
1930
<b-button v-on:click="send('penalty')"
2031
v-bind:disabled="halted || running || preparing">
2132
Penalty
2233
</b-button>
34+
</span>
2335

2436
<br/>
2537

ui/src/components/team/TeamOverview.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<span>
2+
<div>
33
<h2 v-b-tooltip.hover title="Edit team data by double-clicking a value"> Team {{teamColor}}</h2>
44
<div>
55
<TeamName
@@ -36,7 +36,7 @@
3636
:yellow-cards="team.yellowCards"
3737
:yellow-card-times="team.yellowCardTimes"/>
3838
</div>
39-
</span>
39+
</div>
4040
</template>
4141

4242
<script>

0 commit comments

Comments
 (0)