Skip to content

Commit

Permalink
Triples: Make Shift button an actual button
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Nov 24, 2024
1 parent e4c54ac commit 72d1216
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion play.pokemonshowdown.com/js/client-battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,12 @@

var shiftControls = '';
if (this.battle.gameType === 'triples' && pos !== 1) {
shiftControls += '<div class="shiftselect"><button name="chooseShift">Shift</button></div>';
shiftControls = (
'<div class="shiftcontrols">' +
'<div class="shiftselect"><button name="chooseShift">Shift</button></div>' +
'<div class="switchmenu"><button name="chooseShift">Shift to Center</button><div style="clear:left"></div></div>' +
'</div>'
);
}

var switchMenu = '';
Expand Down
5 changes: 3 additions & 2 deletions play.pokemonshowdown.com/style/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ a.ilink.yours {
right: 0;
width: auto;
}
.tiny-layout .movecontrols, .tiny-layout .switchcontrols {
.tiny-layout .movecontrols, .tiny-layout .shiftcontrols, .tiny-layout .switchcontrols {
max-width: 330px;
margin: 0 auto;
}
Expand Down Expand Up @@ -1701,6 +1701,7 @@ a.ilink.yours {
}
.shiftselect button {
color: #445588;
cursor: default;
}
.moveselect button {
color: #884422;
Expand Down Expand Up @@ -1929,7 +1930,7 @@ a.ilink.yours {
color: #FF7766;
border-color: #FF7766;
}
.battle-controls .movecontrols, .battle-controls .switchcontrols {
.battle-controls .movecontrols, .battle-controls .shiftcontrols, .battle-controls .switchcontrols {
max-width: 640px;
}
.movemenu {
Expand Down
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/style/client2.css
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ a.ilink.yours {
right: 0;
width: auto;
}
.tiny-layout .movecontrols, .tiny-layout .switchcontrols {
.tiny-layout .movecontrols, .tiny-layout .shiftcontrols, .tiny-layout .switchcontrols {
max-width: 330px;
margin: 0 auto;
}
Expand Down

0 comments on commit 72d1216

Please sign in to comment.