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 11<template >
22 <div id =" app" >
33 <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" />
68 <ControlGeneral />
7- <ControlTeam team-color =" Yellow" />
8- <ControlTeam team-color =" Blue" />
9- <ControlMatch />
10- <Debug />
9+ <ControlMatch class =" match-controls" />
10+ <Debug class =" debug" />
1111 </div >
1212</template >
1313
4141 color : #2c3e50 ;
4242 margin-top : 1em ;
4343 }
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+ }
4461 </style >
Original file line number Diff line number Diff line change 2121 </script >
2222
2323<style scoped>
24- .debug {
25- position : absolute ;
26- bottom : 0 ;
27- }
28-
2924 #collapse1 {
3025 overflow-y : scroll ;
3126 max-height : 500px ;
Original file line number Diff line number Diff line change 11<template >
2- <div class =" control-general" >
2+ <span class =" control-general" >
33 <b-button v-hotkey =" keymapHalt" v-on:click =" send('halt')" >Halt</b-button >
44 <b-button v-hotkey =" keymapStop" v-on:click =" send('stop')" >Stop</b-button >
55 <b-button v-hotkey =" keymapForceStart" v-on:click =" send('forceStart')" >Force Start</b-button >
66 <b-button v-hotkey =" keymapNormalStart" v-on:click =" send('normalStart')" >Normal Start</b-button >
7- </div >
7+ </span >
88</template >
99
1010<script >
Original file line number Diff line number Diff line change 11<template >
22 <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 >
927 </div >
1028</template >
1129
Original file line number Diff line number Diff line change 88
99 <br />
1010
11+ <ControlTeamTimeout :team-color =" teamColor" />
1112 <b-button v-on:click =" send('goal')" >Goal</b-button >
1213 <b-button v-on:click =" addYellowCard" v-hotkey =" keymapYellowCard" >Yellow Card</b-button >
14+
15+ <br />
16+
1317 <b-button v-on:click =" revokeYellowCard" v-if =" teamState.yellowCardTimes.length>0" >Revoke Yellow Card</b-button >
14- <ControlTeamTimeout :team-color =" teamColor" />
1518 </div >
1619</template >
1720
Original file line number Diff line number Diff line change 11<template >
2- <div >
2+ <span >
33 <b-button v-show =" !timeoutRunning" v-on:click =" startTimeout" >Start Timeout</b-button >
44 <b-button v-show =" timeoutRunning" v-on:click =" stopTimeout" >Stop Timeout</b-button >
5- </div >
5+ </span >
66</template >
77
88<script >
Original file line number Diff line number Diff line change 11<template >
2- <div class = " team-overview " >
2+ <span >
33 <h2 v-b-tooltip.hover title =" Edit team data by double-clicking a value" > Team {{teamColor}}</h2 >
44 <div >
55 <TeamName
3636 :yellow-cards =" team.yellowCards"
3737 :yellow-card-times =" team.yellowCardTimes" />
3838 </div >
39- </div >
39+ </span >
4040</template >
4141
4242<script >
6868 </script >
6969
7070<style scoped>
71- .team-overview {
72- margin : 1em ;
73- }
74-
7571 </style >
You can’t perform that action at this time.
0 commit comments