File tree Expand file tree Collapse file tree 7 files changed +57
-28
lines changed Expand file tree Collapse file tree 7 files changed +57
-28
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
3
<GameState />
4
- <TeamOverview team-color =" Yellow" style =" float : left " />
5
- <TeamOverview team-color =" Blue" style =" float : left " />
4
+ <TeamOverview class =" team-views" team-color =" Yellow" />
5
+ <TeamOverview class =" team-views" team-color =" Blue" />
6
+ <ControlTeam class =" team-views" team-color =" Yellow" />
7
+ <ControlTeam class =" team-views" team-color =" Blue" />
6
8
<ControlGeneral />
7
- <ControlTeam team-color =" Yellow" />
8
- <ControlTeam team-color =" Blue" />
9
- <ControlMatch />
10
- <Debug />
9
+ <ControlMatch class =" match-controls" />
10
+ <Debug class =" debug" />
11
11
</div >
12
12
</template >
13
13
41
41
color : #2c3e50 ;
42
42
margin-top : 1em ;
43
43
}
44
+
45
+ .debug {
46
+ position : fixed ;
47
+ bottom : 0 ;
48
+ }
49
+
50
+ .match-controls {
51
+ width : 100% ;
52
+ position : fixed ;
53
+ bottom : 0 ;
54
+ text-align : center ;
55
+ }
56
+
57
+ .team-views {
58
+ float : left ;
59
+ margin : 0.5em ;
60
+ }
44
61
</style >
Original file line number Diff line number Diff line change 21
21
</script >
22
22
23
23
<style scoped>
24
- .debug {
25
- position : absolute ;
26
- bottom : 0 ;
27
- }
28
-
29
24
#collapse1 {
30
25
overflow-y : scroll ;
31
26
max-height : 500px ;
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" control-general" >
2
+ <span class =" control-general" >
3
3
<b-button v-hotkey =" keymapHalt" v-on:click =" send('halt')" >Halt</b-button >
4
4
<b-button v-hotkey =" keymapStop" v-on:click =" send('stop')" >Stop</b-button >
5
5
<b-button v-hotkey =" keymapForceStart" v-on:click =" send('forceStart')" >Force Start</b-button >
6
6
<b-button v-hotkey =" keymapNormalStart" v-on:click =" send('normalStart')" >Normal Start</b-button >
7
- </div >
7
+ </span >
8
8
</template >
9
9
10
10
<script >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <b-button v-on:click =" resetMatch" >Reset Match</b-button >
4
- <b-button v-on:click =" switchColor" >Switch colors</b-button >
5
- <b-button v-on:click =" switchSides" >Switch sides</b-button >
6
- <b-button v-on:click =" previousStage" >Previous Stage</b-button >
7
- <b-button v-on:click =" nextStage" >Next Stage</b-button >
8
- <b-button v-on:click =" undo" >Undo Last Action</b-button >
3
+ <b-button v-b-tooltip.hover title =" Start a new match by resetting everything"
4
+ v-on:click =" resetMatch" >
5
+ Reset Match
6
+ </b-button >
7
+ <b-button v-b-tooltip.hover title =" Undo the last state change"
8
+ v-on:click =" undo" >
9
+ Undo
10
+ </b-button >
11
+ <b-button v-b-tooltip.hover title =" Switch the colors of the teams, keep everything else"
12
+ v-on:click =" switchColor" >
13
+ Switch colors
14
+ </b-button >
15
+ <b-button v-b-tooltip.hover title =" Switch the playing half (the goal) of the teams"
16
+ v-on:click =" switchSides" >
17
+ Switch sides
18
+ </b-button >
19
+ <b-button v-b-tooltip.hover title =" Change back to the previous stage (if something went wrong)"
20
+ v-on:click =" previousStage" >
21
+ Previous Stage
22
+ </b-button >
23
+ <b-button v-b-tooltip.hover title =" Proceed to the next stage"
24
+ v-on:click =" nextStage" >
25
+ Next Stage
26
+ </b-button >
9
27
</div >
10
28
</template >
11
29
Original file line number Diff line number Diff line change 8
8
9
9
<br />
10
10
11
+ <ControlTeamTimeout :team-color =" teamColor" />
11
12
<b-button v-on:click =" send('goal')" >Goal</b-button >
12
13
<b-button v-on:click =" addYellowCard" v-hotkey =" keymapYellowCard" >Yellow Card</b-button >
14
+
15
+ <br />
16
+
13
17
<b-button v-on:click =" revokeYellowCard" v-if =" teamState.yellowCardTimes.length>0" >Revoke Yellow Card</b-button >
14
- <ControlTeamTimeout :team-color =" teamColor" />
15
18
</div >
16
19
</template >
17
20
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div >
2
+ <span >
3
3
<b-button v-show =" !timeoutRunning" v-on:click =" startTimeout" >Start Timeout</b-button >
4
4
<b-button v-show =" timeoutRunning" v-on:click =" stopTimeout" >Stop Timeout</b-button >
5
- </div >
5
+ </span >
6
6
</template >
7
7
8
8
<script >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class = " team-overview " >
2
+ <span >
3
3
<h2 v-b-tooltip.hover title =" Edit team data by double-clicking a value" > Team {{teamColor}}</h2 >
4
4
<div >
5
5
<TeamName
36
36
:yellow-cards =" team.yellowCards"
37
37
:yellow-card-times =" team.yellowCardTimes" />
38
38
</div >
39
- </div >
39
+ </span >
40
40
</template >
41
41
42
42
<script >
68
68
</script >
69
69
70
70
<style scoped>
71
- .team-overview {
72
- margin : 1em ;
73
- }
74
-
75
71
</style >
You can’t perform that action at this time.
0 commit comments